chfn/passwd
Hi, I am running the December release on a 2.6.2 kernel on a FC1. I have realised normal users could not change their finger name as well as changing password under enforcement mode.
Is this too restrictive? How do I get around this if I wish to allow normal users to be able to change their finger name information as well as password? What rules or changes to which particular source to enable it?
Regards,
Keen
--
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 4 lines · On Fri, 2004-04-23 at 04:20, [email protected] wrote:
Hi, I am running the December release on a 2.6.2 kernel on a FC1. I have realised normal users could not change their finger name as well as changing password under enforcement mode.
I remember fixing a bug like this in the FC2 policy a few weeks ago, maybe it was also in the upstream policy. After mining my email a bit, here's the patch I came up with at the time. Not sure if you're running into the same problem, you'd need to post the exact AVC messages.
domains/program/passwd.te renamed from domains/program/passwd.te~ +1 -1
@@ -72,7 +72,7 @@ passwd_domain(passwd) passwd_domain(sysadm_passwd) -base_passwd_domain(chfn, `auth_chkpwd, etc_writer') +base_passwd_domain(chfn, `auth_chkpwd, etc_writer, privowner') can_setfscreate(chfn_t) allow chfn_t self:process { setrlimit };
Quoted 10 lines · Colin Walters
Quoted 4 lines · On Fri, 2004-04-23 at 04:20, [email protected] wrote:
Hi, I am running the December release on a 2.6.2 kernel on a FC1. I have realised normal users could not change their finger name as well as changing password under enforcement mode.
I remember fixing a bug like this in the FC2 policy a few weeks ago, maybe it was also in the upstream policy. After mining my email a bit, here's the patch I came up with at the time. Not sure if you're running into the same problem, you'd need to post the exact AVC messages.
The original chfn policy was written when we used the "spasswd" wrapper for /bin/passwd. At that time there was no code called by chfn etc to set types, so the chfn policy just defined automatic type transitions (which resulted in the identity of the user in question being assigned to /etc/passwd - so anyone could see who last changed their finger name). Now that we have PAM code to relabel /etc/passwd (necessary to remove the spasswd wrapper) we need privowner so that it can change the identity of /etc/passwd. Lack of this access should result in chfn failing when it calls setfscreatecon().
I guess that no-one had tested chfn since the time of spasswd. ;)
Signature · 9 lines
http://www.coker.com.au/selinux/ My NSA Security Enhanced Linux packages http://www.coker.com.au/bonnie++/ Bonnie++ hard drive benchmark http://www.coker.com.au/postal/ Postal SMTP/POP benchmark http://www.coker.com.au/~russell/ My home page -- 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.