refpolicy: kernel_storage changes
PATCH 1/1 refpolicy: kernel_storage changes
New storage devices.
Fedora has fixed_disk_device_t chr files
policy/modules/kernel/storage.fc +1 -0
@@ -23,6 +23,7 @@ /dev/loop.* -b gen_context(system_u:object_r:fixed_disk_device_t,mls_systemhigh) /dev/lvm -c gen_context(system_u:object_r:fixed_disk_device_t,mls_systemhigh) /dev/mcdx? -b gen_context(system_u:object_r:removable_device_t,s0) +/dev/megadev.* -c gen_context(system_u:object_r:removable_device_t,s0) /dev/mmcblk.* -b gen_context(system_u:object_r:removable_device_t,s0) /dev/nb[^/]+ -b gen_context(system_u:object_r:fixed_disk_device_t,mls_systemhigh) /dev/optcd -b gen_context(system_u:object_r:removable_device_t,s0)
policy/modules/kernel/storage.if +2 -0
@@ -100,6 +100,7 @@ dev_list_all_dev_nodes($1) allow $1 fixed_disk_device_t:blk_file read_blk_file_perms; + allow $1 fixed_disk_device_t:chr_file read_chr_file_perms; typeattribute $1 fixed_disk_raw_read; ')
@@ -144,6 +145,7 @@ dev_list_all_dev_nodes($1) allow $1 fixed_disk_device_t:blk_file write_blk_file_perms; + allow $1 fixed_disk_device_t:chr_file write_chr_file_perms; typeattribute $1 fixed_disk_raw_write; ')
--
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 · On Thu, 2007-08-02 at 16:13 -0400, [email protected] wrote:
New storage devices.
Fedora hasfixed_disk_device_tchr files
Merged.
Quoted 41 lines
--- nsaserefpolicy/policy/modules/kernel/storage.fc 2007-06-15
14:54:30.000000000 -0400
+++ serefpolicy-3.0.5/policy/modules/kernel/storage.fc 2007-08-02 11:02:02.000000000 -0400(quoted diff) +1
-0@@ -23,6 +23,7 @@ /dev/loop.* -b gen_context(system_u:object_r:fixed_disk_device_t,mls_systemhigh) /dev/lvm -c gen_context(system_u:object_r:fixed_disk_device_t,mls_systemhigh) /dev/mcdx? -b gen_context(system_u:object_r:removable_device_t,s0) +/dev/megadev.* -c
gen_context(system_u:object_r:removable_device_t,s0)
/dev/mmcblk.*-bgen_context(system_u:object_r:removable_device_t,s0)
/dev/nb[^/]+ -bgen_context(system_u:object_r:fixed_disk_device_t,mls_systemhigh)
/dev/optcd-bgen_context(system_u:object_r:removable_device_t,s0)
--- nsaserefpolicy/policy/modules/kernel/storage.if 2007-06-15
14:54:30.000000000 -0400
+++ serefpolicy-3.0.5/policy/modules/kernel/storage.if 2007-08-02 11:02:02.000000000 -0400policy/modules/kernel/storage.if +2
-0@@ -100,6 +100,7 @@ dev_list_all_dev_nodes($1) allow $1 fixed_disk_device_t:blk_file read_blk_file_perms; + allow $1 fixed_disk_device_t:chr_file read_chr_file_perms; typeattribute $1 fixed_disk_raw_read; ')@@ -144,6 +145,7 @@ dev_list_all_dev_nodes($1) allow $1 fixed_disk_device_t:blk_file write_blk_file_perms; + allow $1 fixed_disk_device_t:chr_file write_chr_file_perms; typeattribute $1 fixed_disk_raw_write; ')
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.