Chris PeBenito 31b7c0
#DESC file system daemons
Chris PeBenito 31b7c0
#
Chris PeBenito 31b7c0
# Author:  Russell Coker <russell@coker.com.au>
Chris PeBenito 31b7c0
# X-Debian-Packages: smartmontools
Chris PeBenito 31b7c0
Chris PeBenito 31b7c0
daemon_domain(fsdaemon, `, fs_domain, privmail')
Chris PeBenito 31b7c0
allow fsdaemon_t self:unix_dgram_socket create_socket_perms;
Chris PeBenito 31b7c0
allow fsdaemon_t self:unix_stream_socket create_stream_socket_perms;
Chris PeBenito 31b7c0
Chris PeBenito 31b7c0
# for config
Chris PeBenito 31b7c0
allow fsdaemon_t etc_t:file { getattr read };
Chris PeBenito 31b7c0
Chris PeBenito 31b7c0
allow fsdaemon_t device_t:dir read;
Chris PeBenito 31b7c0
allow fsdaemon_t fixed_disk_device_t:blk_file rw_file_perms;
Chris PeBenito 31b7c0
allow fsdaemon_t self:capability { setgid sys_rawio sys_admin };
Chris PeBenito 31b7c0
allow fsdaemon_t etc_runtime_t:file { getattr read };
Chris PeBenito 31b7c0
Chris PeBenito 31b7c0
allow fsdaemon_t proc_mdstat_t:file { getattr read };
Chris PeBenito 31b7c0
Chris PeBenito 31b7c0
can_exec_any(fsdaemon_t)
Chris PeBenito 31b7c0
allow fsdaemon_t self:fifo_file rw_file_perms;
Chris PeBenito 31b7c0
can_network_udp(fsdaemon_t)
Chris PeBenito 31b7c0
tmp_domain(fsdaemon)
Chris PeBenito 31b7c0
allow system_mail_t fsdaemon_tmp_t:file { getattr ioctl read };
Chris PeBenito 31b7c0
Chris PeBenito 31b7c0
dontaudit fsdaemon_t devpts_t:dir search;
Chris PeBenito 31b7c0
allow fsdaemon_t proc_t:file { getattr read };
Chris PeBenito 31b7c0
dontaudit system_mail_t fixed_disk_device_t:blk_file read;