Blame mls/domains/program/unused/resmgrd.te
|
Chris PeBenito |
31b7c0 |
# DESC resmgrd - resource manager daemon
|
|
Chris PeBenito |
31b7c0 |
#
|
|
Chris PeBenito |
31b7c0 |
# Author: Thomas Bleher <ThomasBleher@gmx.de>
|
|
Chris PeBenito |
31b7c0 |
|
|
Chris PeBenito |
31b7c0 |
daemon_base_domain(resmgrd)
|
|
Chris PeBenito |
31b7c0 |
var_run_domain(resmgrd, { file sock_file })
|
|
Chris PeBenito |
31b7c0 |
etc_domain(resmgrd)
|
|
Chris PeBenito |
31b7c0 |
read_locale(resmgrd_t)
|
|
Chris PeBenito |
31b7c0 |
allow resmgrd_t self:capability { dac_override dac_read_search sys_admin sys_rawio };
|
|
Chris PeBenito |
31b7c0 |
|
|
Chris PeBenito |
31b7c0 |
allow resmgrd_t etc_t:file { getattr read };
|
|
Chris PeBenito |
31b7c0 |
allow resmgrd_t self:unix_stream_socket create_stream_socket_perms;
|
|
Chris PeBenito |
31b7c0 |
allow resmgrd_t self:unix_dgram_socket create_socket_perms;
|
|
Chris PeBenito |
31b7c0 |
|
|
Chris PeBenito |
31b7c0 |
# hardware access
|
|
Chris PeBenito |
31b7c0 |
allow resmgrd_t device_t:lnk_file { getattr read };
|
|
Chris PeBenito |
31b7c0 |
# not sure if it needs write access, needs to be investigated further...
|
|
Chris PeBenito |
31b7c0 |
allow resmgrd_t removable_device_t:blk_file { getattr ioctl read write };
|
|
Chris PeBenito |
31b7c0 |
allow resmgrd_t scsi_generic_device_t:chr_file { getattr ioctl read write };
|
|
Chris PeBenito |
31b7c0 |
allow resmgrd_t scanner_device_t:chr_file { getattr };
|
|
Chris PeBenito |
31b7c0 |
# I think a dontaudit should be enough there
|
|
Chris PeBenito |
31b7c0 |
dontaudit resmgrd_t fixed_disk_device_t:blk_file { getattr ioctl read };
|
|
Chris PeBenito |
31b7c0 |
|
|
Chris PeBenito |
31b7c0 |
# there is a macro can_resmgrd_connect() in macros/program/resmgrd_macros.te
|
|
Chris PeBenito |
31b7c0 |
|