can_ypbind()
It seems that on a NIS system most domains need access to it. So it seems reasonable to put a call to can_ypbind() in daemon_domain() to cover most daemons. I considered daemon_base_domain() or daemon_core_rules() but that makes it too awkward to implement a basic daemon that has no network access on a NIS system.
Also it seems that anything which needs NIS access will also need NSCD or LDAP access depending on the configuration of the system. So maybe instead of can_ypbind() we should have can_account_lookup() (or some better name) which will then permit NIS, NIS+, LDAP, NSCD, or whatever else is necessary to do the job.
What do you think?
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.
Quoted 5 lines · Russell Coker
Also it seems that anything which needs NIS access will also need NSCD or LDAP access depending on the configuration of the system. So maybe instead of
can_ypbind()we should havecan_account_lookup()(or some better name) which will then permit NIS, NIS+, LDAP, NSCD, or whatever else is necessary to do the job.
Possibly can_nameservice or can_nsswitch, and cover the possibilities present in /etc/nsswitch.conf, e.g. NIS+, NIS, DNS, local /etc file reading, hesiod, etc.
Signature · 8 lines
Stephen Smalley <[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.