udev and capabilities
avc: denied { dac_read_search } for pid=4079 exe=/bin/bash capability=2 scontext=system_u:system_r:udev_t tcontext=system_u:system_r:udev_t tclass=capability
I notice the above in my log files with the latest rawhide. However udev.te has the following policy. I was under the impression that dac_override was checked before dac_read_search and it was redundant to have dac_read_search if you already had dac_override. Did I misunderstand this or have things changed in this regard?
allow udev_t self:capability { chown dac_override fowner fsetid sys_admin mknod};
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 4 lines · Russell Coker
avc: denied {
dac_read_search} for pid=4079 exe=/bin/bash capability=2 scontext=system_u:system_r:udev_t tcontext=system_u:system_r:udev_t tclass=capability
Quoted 8 lines
I notice the above in my log files with the latest rawhide. However udev.te has the following policy. I was under the impression that
dac_overridewas checked beforedac_read_searchand it was redundant to havedac_read_searchif you already haddac_override. Did I misunderstand this or have things changed in this regard?allow
udev_tself:capability { chowndac_overridefowner fsetidsys_adminmknod};
Looks like fs/ext3/acl.c:ext3_permission() is inconsistent with fs/namei.c:vfs_permission(), not in a way that affects the final outcome, but in performing the capable() call prior to other tests that would short circuit the logic and avoid the spurious audit.
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.