aboutsummaryrefslogtreecommitdiff
blob: 75901658336b9494402523fd81171d893c441080 (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
policy_module(seunshare, 1.1.0)

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

type seunshare_t;
type seunshare_exec_t;
application_domain(seunshare_t, seunshare_exec_t)
role system_r types seunshare_t;

########################################
#
# seunshare local policy
#

allow seunshare_t self:capability { setuid dac_override setpcap sys_admin };
allow seunshare_t self:process { setexec signal getcap setcap };

allow seunshare_t self:fifo_file rw_file_perms;
allow seunshare_t self:unix_stream_socket create_stream_socket_perms;

corecmd_exec_shell(seunshare_t)
corecmd_exec_bin(seunshare_t)

files_read_etc_files(seunshare_t)
files_mounton_all_poly_members(seunshare_t)

auth_use_nsswitch(seunshare_t)

logging_send_syslog_msg(seunshare_t)

miscfiles_read_localization(seunshare_t)

userdom_use_user_terminals(seunshare_t)

ifdef(`hide_broken_symptoms', `
	fs_dontaudit_rw_anon_inodefs_files(seunshare_t)

	optional_policy(`
		mozilla_dontaudit_manage_user_home_files(seunshare_t)
	')
')