summaryrefslogtreecommitdiff
path: root/policy/modules/services/pxe.te
blob: 558a691450c5e621e2459ed7ac9fb3f7629e64cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65

policy_module(pxe, 1.3.0)

# cjp: policy seems incomplete

########################################
#
# Declarations
#

type pxe_t;
type pxe_exec_t;
init_daemon_domain(pxe_t, pxe_exec_t)

type pxe_log_t;
logging_log_file(pxe_log_t)

type pxe_var_run_t;
files_pid_file(pxe_var_run_t)

########################################
#
# Local policy
#

allow pxe_t self:capability { chown setgid setuid };
dontaudit pxe_t self:capability sys_tty_config;
allow pxe_t self:process signal_perms;

allow pxe_t pxe_log_t:file manage_file_perms;
logging_log_filetrans(pxe_t, pxe_log_t, file)

manage_files_pattern(pxe_t, pxe_var_run_t, pxe_var_run_t)
files_pid_filetrans(pxe_t, pxe_var_run_t, file)

kernel_read_kernel_sysctls(pxe_t)
kernel_list_proc(pxe_t)
kernel_read_proc_symlinks(pxe_t)

corenet_udp_bind_pxe_port(pxe_t)

dev_read_sysfs(pxe_t)

domain_use_interactive_fds(pxe_t)

files_read_etc_files(pxe_t)

fs_getattr_all_fs(pxe_t)
fs_search_auto_mountpoints(pxe_t)

logging_send_syslog_msg(pxe_t)

miscfiles_read_localization(pxe_t)

userdom_dontaudit_use_unpriv_user_fds(pxe_t)

sysadm_dontaudit_search_home_dirs(pxe_t)

optional_policy(`
	seutil_sigchld_newrole(pxe_t)
')

optional_policy(`
	udev_read_db(pxe_t)
')