targeted policy patch
The attached patch is needed to quiet mdadm (and programs that do similar things) for the case of unlabeled device nodes. In Debian a typical install of etch with SE Linux will result in /dev/.static/dev containing a lot of unlabeled device nodes from the root filesystem (through a bind mount).
As for device_t, that's the default type upon creation and the type that new device nodes get before we assign a type to them.
Signature · 4 lines
[email protected] http://etbe.blogspot.com/ My Blog http://www.coker.com.au/sponsorship.html Sponsoring Free Software development
kernel/devices.if renamed from kernel/devices.if.orig +6 -2
@@ -598,9 +598,11 @@ interface(`dev_dontaudit_getattr_all_blk_files',` gen_require(` attribute device_node; + type file_t; + type device_t; ') - dontaudit $1 device_node:blk_file getattr; + dontaudit $1 { device_node file_t device_t }:blk_file getattr; ') ########################################
@@ -616,9 +618,11 @@ interface(`dev_getattr_all_chr_files',` gen_require(` attribute device_node; + type file_t; + type device_t; ') - allow $1 device_node:chr_file getattr; + allow $1 { device_node file_t device_t }:chr_file getattr; ') ########################################
Quoted 7 lines · Russell Coker
The attached patch is needed to quiet mdadm (and programs that do similar things) for the case of unlabeled device nodes. In Debian a typical install of etch with SE Linux will result in
/dev/.static/devcontaining a lot of unlabeled device nodes from the root filesystem (through a bind mount).As for
device_t, that's the default type upon creation and the type that new device nodes get before we assign a type to them.
A couple things. First, file_t cannot be referenced by name here, because it is not owned by this module. I'm not convinced it should be added to this interface because its not generally applicable to any domain that uses this interface.
Signature · 9 lines
Chris PeBenito Tresys Technology, LLC (410) 290-1411 x150 -- 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.