Latest Patch
A message that is not in the archive (sent off-list or not yet received): [email protected]
Merged.
You didn't actually add anything to tunables.tun, so I added:
+# Do not allow sysadm_t to be in the security manager domain +dnl define(`separate_secadm')
Feel free to change.
When I tested the policy, I couldn't newrole to secadm_r. Steve found that there was a bug in the newrole policy. It needed the fowner capability, so that was added.
Other then that, it seems to work as advertised.
Quoted 56 lines · Daniel J Walsh
This one needs to be reviewed. I have added secadm_r:secadm_t
Basically I have created a new macro
security_manager_domain($1)Which is called by sysadm and secadm
This domain has all the rules necessary for manipulating policy and selinux objects.
It also adds an attribute secadmin, which is the only attribute allowed to transition to
checkpolicy_t,setfiles_t,load_policy_tA tunable is built around allowing
sysadm_tin this domain. (Defaults
to sysadmin in this domain).Also created a
limited_user_roledomain that is called byfull_user_role. With all the allow rules required to getsecadm_rto work.I had to put the role
secadm_rtypes XYZ types all over the place. I would be nice if the language made this easier.
Right now we have rolesysadm_rthere also, so even if the transition is not allowed the role rule is still there.A few strange rules allowing checkpolicy and
load_policyto readsysadm_tmp_tfiles has been removed.I treated restorecon differently from the other policy files since I could see where a sysadm might need access to this while setfiles is less likely. We can argue this point.
Added a privsysmod attribute for any domain needing
sys_module. (kernel, howl, insmod and NetworkManager)Changed
admin_tty_typefrom a define to an attribute. Made it easier to add additional admin ttys in the future.Some changes from Ivan are also here.
mudutil.te removed from targeted directory, since we are now using the full modutil.te from strict.
I think we can tighten up the differentiation between
sysadm_tandsecadm_tby removing sysadmfile from all of the policy files.The rules in
security_manager_domainadd those rules back in.limited_user_domaincould also be a little tighter.Steve Grubb mentioned to me there is also a need, request for and "auditadmin" role, so with some of these changes that would
be pretty easy to implement. Now just need to getlibsepol_usermod
stuff done.Dan
Signature · 8 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.