A script running as cron_t needs to write to /var/log/myapp.log. The file has type var_log_t. What should you do to allow this properly?
-
A
Set the file context to cron_log_t and run restorecon
-
B
Set the boolean allow_cron_write_log to on
-
C
Use audit2allow to create a module allowing cron_t write to var_log_t
-
D
Change the file to /tmp/myapp.log where cron can write freely