Skip to contentSkip to conversation

fsdaemon writes files/disks at different levels, Needs write down.

PATCH [email protected] 2 participants 6 messages May 30, 2007 – Jun 12, 2007 SELinux security module

lore
Share & tools
lore
#0 lore raw
policy/modules/services/smartmon.te +1 -0
@@ -60,6 +60,7 @@
 fs_search_auto_mountpoints(fsdaemon_t)
 
 mls_file_read_up(fsdaemon_t)
+mls_file_write_down(fsdaemon_t)
 
 storage_raw_read_fixed_disk(fsdaemon_t)
 storage_raw_write_fixed_disk(fsdaemon_t)

--
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.

#1 lore raw

policy/modules/services/smartmon.te line 66

Quoted 10 lines · On Wed, 2007-05-30 at 10:22 -0400, [email protected] wrote:
policy/modules/services/smartmon.te +1 -0
@@ -60,6 +60,7 @@
 fs_search_auto_mountpoints(fsdaemon_t)
 
 mls_file_read_up(fsdaemon_t)
+mls_file_write_down(fsdaemon_t)
 
 storage_raw_read_fixed_disk(fsdaemon_t)
 storage_raw_write_fixed_disk(fsdaemon_t)

Looks to me that all of the devices smartmon should care about (fixed_disk_device_t) are all system high, so I'm not sure why this is needed.

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.
#2 lore raw
Quoted 10 lines · Christopher J. PeBenito
Quoted 8 lines · On Wed, 2007-05-30 at 10:22 -0400, [email protected] wrote:
policy/modules/services/smartmon.te +1 -0
@@ -60,6 +60,7 @@
 fs_search_auto_mountpoints(fsdaemon_t)
 
 mls_file_read_up(fsdaemon_t)
+mls_file_write_down(fsdaemon_t)
 
Quoted 9 lines

policy/modules/services/smartmon.te line 66

Quoted 3 lines
policy/modules/services/smartmon.te +0 -0
 storage_raw_read_fixed_disk(fsdaemon_t)
 storage_raw_write_fixed_disk(fsdaemon_t)

Looks to me that all of the devices smartmon should care about (fixed_disk_device_t) are all system high, so I'm not sure why this is needed.

Writing its pid file?

--
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.

#3 lore raw
Quoted 20 lines · Daniel J Walsh
Quoted 10 lines · Christopher J. PeBenito
Quoted 8 lines · On Wed, 2007-05-30 at 10:22 -0400, [email protected] wrote:
policy/modules/services/smartmon.te +1 -0
@@ -60,6 +60,7 @@
 fs_search_auto_mountpoints(fsdaemon_t)
 
 mls_file_read_up(fsdaemon_t)
+mls_file_write_down(fsdaemon_t)
 
Quoted 9 lines

policy/modules/services/smartmon.te line 66

Quoted 3 lines
policy/modules/services/smartmon.te +0 -0
 storage_raw_read_fixed_disk(fsdaemon_t)
 storage_raw_write_fixed_disk(fsdaemon_t)

Looks to me that all of the devices smartmon should care about (fixed_disk_device_t) are all system high, so I'm not sure why this is needed.

Quoted 1 line

Writing its pid file?

Perhaps the pid file should be systemhigh too. It might be only the pid number in the file, but do we want to trust it write down when it has raw disk access?

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.
#4 lore raw
Quoted 25 lines · Christopher J. PeBenito
Quoted 23 lines · Daniel J Walsh
Quoted 21 lines · Christopher J. PeBenito

policy/modules/services/smartmon.te line 66

Quoted 12 lines · On Wed, 2007-05-30 at 10:22 -0400, [email protected] wrote:
policy/modules/services/smartmon.te +1 -0
@@ -60,6 +60,7 @@
 fs_search_auto_mountpoints(fsdaemon_t)
 
 mls_file_read_up(fsdaemon_t)
+mls_file_write_down(fsdaemon_t)
 
 storage_raw_read_fixed_disk(fsdaemon_t)
 storage_raw_write_fixed_disk(fsdaemon_t)

Looks to me that all of the devices smartmon should care about (fixed_disk_device_t) are all system high, so I'm not sure why this is needed.

Quoted 8 lines
Quoted 2 lines

Writing its pid file?

Perhaps the pid file should be systemhigh too. It might be only the pid number in the file, but do we want to trust it write down when it has raw disk access?

This is why I hate MLS :^(

The only files in /var/run that are SystemHigh right now are.

/var/run/setrans(/.*)? gen_context(system_u:object_r:setrans_var_run_t,mls_systemhigh)

--
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.

#5 lore raw
Quoted 34 lines · Daniel J Walsh
Quoted 25 lines · Christopher J. PeBenito
Quoted 23 lines · Daniel J Walsh
Quoted 21 lines · Christopher J. PeBenito

policy/modules/services/smartmon.te line 66

Quoted 12 lines · On Wed, 2007-05-30 at 10:22 -0400, [email protected] wrote:
policy/modules/services/smartmon.te +1 -0
@@ -60,6 +60,7 @@
 fs_search_auto_mountpoints(fsdaemon_t)
 
 mls_file_read_up(fsdaemon_t)
+mls_file_write_down(fsdaemon_t)
 
 storage_raw_read_fixed_disk(fsdaemon_t)
 storage_raw_write_fixed_disk(fsdaemon_t)

Looks to me that all of the devices smartmon should care about (fixed_disk_device_t) are all system high, so I'm not sure why this is needed.

Quoted 8 lines
Quoted 2 lines

Writing its pid file?

Perhaps the pid file should be systemhigh too. It might be only the pid number in the file, but do we want to trust it write down when it has raw disk access?

Quoted 6 lines

This is why I hate MLS :^(

The only files in /var/run that are SystemHigh right now are.

/var/run/setrans(/.*)? gen_context(system_u:object_r:setrans_var_run_t,mls_systemhigh)

It still seems like the right course of action; I'm open to comment from the MLS guys either way.

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.