|
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)
|
|
Dan Walsh |
a947da |
init_daemon_domain(accountsd_t, accountsd_exec_t)
|
|
Dan Walsh |
a947da |
role system_r types accountsd_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 |
')
|
|
Dan Walsh |
a947da |
|
|
Dan Walsh |
a947da |
optional_policy(`
|
|
Dan Walsh |
a947da |
xserver_dbus_chat_xdm(accountsd_t)
|
|
Dan Walsh |
a947da |
xserver_manage_xdm_etc_files(accountsd_t)
|
|
Dan Walsh |
a947da |
')
|