## AccountsService and daemon for manipulating user account information via D-Bus ######################################## ## ## Execute a domain transition to run accountsd. ## ## ## ## Domain allowed access. ## ## # interface(`accountsd_domtrans',` gen_require(` type accountsd_t, accountsd_exec_t; ') domtrans_pattern($1, accountsd_exec_t, accountsd_t) ') ######################################## ## ## Do not audit attempts to read and write Accounts Daemon ## fifo file. ## ## ## ## Domain allowed access. ## ## # interface(`accountsd_dontaudit_rw_fifo_file',` gen_require(` type accountsd_t; ') dontaudit $1 accountsd_t:fifo_file rw_fifo_file_perms; ') ######################################## ## ## Send and receive messages from ## accountsd over dbus. ## ## ## ## Domain allowed access. ## ## # interface(`accountsd_dbus_chat',` gen_require(` type accountsd_t; class dbus send_msg; ') allow $1 accountsd_t:dbus send_msg; allow accountsd_t $1:dbus send_msg; ') ######################################## ## ## Search accountsd lib directories. ## ## ## ## Domain allowed access. ## ## # interface(`accountsd_search_lib',` gen_require(` type accountsd_var_lib_t; ') allow $1 accountsd_var_lib_t:dir search_dir_perms; files_search_var_lib($1) ') ######################################## ## ## Read accountsd lib files. ## ## ## ## Domain allowed access. ## ## # interface(`accountsd_read_lib_files',` gen_require(` type accountsd_var_lib_t; ') files_search_var_lib($1) read_files_pattern($1, accountsd_var_lib_t, accountsd_var_lib_t) ') ######################################## ## ## Create, read, write, and delete ## accountsd lib files. ## ## ## ## Domain allowed access. ## ## # interface(`accountsd_manage_lib_files',` gen_require(` type accountsd_var_lib_t; ') files_search_var_lib($1) manage_files_pattern($1, accountsd_var_lib_t, accountsd_var_lib_t) ') ######################################## ## ## All of the rules required to administrate ## an accountsd environment ## ## ## ## Domain allowed access. ## ## ## ## ## Role allowed access. ## ## ## # interface(`accountsd_admin',` gen_require(` type accountsd_t; ') allow $1 accountsd_t:process { ptrace signal_perms getattr }; ps_process_pattern($1, accountsd_t) accountsd_manage_lib_files($1) ')