When simply sending mail from root to user or form user to user on
localhost I get an avc denial message
avc: denied { remove_name search } for pid=675 exc=/bin/mail
path=/var/spool/mail/user_02 dev=03:05 ino=310085
scontext=user_02:user_r:user_t tcontext=system_u:object:r:mail_spool_t t class=dir
allow sendmail_t mail_spool_t:dir rw_dir_perms
how would I add the remove_name search (and other additional permissions
for the directory file class)
I cannot seem to find the macro definition for them.
thank you
-Dan Berberich
--
You have received this message because you are subscribed to the selinux list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
On Tue, 20 Nov 2001, Dan Berberich wrote:
> When simply sending mail from root to user or form user to user on
> localhost I get an avc denial message
> avc: denied { remove_name search } for pid=675 exc=/bin/mail
> path=/var/spool/mail/user_02 dev=03:05 ino=310085
> scontext=user_02:user_r:user_t
> tcontext=system_u:object:r:mail_spool_t
> class=dir
This indicates that the /bin/mail program is trying to directly drop the message into /var/spool/mail. Since /bin/mail doesn't run in a separate domain and the ordinary user domain lacks these permissions, this access is denied.
On my system, when I send mail to a local user (whether from root to a user or from a user to a user), the sendmail program is executed by mail, which does cause a transition to a new domain (either user_mail_t or sysadm_mail_t, depending on whether you were logged in as user_t or sysadm_t) that can write to /var/spool/mail. And even if I were to place /bin/mail into a domain that can write to /var/spool/mail, the Unix permissions wouldn't allow this behavior, since /bin/mail isn't setuid or setgid and /var/spool/mail isn't world writeable.
-- Stephen D. Smalley, NAI Labs ssmalley@nai.com -- You have received this message because you are subscribed to the selinux list. If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with the words "unsubscribe selinux" without quotes as the message.
This archive was generated by hypermail 2.2.0 on Wed 11 Jun 2008 - 08:10:54 EDT