|
Jeremy Solt |
c4834a |
policy_module(accountsd, 1.0.0)
|
|
Jeremy Solt |
c4834a |
|
|
Jeremy Solt |
c4834a |
########################################
|
|
Jeremy Solt |
c4834a |
#
|
|
Jeremy Solt |
c4834a |
# Declarations
|
|
Jeremy Solt |
c4834a |
#
|
|
Jeremy Solt |
c4834a |
|
|
Jeremy Solt |
c4834a |
type accountsd_t;
|
|
Jeremy Solt |
c4834a |
type accountsd_exec_t;
|
|
Jeremy Solt |
c4834a |
dbus_system_domain(accountsd_t, accountsd_exec_t)
|
|
Jeremy Solt |
c4834a |
|
|
Jeremy Solt |
c4834a |
type accountsd_var_lib_t;
|
|
Jeremy Solt |
c4834a |
files_type(accountsd_var_lib_t)
|
|
Jeremy Solt |
c4834a |
|
|
Jeremy Solt |
c4834a |
########################################
|
|
Jeremy Solt |
c4834a |
#
|
|
Jeremy Solt |
c4834a |
# accountsd local policy
|
|
Jeremy Solt |
c4834a |
#
|
|
Jeremy Solt |
c4834a |
|
|
Chris PeBenito |
8da889 |
allow accountsd_t self:capability { dac_override setuid setgid sys_ptrace };
|
|
Jeremy Solt |
c4834a |
allow accountsd_t self:fifo_file rw_fifo_file_perms;
|
|
Jeremy Solt |
c4834a |
|
|
Jeremy Solt |
c4834a |
manage_dirs_pattern(accountsd_t, accountsd_var_lib_t, accountsd_var_lib_t)
|
|
Jeremy Solt |
c4834a |
manage_files_pattern(accountsd_t, accountsd_var_lib_t, accountsd_var_lib_t)
|
|
Chris PeBenito |
8da889 |
files_var_lib_filetrans(accountsd_t, accountsd_var_lib_t, { file dir })
|
|
Jeremy Solt |
c4834a |
|
|
Jeremy Solt |
c4834a |
kernel_read_kernel_sysctls(accountsd_t)
|
|
Jeremy Solt |
c4834a |
|
|
Jeremy Solt |
c4834a |
corecmd_exec_bin(accountsd_t)
|
|
Jeremy Solt |
c4834a |
|
|
Jeremy Solt |
c4834a |
files_read_usr_files(accountsd_t)
|
|
Jeremy Solt |
c4834a |
files_read_mnt_files(accountsd_t)
|
|
Jeremy Solt |
c4834a |
|
|
Jeremy Solt |
c4834a |
fs_list_inotifyfs(accountsd_t)
|
|
Jeremy Solt |
c4834a |
fs_read_noxattr_fs_files(accountsd_t)
|
|
Jeremy Solt |
c4834a |
|
|
Jeremy Solt |
c4834a |
auth_use_nsswitch(accountsd_t)
|
|
Jeremy Solt |
c4834a |
auth_read_shadow(accountsd_t)
|
|
Jeremy Solt |
c4834a |
|
|
Jeremy Solt |
c4834a |
miscfiles_read_localization(accountsd_t)
|
|
Jeremy Solt |
c4834a |
|
|
Jeremy Solt |
c4834a |
logging_send_syslog_msg(accountsd_t)
|
|
Jeremy Solt |
c4834a |
logging_set_loginuid(accountsd_t)
|
|
Jeremy Solt |
c4834a |
|
|
Jeremy Solt |
c4834a |
userdom_read_user_tmp_files(accountsd_t)
|
|
Jeremy Solt |
c4834a |
userdom_read_user_home_content_files(accountsd_t)
|
|
Jeremy Solt |
c4834a |
|
|
Jeremy Solt |
c4834a |
usermanage_domtrans_useradd(accountsd_t)
|
|
Jeremy Solt |
c4834a |
usermanage_domtrans_passwd(accountsd_t)
|
|
Jeremy Solt |
c4834a |
|
|
Jeremy Solt |
c4834a |
optional_policy(`
|
|
Jeremy Solt |
c4834a |
consolekit_read_log(accountsd_t)
|
|
Jeremy Solt |
c4834a |
')
|
|
Jeremy Solt |
c4834a |
|
|
Jeremy Solt |
c4834a |
optional_policy(`
|
|
Jeremy Solt |
c4834a |
policykit_dbus_chat(accountsd_t)
|
|
Jeremy Solt |
c4834a |
')
|