forked from fedora-selinux/selinux-policy-contrib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
automount.te
183 lines (145 loc) · 5.25 KB
/
automount.te
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
policy_module(automount, 1.14.1)
########################################
#
# Declarations
#
type automount_t;
type automount_exec_t;
init_daemon_domain(automount_t, automount_exec_t)
type automount_initrc_exec_t;
init_script_file(automount_initrc_exec_t)
type automount_keytab_t;
files_type(automount_keytab_t)
type automount_lock_t;
files_lock_file(automount_lock_t)
type automount_tmp_t;
files_tmp_file(automount_tmp_t)
files_mountpoint(automount_tmp_t)
type automount_unit_file_t;
systemd_unit_file(automount_unit_file_t)
type automount_var_run_t;
files_pid_file(automount_var_run_t)
########################################
#
# Local policy
#
allow automount_t self:capability { setgid setuid sys_nice sys_resource dac_read_search dac_override sys_admin };
allow automount_t self:capability2 block_suspend;
dontaudit automount_t self:capability sys_tty_config;
allow automount_t self:process { signal_perms getpgid setpgid setsched setrlimit };
allow automount_t self:fifo_file rw_fifo_file_perms;
allow automount_t self:tcp_socket { accept listen };
allow automount_t self:rawip_socket create_socket_perms;
can_exec(automount_t, automount_exec_t)
allow automount_t automount_keytab_t:file read_file_perms;
allow automount_t automount_lock_t:file manage_file_perms;
files_lock_filetrans(automount_t, automount_lock_t, file)
manage_dirs_pattern(automount_t, automount_tmp_t, automount_tmp_t)
manage_files_pattern(automount_t, automount_tmp_t, automount_tmp_t)
files_tmp_filetrans(automount_t, automount_tmp_t, { file dir })
files_home_filetrans(automount_t, automount_tmp_t, dir)
files_root_filetrans(automount_t, automount_tmp_t, dir)
manage_files_pattern(automount_t, automount_var_run_t, automount_var_run_t)
manage_fifo_files_pattern(automount_t, automount_var_run_t, automount_var_run_t)
files_pid_filetrans(automount_t, automount_var_run_t, { file fifo_file })
kernel_read_kernel_sysctls(automount_t)
kernel_read_irq_sysctls(automount_t)
kernel_read_fs_sysctls(automount_t)
kernel_read_vm_sysctls(automount_t)
kernel_read_proc_symlinks(automount_t)
kernel_read_system_state(automount_t)
kernel_read_network_state(automount_t)
kernel_list_proc(automount_t)
kernel_dontaudit_search_xen_state(automount_t)
corecmd_exec_bin(automount_t)
corecmd_exec_shell(automount_t)
corenet_all_recvfrom_netlabel(automount_t)
corenet_tcp_sendrecv_generic_if(automount_t)
corenet_udp_sendrecv_generic_if(automount_t)
corenet_tcp_sendrecv_generic_node(automount_t)
corenet_udp_sendrecv_generic_node(automount_t)
corenet_tcp_sendrecv_all_ports(automount_t)
corenet_udp_sendrecv_all_ports(automount_t)
corenet_tcp_bind_generic_node(automount_t)
corenet_udp_bind_generic_node(automount_t)
corenet_sendrecv_all_client_packets(automount_t)
corenet_sendrecv_all_server_packets(automount_t)
corenet_tcp_connect_portmap_port(automount_t)
corenet_tcp_connect_all_ports(automount_t)
# Automount execs showmount when you browse /net. This is required until
# Someone writes a showmount policy
corenet_tcp_bind_reserved_port(automount_t)
corenet_tcp_bind_all_rpc_ports(automount_t)
corenet_udp_bind_reserved_port(automount_t)
corenet_udp_bind_all_rpc_ports(automount_t)
files_dontaudit_write_var_dirs(automount_t)
files_getattr_all_dirs(automount_t)
files_getattr_all_files(automount_t)
files_getattr_default_dirs(automount_t)
files_getattr_home_dir(automount_t)
files_getattr_isid_type_dirs(automount_t)
files_exec_etc_files(automount_t)
files_list_mnt(automount_t)
files_manage_non_security_dirs(automount_t)
files_mount_all_file_type_fs(automount_t)
files_mounton_all_mountpoints(automount_t)
files_mounton_mnt(automount_t)
files_read_etc_runtime_files(automount_t)
files_search_boot(automount_t)
files_search_all(automount_t)
files_unmount_all_file_type_fs(automount_t)
fs_getattr_all_dirs(automount_t)
fs_getattr_all_fs(automount_t)
fs_manage_auto_mountpoints(automount_t)
fs_manage_autofs_symlinks(automount_t)
fs_mount_all_fs(automount_t)
fs_mount_autofs(automount_t)
fs_read_nfs_files(automount_t)
fs_read_nfs_symlinks(automount_t)
fs_search_all(automount_t)
fs_search_auto_mountpoints(automount_t)
fs_unmount_all_fs(automount_t)
fs_unmount_autofs(automount_t)
dev_read_rand(automount_t)
dev_read_sysfs(automount_t)
dev_read_urand(automount_t)
dev_rw_autofs(automount_t)
domain_use_interactive_fds(automount_t)
domain_dontaudit_read_all_domains_state(automount_t)
netutils_domtrans_ping(automount_t)
storage_rw_fuse(automount_t)
term_dontaudit_getattr_pty_dirs(automount_t)
auth_use_nsswitch(automount_t)
logging_send_syslog_msg(automount_t)
logging_search_logs(automount_t)
miscfiles_read_generic_certs(automount_t)
userdom_dontaudit_use_unpriv_user_fds(automount_t)
optional_policy(`
# Run mount in the mount_t domain.
mount_domtrans(automount_t)
mount_domtrans_showmount(automount_t)
mount_signal(automount_t)
mount_rw_pid_files(automount_t)
')
optional_policy(`
fstools_domtrans(automount_t)
')
optional_policy(`
kerberos_read_config(automount_t)
kerberos_read_keytab(automount_t)
kerberos_use(automount_t)
kerberos_dontaudit_write_config(automount_t)
')
optional_policy(`
samba_read_config(automount_t)
samba_manage_var_files(automount_t)
')
optional_policy(`
seutil_sigchld_newrole(automount_t)
')
optional_policy(`
udev_read_db(automount_t)
')
tunable_policy(`mount_anyfile',`
files_mounton_non_security(automount_t)
')