nscd
I have just created some rules for nscd (the name service caching daemon).
In domains/system/initrc.te I put the following:domain_auto_trans(initrc_t, nscd_exec_t, nscd_t)
I put the following in file_contexts:/usr/sbin/nscd system_u:object_r:nscd_exec_t
I have attached my nscd.te file.
I believe that the recent versions of nscd (and the matching library code in libc6) doesn't attempt to cache /etc/shadow data. If this isn't the case then it's a security issue which would have to be corrected on an SE system (or else nscd should not be run). I have to check this (don't have access to the source right now).
In a typical setup of nscd you will have a somewhat slow source of password data (LDAP or a SQL database) and the nscd will cache lookups so that "ls -l /tmp" doesn't take all day.
Signature · 4 lines
Signatures >4 lines are rude. If you send email to me or to a mailing list that I am subscribed to which has >4 lines of legalistic junk at the end then you are specifically authorizing me to do whatever I wish with the message (the sig won't be read).
#
# Author: Russell Coker <[email protected]>
#
#################################
#
# Rules for the nscd_t domain.
#
type nscd_t, domain, privlog;
type nscd_exec_t, file_type, sysadmfile, exec_type;
# Inherit and use descriptors from init.
allow nscd_t init_t:fd inherit_fd_perms;
# Create pid file.
type nscd_var_run_t, file_type, sysadmfile, pidfile; file_type_auto_trans(nscd_t, var_run_t, nscd_var_run_t)
can_unix_connect(domain, nscd_t)
allow domain nscd_var_run_t:sock_file rw_file_perms;
Quoted 7 lines · Russell Coker
I have just created some rules for nscd (the name service caching daemon).
In domains/system/initrc.te I put the following:
domain_auto_trans(initrc_t, nscd_exec_t, nscd_t)I put the following in
file_contexts:/usr/sbin/nscdsystem_u:object_r:nscd_exec_t
I'd suggest including the above domain_auto_trans rule and the role types definition (role system_r types nscd_t) in the nscd.te file. That keeps the entire domain definition isolated to nscd.te. I've merged this domain with these minor changes. At some point, I'd like to revise the other domains in the example policy configuration to do likewise.
--
Stephen D. Smalley, NAI Labs
[email protected]
--
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.