Blame strict/domains/program/unused/distcc.te
|
Chris PeBenito |
0fbfa5 |
#DESC distcc - Distributed compiler daemon
|
|
Chris PeBenito |
0fbfa5 |
#
|
|
Chris PeBenito |
0fbfa5 |
# Author: Chris PeBenito <pebenito@gentoo.org>
|
|
Chris PeBenito |
0fbfa5 |
#
|
|
Chris PeBenito |
0fbfa5 |
|
|
Chris PeBenito |
0fbfa5 |
daemon_domain(distccd)
|
|
Chris PeBenito |
0fbfa5 |
can_network_server(distccd_t)
|
|
Chris PeBenito |
0fbfa5 |
can_ypbind(distccd_t)
|
|
Chris PeBenito |
0fbfa5 |
log_domain(distccd)
|
|
Chris PeBenito |
0fbfa5 |
tmp_domain(distccd)
|
|
Chris PeBenito |
0fbfa5 |
|
|
Chris PeBenito |
0fbfa5 |
allow distccd_t distccd_port_t:tcp_socket name_bind;
|
|
Chris PeBenito |
0fbfa5 |
allow distccd_t self:capability { setgid setuid };
|
|
Chris PeBenito |
0fbfa5 |
|
|
Chris PeBenito |
0fbfa5 |
# distccd can renice
|
|
Chris PeBenito |
0fbfa5 |
allow distccd_t self:process setsched;
|
|
Chris PeBenito |
0fbfa5 |
|
|
Chris PeBenito |
0fbfa5 |
# compiler stuff
|
|
Chris PeBenito |
0fbfa5 |
allow distccd_t { bin_t sbin_t }:dir { search getattr };
|
|
Chris PeBenito |
0fbfa5 |
allow distccd_t { bin_t sbin_t }:lnk_file { getattr read };
|
|
Chris PeBenito |
0fbfa5 |
can_exec(distccd_t,bin_t)
|
|
Chris PeBenito |
0fbfa5 |
can_exec(distccd_t,lib_t)
|
|
Chris PeBenito |
0fbfa5 |
|
|
Chris PeBenito |
0fbfa5 |
# comm stuff
|
|
Chris PeBenito |
0fbfa5 |
allow distccd_t net_conf_t:file r_file_perms;
|
|
Chris PeBenito |
0fbfa5 |
allow distccd_t self:{ unix_stream_socket unix_dgram_socket } { create connect read write };
|
|
Chris PeBenito |
0fbfa5 |
allow distccd_t self:fifo_file { read write getattr };
|
|
Chris PeBenito |
0fbfa5 |
|
|
Chris PeBenito |
0fbfa5 |
# config access
|
|
Chris PeBenito |
0fbfa5 |
allow distccd_t { etc_t etc_runtime_t }:file r_file_perms;
|
|
Chris PeBenito |
0fbfa5 |
allow distccd_t proc_t:file r_file_perms;
|
|
Chris PeBenito |
0fbfa5 |
|
|
Chris PeBenito |
0fbfa5 |
allow distccd_t var_t:dir search;
|
|
Chris PeBenito |
0fbfa5 |
allow distccd_t admin_tty_type:chr_file { ioctl read write };
|