refpolicy: patch rpc
Hi,
following denials appears during startup of rpc.statd (nfs-common service) on Debian Sid:
Feb 22 23:27:45 sid kernel: audit(1203719264.336:3): avc: denied { search } for pid=1482 comm="rpc.statd" name="sbin" dev=sda1 ino=245761 scontext=system_u:system_r:rpcd_t:s0 tcontext=system_u:object_r:bin_t:s0 tclass=dir
Feb 22 23:27:45 sid kernel: audit(1203719264.336:4): avc: denied { execute } for pid=1482 comm="rpc.statd" name="sm-notify" dev=sda1 ino=376910 scontext=system_u:system_r:rpcd_t:s0 tcontext=system_u:object_r:bin_t:s0 tclass=file
Feb 22 23:27:45 sid kernel: audit(1203719264.336:5): avc: denied { execute_no_trans } for pid=1482 comm="rpc.statd" name="sm-notify" dev=sda1 ino=376910 scontext=system_u:system_r:rpcd_t:s0 tcontext=system_u:object_r:bin_t:s0 tclass=file
Feb 22 23:27:45 sid kernel: audit(1203719264.336:6): avc: denied { read } for pid=1482 comm="rpc.statd" name="sm-notify" dev=sda1 ino=376910 scontext=system_u:system_r:rpcd_t:s0 tcontext=system_u:object_r:bin_t:s0 tclass=file
Feb 22 23:27:45 sid kernel: audit(1203719264.724:7): avc: denied { search } for pid=1482 comm="sm-notify" name="fs" dev=proc ino=-268435429 scontext=system_u:system_r:rpcd_t:s0 tcontext=system_u:object_r:sysctl_fs_t:s0 tclass=dirAdded patch is taken from Fedora policy...
Thanks
Signature · 1 line
Zito
modules/services/rpc.te +3 -0
@@ -60,10 +60,13 @@ manage_files_pattern(rpcd_t,rpcd_var_run_t,rpcd_var_run_t) files_pid_filetrans(rpcd_t,rpcd_var_run_t,file) +corecmd_exec_bin(rpcd_t) + kernel_read_system_state(rpcd_t) kernel_search_network_state(rpcd_t) # for rpc.rquotad kernel_read_sysctl(rpcd_t) +kernel_rw_fs_sysctls(rpcd_t) fs_list_rpc(rpcd_t) fs_read_rpc_files(rpcd_t)
Quoted 14 lines · Václav Ovsík
Hi,
following denials appears during startup of rpc.statd (nfs-common service) on Debian Sid:Feb 22 23:27:45 sid kernel: audit(1203719264.336:3): avc: denied { search } for pid=1482 comm="rpc.statd" name="sbin" dev=sda1 ino=245761 scontext=system_u:system_r:rpcd_t:s0 tcontext=system_u:object_r:bin_t:s0 tclass=dir Feb 22 23:27:45 sid kernel: audit(1203719264.336:4): avc: denied { execute } for pid=1482 comm="rpc.statd" name="sm-notify" dev=sda1 ino=376910 scontext=system_u:system_r:rpcd_t:s0 tcontext=system_u:object_r:bin_t:s0 tclass=file Feb 22 23:27:45 sid kernel: audit(1203719264.336:5): avc: denied { execute_no_trans } for pid=1482 comm="rpc.statd" name="sm-notify" dev=sda1 ino=376910 scontext=system_u:system_r:rpcd_t:s0 tcontext=system_u:object_r:bin_t:s0 tclass=file Feb 22 23:27:45 sid kernel: audit(1203719264.336:6): avc: denied { read } for pid=1482 comm="rpc.statd" name="sm-notify" dev=sda1 ino=376910 scontext=system_u:system_r:rpcd_t:s0 tcontext=system_u:object_r:bin_t:s0 tclass=file Feb 22 23:27:45 sid kernel: audit(1203719264.724:7): avc: denied { search } for pid=1482 comm="sm-notify" name="fs" dev=proc ino=-268435429 scontext=system_u:system_r:rpcd_t:s0 tcontext=system_u:object_r:sysctl_fs_t:s0 tclass=dirmodules/services/rpc.te +0
-0@@ -60,10 +60,13 @@ manage_files_pattern(rpcd_t,rpcd_var_run_t,rpcd_var_run_t) files_pid_filetrans(rpcd_t,rpcd_var_run_t,file)
modules/services/rpc.te line 72
Quoted 10 lines
modules/services/rpc.te +3
-0+corecmd_exec_bin(rpcd_t) + kernel_read_system_state(rpcd_t) kernel_search_network_state(rpcd_t) # for rpc.rquotad kernel_read_sysctl(rpcd_t) +kernel_rw_fs_sysctls(rpcd_t) fs_list_rpc(rpcd_t) fs_read_rpc_files(rpcd_t)
Perhaps we should make sm-notify rpcd_exec_t and allow exec on that?
Signature · 10 lines
Chris PeBenito Tresys Technology, LLC (410) 290-1411 x150 -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Quoted 2 lines · Christopher J. PeBenito
...
Perhaps we should make sm-notifyrpcd_exec_tand allow exec on that?
A new patch attached.
Signature · 1 line
Zito
modules/services/rpc.fc +1 -0
@@ -7,6 +7,7 @@ # /sbin # /sbin/rpc\..* -- gen_context(system_u:object_r:rpcd_exec_t,s0) +/sbin/sm-notify -- gen_context(system_u:object_r:rpcd_exec_t,s0) # # /usr
modules/services/rpc.te +5 -0
@@ -60,10 +60,15 @@ manage_files_pattern(rpcd_t,rpcd_var_run_t,rpcd_var_run_t) files_pid_filetrans(rpcd_t,rpcd_var_run_t,file) +# rpc.statd executes sm-notify +corecmd_search_bin(rpcd_t) +can_exec(rpcd_t, rpcd_exec_t) + kernel_read_system_state(rpcd_t) kernel_search_network_state(rpcd_t) # for rpc.rquotad kernel_read_sysctl(rpcd_t) +kernel_rw_fs_sysctls(rpcd_t) fs_list_rpc(rpcd_t) fs_read_rpc_files(rpcd_t)
Quoted 5 lines · Václav Ovsík
Quoted 2 lines · Christopher J. PeBenito
...
Perhaps we should make sm-notifyrpcd_exec_tand allow exec on that?A new patch attached.
Merged.
Signature · 10 lines
Chris PeBenito Tresys Technology, LLC (410) 290-1411 x150 -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.