diff --git a/policy/modules/contrib/rsync.te b/policy/modules/contrib/rsync.te index 2d1b131a3..3bf4cf6b2 100644 --- a/policy/modules/contrib/rsync.te +++ b/policy/modules/contrib/rsync.te @@ -44,6 +44,15 @@ gen_tunable(rsync_full_access, false) ## gen_tunable(rsync_sys_admin, false) +## +##

+## Allow rsync to execute commands +## This is needed on SUSE systems in general and on other systems +## in more complex configurations where e.g. pre-xfer exec is used +##

+##
+gen_tunable(rsync_exec_commands, true) + type rsync_t; type rsync_exec_t; application_executable_file(rsync_exec_t) @@ -197,3 +206,8 @@ optional_policy(` swift_manage_lock(rsync_t) swift_filetrans_named_lock(rsync_t) ') + +tunable_policy(`rsync_exec_commands',` + corecmd_exec_shell(rsync_t) + corecmd_exec_bin(rsync_t) +')