|
Dominick Grift |
eeee11a |
policy_module(accountsd, 1.0.4)
|
|
Dominick Grift |
0a6ae2c |
|
|
Dominick Grift |
0a6ae2c |
gen_require(`
|
|
Dominick Grift |
0a6ae2c |
class passwd all_passwd_perms;
|
|
Dominick Grift |
0a6ae2c |
')
|
|
Chris PeBenito |
9401ae1 |
|
|
Chris PeBenito |
9401ae1 |
########################################
|
|
Chris PeBenito |
9401ae1 |
#
|
|
Chris PeBenito |
9401ae1 |
# Declarations
|
|
Chris PeBenito |
9401ae1 |
#
|
|
Chris PeBenito |
9401ae1 |
|
|
Chris PeBenito |
9401ae1 |
type accountsd_t;
|
|
Chris PeBenito |
9401ae1 |
type accountsd_exec_t;
|
|
Chris PeBenito |
9401ae1 |
dbus_system_domain(accountsd_t, accountsd_exec_t)
|
|
Chris PeBenito |
9401ae1 |
|
|
Chris PeBenito |
9401ae1 |
type accountsd_var_lib_t;
|
|
Chris PeBenito |
9401ae1 |
files_type(accountsd_var_lib_t)
|
|
Chris PeBenito |
9401ae1 |
|
|
Chris PeBenito |
9401ae1 |
########################################
|
|
Chris PeBenito |
9401ae1 |
#
|
|
Dominick Grift |
5479cf3 |
# Local policy
|
|
Chris PeBenito |
9401ae1 |
#
|
|
Chris PeBenito |
9401ae1 |
|
|
Dominick Grift |
5479cf3 |
allow accountsd_t self:capability { chown dac_override setuid setgid sys_ptrace };
|
|
Dominick Grift |
5479cf3 |
allow accountsd_t self:process signal;
|
|
Chris PeBenito |
9401ae1 |
allow accountsd_t self:fifo_file rw_fifo_file_perms;
|
|
Dominick Grift |
0a6ae2c |
allow accountsd_t self:passwd { rootok passwd chfn chsh };
|
|
Chris PeBenito |
9401ae1 |
|
|
Chris PeBenito |
9401ae1 |
manage_dirs_pattern(accountsd_t, accountsd_var_lib_t, accountsd_var_lib_t)
|
|
Chris PeBenito |
9401ae1 |
manage_files_pattern(accountsd_t, accountsd_var_lib_t, accountsd_var_lib_t)
|
|
Dominick Grift |
5479cf3 |
files_var_lib_filetrans(accountsd_t, accountsd_var_lib_t, dir)
|
|
Chris PeBenito |
9401ae1 |
|
|
Chris PeBenito |
9401ae1 |
kernel_read_kernel_sysctls(accountsd_t)
|
|
Dominick Grift |
5479cf3 |
kernel_read_system_state(accountsd_t)
|
|
Chris PeBenito |
9401ae1 |
|
|
Chris PeBenito |
9401ae1 |
corecmd_exec_bin(accountsd_t)
|
|
Chris PeBenito |
9401ae1 |
|
|
Dominick Grift |
5479cf3 |
dev_read_sysfs(accountsd_t)
|
|
Dominick Grift |
5479cf3 |
|
|
Chris PeBenito |
9401ae1 |
files_read_mnt_files(accountsd_t)
|
|
Dominick Grift |
5479cf3 |
files_read_usr_files(accountsd_t)
|
|
Chris PeBenito |
9401ae1 |
|
|
Dominick Grift |
5479cf3 |
fs_getattr_xattr_fs(accountsd_t)
|
|
Chris PeBenito |
9401ae1 |
fs_list_inotifyfs(accountsd_t)
|
|
Chris PeBenito |
9401ae1 |
fs_read_noxattr_fs_files(accountsd_t)
|
|
Chris PeBenito |
9401ae1 |
|
|
Chris PeBenito |
9401ae1 |
auth_use_nsswitch(accountsd_t)
|
|
Dominick Grift |
5479cf3 |
auth_read_login_records(accountsd_t)
|
|
Chris PeBenito |
9401ae1 |
auth_read_shadow(accountsd_t)
|
|
Chris PeBenito |
9401ae1 |
|
|
Chris PeBenito |
9401ae1 |
miscfiles_read_localization(accountsd_t)
|
|
Chris PeBenito |
9401ae1 |
|
|
Chris PeBenito |
9401ae1 |
logging_send_syslog_msg(accountsd_t)
|
|
Chris PeBenito |
9401ae1 |
logging_set_loginuid(accountsd_t)
|
|
Chris PeBenito |
9401ae1 |
|
|
Chris PeBenito |
9401ae1 |
userdom_read_user_tmp_files(accountsd_t)
|
|
Chris PeBenito |
9401ae1 |
userdom_read_user_home_content_files(accountsd_t)
|
|
Chris PeBenito |
9401ae1 |
|
|
Chris PeBenito |
9401ae1 |
usermanage_domtrans_useradd(accountsd_t)
|
|
Chris PeBenito |
9401ae1 |
usermanage_domtrans_passwd(accountsd_t)
|
|
Chris PeBenito |
9401ae1 |
|
|
Chris PeBenito |
9401ae1 |
optional_policy(`
|
|
Dominick Grift |
5479cf3 |
consolekit_dbus_chat(accountsd_t)
|
|
Chris PeBenito |
9401ae1 |
consolekit_read_log(accountsd_t)
|
|
Chris PeBenito |
9401ae1 |
')
|
|
Chris PeBenito |
9401ae1 |
|
|
Chris PeBenito |
9401ae1 |
optional_policy(`
|
|
Chris PeBenito |
9401ae1 |
policykit_dbus_chat(accountsd_t)
|
|
Chris PeBenito |
9401ae1 |
')
|