Patch: small fix for sudo
Attached patch fixes one duplicate permission which is already in newrole_domain() and moves the exec type declaration out of the macro. The old policy generated types like staff_sudo_exec_t which is wrong, I think.
Please apply.
Thomas
Signature · 2 lines
http://www.cip.ifi.lmu.de/~bleher/selinux/ - my SELinux pages GPG-Fingerprint: BC4F BB16 30D6 F253 E3EA D09E C562 2BAE B2F4 ABE7
domains/program/newrole.te +3 -0
@@ -8,6 +8,9 @@ # secure mode means that newrole/sudo/su/userhelper cannot reach sysadm_t bool secure_mode false; +type newrole_exec_t, file_type, exec_type, sysadmfile; +domain_auto_trans(userdomain, newrole_exec_t, newrole_t) + newrole_domain(newrole) # Write to utmp.
macros/program/newrole_macros.te +0 -3
@@ -23,9 +23,6 @@ # for when the user types "exec newrole" at the command line allow $1_t privfd:process sigchld; -type $1_exec_t, file_type, exec_type, sysadmfile; -domain_auto_trans(userdomain, $1_exec_t, $1_t) - # Inherit descriptors from the current session. allow $1_t privfd:fd use;
macros/program/sudo_macros.te +0 -1
@@ -31,5 +31,4 @@ rw_dir_create_file($1_sudo_t, $1_tmp_t) rw_dir_create_file($1_sudo_t, $1_home_t) domain_auto_trans($1_t, sudo_exec_t, $1_sudo_t) -r_dir_file($1_sudo_t, selinux_config_t) ')
Merged.
Quoted 8 lines · Thomas Bleher
Attached patch fixes one duplicate permission which is already in
newrole_domain()and moves the exec type declaration out of the macro. The old policy generated types likestaff_sudo_exec_twhich is wrong, I think.Please apply.
Thomas
Signature · 7 lines
James Carter <[email protected]> National Security Agency -- 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.