Skip to content

Commit

Permalink
Move sock_file filetrans to fcron_crond conditional.
Browse files Browse the repository at this point in the history
Also drop the name in the filetrans.
  • Loading branch information
pebenito committed Apr 24, 2014
1 parent 8a2ff99 commit de1bc11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cron.te
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,6 @@ logging_log_filetrans(crond_t, cron_log_t, file)

manage_files_pattern(crond_t, crond_var_run_t, crond_var_run_t)
files_pid_filetrans(crond_t, crond_var_run_t, file)
files_pid_filetrans(crond_t, crond_var_run_t, sock_file, "fcron.fifo")

manage_files_pattern(crond_t, cron_spool_t, cron_spool_t)

Expand Down Expand Up @@ -349,6 +348,7 @@ tunable_policy(`allow_polyinstantiation',`
tunable_policy(`fcron_crond',`
allow crond_t { system_cron_spool_t user_cron_spool_t }:file manage_file_perms;
allow crond_t crond_var_run_t:sock_file manage_sock_file_perms;
files_pid_filetrans(crond_t, crond_var_run_t, sock_file)
')

optional_policy(`
Expand Down

0 comments on commit de1bc11

Please sign in to comment.