avcs when setting a watch
Hi,
I've been testing the LSPP kernel and noticed that I'm getting AVC's whenever I set a watch in root. auditctl -w /root/.bashrc I get this:
----
type=AVC msg=audit(05/10/2006 15:28:39.091:2848) : avc: denied { search } for
pid=8679 comm=auditctl name=root dev=hda7 ino=2326529
scontext=user_u:system_r:auditctl_t:s0 tcontext=root:object_r:user_home_dir_t:s0 tclass=dir
----
type=CONFIG_CHANGE msg=audit(05/10/2006 15:28:39.091:2849) : auid=sgrubb subj=user_u:system_r:auditctl_t:s0 add rule to list=4 res=0
----
type=SOCKADDR msg=audit(05/10/2006 15:28:39.091:2848) : saddr=netlink pid:0 type=SYSCALL msg=audit(05/10/2006 15:28:39.091:2848) : arch=x86_64 syscall=sendto success=yes exit=1088 a0=3 a1=7fffc3e30c10 a2=440 a3=0 items=0 ppid=8636 pid=8679 auid=sgrubb uid=root gid=root euid=root suid=root fsuid=root egid=root sgid=root fsgid=root tty=tty2 comm=auditctl exe=/sbin/auditctl subj=user_u:system_r:auditctl_t:s0
What appears to be happening, is auditctl sends the watch to the kernel, the kernel does a path lookup to see if the path is valid and if there is not already a watch set at the same place. Somewhere in the process, an AVC is generated and the config change is reported as failed. (If auditctl was responsible for this, the syscall wouldn't be a sendto.)
Should the policy be adjusted to let auditctl search anywhere (even though its not guilty) or should the kernel itself be unconfined?
-Steve
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
--
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 2 lines · Steve G
Should the policy be adjusted to let auditctl search anywhere (even though its not guilty) or should the kernel itself be unconfined?
It would probably be ideal if this operation could be performed in kernel context.
But if that is difficult or ugly in some way then allowing auditctl_t to {getattr search} to all directory types and getattr to all file types will be fine. auditctl_t is a fairly trusted domain anyway, any concerns that we might have in regard to it would be in regard to integrity not confidentiality.
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.