macros for UID lookups and login
I think that we need to have macros to contain all the permissions necessary for uid lookups (IE "ls -al") and for login.
For uid lookups read access is needed for /etc/nsswitch.conf, /etc/passwd, and /etc/group (presumably the policy for the domain in question will also have uses_shlibs() so including it again would be redundant).
Then to add support for another authentication method (pwdb, database access, LDAP, etc) all that needs to be done is to change the macro file.
The macro for login access must be different to that for UID lookup. When using nscd and ldap or postgres the access needed for getpwnam() etc is totally different to that needed for PAM access (for straight /etc/passwd and /etc/shadow access it's the same).
Some of the sample policy files I have posted here will probably grant unwanted permissions due to my machines using LDAP for authentication. I will have to review them all and send changes after we get some new macros for UID lookup.
Then we need a different macro for password change, but that's an issue that I haven't considered in detail so I can't comment much on it yet.
Signature · 10 lines
If you send email to me or to a mailing list that I use which has >4 lines of legalistic junk at the end then you are specifically authorizing me to do whatever I wish with the message and all other messages from your domain, by posting the message you agree that your long legalistic sig is void. -- You have received this message because you are subscribed to the selinux list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.