forked from fedora-selinux/selinux-policy-contrib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
accountsd.te
94 lines (69 loc) · 2.19 KB
/
accountsd.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
policy_module(accountsd, 1.1.0)
gen_require(`
class passwd all_passwd_perms;
')
gen_require(`
class passwd { passwd chfn chsh rootok crontab };
')
########################################
#
# Declarations
#
type accountsd_t;
type accountsd_exec_t;
init_daemon_domain(accountsd_t, accountsd_exec_t)
role system_r types accountsd_t;
type accountsd_var_lib_t;
files_type(accountsd_var_lib_t)
type accountsd_unit_file_t;
systemd_unit_file(accountsd_unit_file_t)
########################################
#
# Local policy
#
allow accountsd_t self:capability { chown dac_read_search dac_override setuid setgid sys_ptrace };
allow accountsd_t self:process signal;
allow accountsd_t self:fifo_file rw_fifo_file_perms;
allow accountsd_t self:passwd { rootok passwd chfn chsh };
manage_dirs_pattern(accountsd_t, accountsd_var_lib_t, accountsd_var_lib_t)
manage_files_pattern(accountsd_t, accountsd_var_lib_t, accountsd_var_lib_t)
files_var_lib_filetrans(accountsd_t, accountsd_var_lib_t, dir)
kernel_read_kernel_sysctls(accountsd_t)
kernel_read_system_state(accountsd_t)
corecmd_exec_bin(accountsd_t)
dev_read_sysfs(accountsd_t)
files_read_mnt_files(accountsd_t)
files_read_usr_files(accountsd_t)
fs_getattr_xattr_fs(accountsd_t)
fs_list_inotifyfs(accountsd_t)
fs_read_noxattr_fs_files(accountsd_t)
auth_use_nsswitch(accountsd_t)
auth_read_login_records(accountsd_t)
auth_read_shadow(accountsd_t)
init_dbus_chat(accountsd_t)
miscfiles_read_localization(accountsd_t)
logging_list_logs(accountsd_t)
logging_send_syslog_msg(accountsd_t)
logging_set_loginuid(accountsd_t)
userdom_dontaudit_create_admin_dir(accountsd_t)
userdom_dontaudit_manage_admin_dir(accountsd_t)
userdom_read_user_tmp_files(accountsd_t)
userdom_read_user_home_content_files(accountsd_t)
usermanage_domtrans_useradd(accountsd_t)
usermanage_domtrans_passwd(accountsd_t)
optional_policy(`
consolekit_dbus_chat(accountsd_t)
consolekit_read_log(accountsd_t)
')
optional_policy(`
dbus_system_domain(accountsd_t, accountsd_exec_t)
')
optional_policy(`
policykit_dbus_chat(accountsd_t)
')
optional_policy(`
xserver_read_xdm_tmp_files(accountsd_t)
xserver_read_state_xdm(accountsd_t)
xserver_dbus_chat_xdm(accountsd_t)
xserver_manage_xdm_etc_files(accountsd_t)
')