]> git.ipfire.org Git - people/stevee/selinux-policy.git/blame - policy/modules/services/vhostmd.te
Merge upstream
[people/stevee/selinux-policy.git] / policy / modules / services / vhostmd.te
CommitLineData
6d4dbd20
CP
1policy_module(vhostmd, 1.0.0)
2
3########################################
4#
5# Declarations
6#
7
8type vhostmd_t;
9type vhostmd_exec_t;
10init_daemon_domain(vhostmd_t, vhostmd_exec_t)
11
12type vhostmd_initrc_exec_t;
13init_script_file(vhostmd_initrc_exec_t)
14
15type vhostmd_tmpfs_t;
16files_tmpfs_file(vhostmd_tmpfs_t)
17
18type vhostmd_var_run_t;
19files_pid_file(vhostmd_var_run_t)
20
21########################################
22#
23# vhostmd local policy
24#
25
26allow vhostmd_t self:capability { dac_override ipc_lock setuid setgid };
27allow vhostmd_t self:process { setsched getsched };
28allow vhostmd_t self:fifo_file rw_file_perms;
29
30manage_dirs_pattern(vhostmd_t, vhostmd_tmpfs_t, vhostmd_tmpfs_t)
31manage_files_pattern(vhostmd_t, vhostmd_tmpfs_t, vhostmd_tmpfs_t)
32fs_tmpfs_filetrans(vhostmd_t, vhostmd_tmpfs_t, { file dir })
33
34manage_dirs_pattern(vhostmd_t, vhostmd_var_run_t, vhostmd_var_run_t)
35manage_files_pattern(vhostmd_t, vhostmd_var_run_t, vhostmd_var_run_t)
36files_pid_filetrans(vhostmd_t, vhostmd_var_run_t, { file dir })
37
38kernel_read_system_state(vhostmd_t)
39kernel_read_network_state(vhostmd_t)
40kernel_write_xen_state(vhostmd_t)
41
42corecmd_exec_bin(vhostmd_t)
43corecmd_exec_shell(vhostmd_t)
44
45corenet_tcp_connect_soundd_port(vhostmd_t)
46
3eaa9939
DW
47# 579803
48files_list_tmp(vhostmd_t)
6d4dbd20
CP
49files_read_etc_files(vhostmd_t)
50files_read_usr_files(vhostmd_t)
51
52dev_read_sysfs(vhostmd_t)
53
54auth_use_nsswitch(vhostmd_t)
55
56logging_send_syslog_msg(vhostmd_t)
57
58miscfiles_read_localization(vhostmd_t)
59
60optional_policy(`
61 hostname_exec(vhostmd_t)
62')
63
64optional_policy(`
65 rpm_exec(vhostmd_t)
66 rpm_read_db(vhostmd_t)
67')
68
69optional_policy(`
70 virt_stream_connect(vhostmd_t)
3eaa9939 71 virt_write_content(vhostmd_t)
6d4dbd20
CP
72')
73
74optional_policy(`
75 xen_domtrans_xm(vhostmd_t)
76 xen_stream_connect(vhostmd_t)
77 xen_stream_connect_xenstore(vhostmd_t)
78 xen_stream_connect_xm(vhostmd_t)
79')