Chris PeBenito ed3a1f
policy_module(policykit, 1.1.0)
Chris PeBenito 9e90ce
Chris PeBenito 9e90ce
########################################
Chris PeBenito 9e90ce
#
Chris PeBenito 9e90ce
# Declarations
Chris PeBenito 9e90ce
#
Chris PeBenito 9e90ce
Chris PeBenito 9e90ce
type policykit_t alias polkit_t;
Chris PeBenito 9e90ce
type policykit_exec_t alias polkit_exec_t;
Chris PeBenito 9e90ce
init_daemon_domain(policykit_t, policykit_exec_t)
Chris PeBenito 9e90ce
Chris PeBenito 9e90ce
type policykit_auth_t alias polkit_auth_t;
Chris PeBenito 9e90ce
type policykit_auth_exec_t alias polkit_auth_exec_t;
Chris PeBenito 9e90ce
init_daemon_domain(policykit_auth_t, policykit_auth_exec_t)
Chris PeBenito 9e90ce
Chris PeBenito 9e90ce
type policykit_grant_t alias polkit_grant_t;
Chris PeBenito 9e90ce
type policykit_grant_exec_t alias polkit_grant_exec_t;
Chris PeBenito 9e90ce
init_system_domain(policykit_grant_t, policykit_grant_exec_t)
Chris PeBenito 9e90ce
Chris PeBenito 9e90ce
type policykit_resolve_t alias polkit_resolve_t;
Chris PeBenito 9e90ce
type policykit_resolve_exec_t alias polkit_resolve_exec_t;
Chris PeBenito 9e90ce
init_system_domain(policykit_resolve_t, policykit_resolve_exec_t)
Chris PeBenito 9e90ce
Chris PeBenito 9e90ce
type policykit_reload_t alias polkit_reload_t;
Chris PeBenito 9e90ce
files_type(policykit_reload_t)
Chris PeBenito 9e90ce
Chris PeBenito 9e90ce
type policykit_var_lib_t alias polkit_var_lib_t;
Chris PeBenito 9e90ce
files_type(policykit_var_lib_t)
Chris PeBenito 9e90ce
Chris PeBenito 9e90ce
type policykit_var_run_t alias polkit_var_run_t;
Chris PeBenito 9e90ce
files_pid_file(policykit_var_run_t)
Chris PeBenito 9e90ce
Chris PeBenito 9e90ce
########################################
Chris PeBenito 9e90ce
#
Chris PeBenito 9e90ce
# policykit local policy
Chris PeBenito 9e90ce
#
Chris PeBenito 9e90ce
Chris PeBenito 9e90ce
allow policykit_t self:capability { setgid setuid };
Chris PeBenito 9e90ce
allow policykit_t self:process getattr;
Chris PeBenito 9e90ce
allow policykit_t self:fifo_file rw_file_perms;
Chris PeBenito 9e90ce
allow policykit_t self:unix_dgram_socket create_socket_perms;
Chris PeBenito 9e90ce
allow policykit_t self:unix_stream_socket create_stream_socket_perms;
Chris PeBenito 9e90ce
Chris PeBenito 9e90ce
policykit_domtrans_auth(policykit_t)
Chris PeBenito 9e90ce
Chris PeBenito 9e90ce
can_exec(policykit_t, policykit_exec_t)
Chris PeBenito 9e90ce
corecmd_exec_bin(policykit_t)
Chris PeBenito 9e90ce
Chris PeBenito 9e90ce
rw_files_pattern(policykit_t, policykit_reload_t, policykit_reload_t)
Chris PeBenito 9e90ce
Chris PeBenito 9e90ce
policykit_domtrans_resolve(policykit_t)
Chris PeBenito 9e90ce
Chris PeBenito 9e90ce
manage_files_pattern(policykit_t, policykit_var_lib_t, policykit_var_lib_t)
Chris PeBenito 9e90ce
Chris PeBenito 9e90ce
manage_dirs_pattern(policykit_t, policykit_var_run_t, policykit_var_run_t)
Chris PeBenito 9e90ce
manage_files_pattern(policykit_t, policykit_var_run_t, policykit_var_run_t)
Chris PeBenito 9e90ce
files_pid_filetrans(policykit_t, policykit_var_run_t, { file dir })
Chris PeBenito 9e90ce
Chris PeBenito 9e90ce
kernel_read_kernel_sysctls(policykit_t)
Chris PeBenito 9e90ce
Chris PeBenito 9e90ce
files_read_etc_files(policykit_t)
Chris PeBenito 9e90ce
files_read_usr_files(policykit_t)
Chris PeBenito 9e90ce
Chris PeBenito 9e90ce
auth_use_nsswitch(policykit_t)
Chris PeBenito 9e90ce
Chris PeBenito 9e90ce
logging_send_syslog_msg(policykit_t)
Chris PeBenito 9e90ce
Chris PeBenito 9e90ce
miscfiles_read_localization(policykit_t)
Chris PeBenito 9e90ce
Chris PeBenito 9e90ce
userdom_read_all_users_state(policykit_t)
Chris PeBenito 9e90ce
Chris PeBenito 9e90ce
########################################
Chris PeBenito 9e90ce
#
Chris PeBenito 9e90ce
# polkit_auth local policy
Chris PeBenito 9e90ce
#
Chris PeBenito 9e90ce
Chris PeBenito 9e90ce
allow policykit_auth_t self:capability setgid;
Chris PeBenito 9e90ce
allow policykit_auth_t self:process getattr;
Chris PeBenito 9e90ce
allow policykit_auth_t self:fifo_file rw_file_perms;
Chris PeBenito 9e90ce
allow policykit_auth_t self:unix_dgram_socket create_socket_perms;
Chris PeBenito 9e90ce
allow policykit_auth_t self:unix_stream_socket create_stream_socket_perms;
Chris PeBenito 9e90ce
Chris PeBenito 9e90ce
can_exec(policykit_auth_t, policykit_auth_exec_t)
Chris PeBenito 9e90ce
corecmd_search_bin(policykit_auth_t)
Chris PeBenito 9e90ce
Chris PeBenito 9e90ce
rw_files_pattern(policykit_auth_t, policykit_reload_t, policykit_reload_t)
Chris PeBenito 9e90ce
Chris PeBenito 9e90ce
manage_files_pattern(policykit_auth_t, policykit_var_lib_t, policykit_var_lib_t)
Chris PeBenito 9e90ce
Chris PeBenito 9e90ce
manage_dirs_pattern(policykit_auth_t, policykit_var_run_t, policykit_var_run_t)
Chris PeBenito 9e90ce
manage_files_pattern(policykit_auth_t, policykit_var_run_t, policykit_var_run_t)
Chris PeBenito 9e90ce
files_pid_filetrans(policykit_auth_t, policykit_var_run_t, { file dir })
Chris PeBenito 9e90ce
Chris PeBenito 909922
kernel_read_system_state(policykit_auth_t)
Chris PeBenito 909922
Chris PeBenito 9e90ce
files_read_etc_files(policykit_auth_t)
Chris PeBenito 9e90ce
files_read_usr_files(policykit_auth_t)
Chris PeBenito 9e90ce
Chris PeBenito 9e90ce
auth_use_nsswitch(policykit_auth_t)
Chris PeBenito 9e90ce
Chris PeBenito 9e90ce
logging_send_syslog_msg(policykit_auth_t)
Chris PeBenito 9e90ce
Chris PeBenito 9e90ce
miscfiles_read_localization(policykit_auth_t)
Chris PeBenito 9e90ce
Chris PeBenito 9e90ce
userdom_dontaudit_read_user_home_content_files(policykit_auth_t)
Chris PeBenito 9e90ce
Chris PeBenito 9e90ce
optional_policy(`
Chris PeBenito 909922
	dbus_system_bus_client(policykit_auth_t)
Chris PeBenito 9e90ce
	dbus_session_bus_client(policykit_auth_t)
Chris PeBenito 9e90ce
Chris PeBenito 9e90ce
	optional_policy(`
Chris PeBenito 9e90ce
		consolekit_dbus_chat(policykit_auth_t)
Chris PeBenito 9e90ce
	')
Chris PeBenito 9e90ce
')
Chris PeBenito 9e90ce
Chris PeBenito 9e90ce
optional_policy(`
Chris PeBenito 9e90ce
	kernel_search_proc(policykit_auth_t)
Chris PeBenito 9e90ce
	hal_read_state(policykit_auth_t)
Chris PeBenito 9e90ce
')
Chris PeBenito 9e90ce
Chris PeBenito 9e90ce
########################################
Chris PeBenito 9e90ce
#
Chris PeBenito 9e90ce
# polkit_grant local policy
Chris PeBenito 9e90ce
#
Chris PeBenito 9e90ce
Chris PeBenito 9e90ce
allow policykit_grant_t self:capability setuid;
Chris PeBenito 9e90ce
allow policykit_grant_t self:process getattr;
Chris PeBenito 9e90ce
allow policykit_grant_t self:fifo_file rw_file_perms;
Chris PeBenito 9e90ce
allow policykit_grant_t self:unix_dgram_socket create_socket_perms;
Chris PeBenito 9e90ce
allow policykit_grant_t self:unix_stream_socket create_stream_socket_perms;
Chris PeBenito 9e90ce
Chris PeBenito 9e90ce
policykit_domtrans_auth(policykit_grant_t)
Chris PeBenito 9e90ce
Chris PeBenito 9e90ce
policykit_domtrans_resolve(policykit_grant_t)
Chris PeBenito 9e90ce
Chris PeBenito 9e90ce
can_exec(policykit_grant_t, policykit_grant_exec_t)
Chris PeBenito 9e90ce
corecmd_search_bin(policykit_grant_t)
Chris PeBenito 9e90ce
Chris PeBenito 9e90ce
rw_files_pattern(policykit_grant_t, policykit_reload_t, policykit_reload_t)
Chris PeBenito 9e90ce
Chris PeBenito 9e90ce
manage_files_pattern(policykit_grant_t, policykit_var_run_t, policykit_var_run_t)
Chris PeBenito 9e90ce
Chris PeBenito 9e90ce
manage_files_pattern(policykit_grant_t, policykit_var_lib_t, policykit_var_lib_t)
Chris PeBenito 9e90ce
Chris PeBenito 9e90ce
files_read_etc_files(policykit_grant_t)
Chris PeBenito 9e90ce
files_read_usr_files(policykit_grant_t)
Chris PeBenito 9e90ce
Chris PeBenito 9e90ce
auth_use_nsswitch(policykit_grant_t)
Chris PeBenito 9e90ce
auth_domtrans_chk_passwd(policykit_grant_t)
Chris PeBenito 9e90ce
Chris PeBenito 9e90ce
logging_send_syslog_msg(policykit_grant_t)
Chris PeBenito 9e90ce
Chris PeBenito 9e90ce
miscfiles_read_localization(policykit_grant_t)
Chris PeBenito 9e90ce
Chris PeBenito 9e90ce
userdom_read_all_users_state(policykit_grant_t)
Chris PeBenito 9e90ce
Chris PeBenito 9e90ce
optional_policy(`
Chris PeBenito 9e90ce
	dbus_system_bus_client(policykit_grant_t)
Chris PeBenito 9e90ce
Chris PeBenito 9e90ce
	optional_policy(`
Chris PeBenito 9e90ce
		consolekit_dbus_chat(policykit_grant_t)
Chris PeBenito 9e90ce
	')
Chris PeBenito 9e90ce
')
Chris PeBenito 9e90ce
Chris PeBenito 9e90ce
########################################
Chris PeBenito 9e90ce
#
Chris PeBenito 9e90ce
# polkit_resolve local policy
Chris PeBenito 9e90ce
#
Chris PeBenito 9e90ce
Chris PeBenito 9e90ce
allow policykit_resolve_t self:capability { setuid sys_nice sys_ptrace };
Chris PeBenito 9e90ce
allow policykit_resolve_t self:process getattr;
Chris PeBenito 9e90ce
allow policykit_resolve_t self:fifo_file rw_file_perms;
Chris PeBenito 9e90ce
allow policykit_resolve_t self:unix_dgram_socket create_socket_perms;
Chris PeBenito 9e90ce
allow policykit_resolve_t self:unix_stream_socket create_stream_socket_perms;
Chris PeBenito 9e90ce
Chris PeBenito 9e90ce
policykit_domtrans_auth(policykit_resolve_t)
Chris PeBenito 9e90ce
Chris PeBenito 9e90ce
read_files_pattern(policykit_resolve_t, policykit_reload_t, policykit_reload_t)
Chris PeBenito 9e90ce
Chris PeBenito 9e90ce
read_files_pattern(policykit_resolve_t, policykit_var_lib_t, policykit_var_lib_t)
Chris PeBenito 9e90ce
Chris PeBenito 9e90ce
can_exec(policykit_resolve_t, policykit_resolve_exec_t)
Chris PeBenito 9e90ce
corecmd_search_bin(policykit_resolve_t)
Chris PeBenito 9e90ce
Chris PeBenito 9e90ce
files_read_etc_files(policykit_resolve_t)
Chris PeBenito 9e90ce
files_read_usr_files(policykit_resolve_t)
Chris PeBenito 9e90ce
Chris PeBenito 9e90ce
mcs_ptrace_all(policykit_resolve_t)
Chris PeBenito 9e90ce
Chris PeBenito 9e90ce
auth_use_nsswitch(policykit_resolve_t)
Chris PeBenito 9e90ce
Chris PeBenito 9e90ce
logging_send_syslog_msg(policykit_resolve_t)
Chris PeBenito 9e90ce
Chris PeBenito 9e90ce
miscfiles_read_localization(policykit_resolve_t)
Chris PeBenito 9e90ce
Chris PeBenito 9e90ce
userdom_read_all_users_state(policykit_resolve_t)
Chris PeBenito 9e90ce
Chris PeBenito 9e90ce
optional_policy(`
Chris PeBenito 9e90ce
	dbus_system_bus_client(policykit_resolve_t)
Chris PeBenito 9e90ce
Chris PeBenito 9e90ce
	optional_policy(`
Chris PeBenito 9e90ce
		consolekit_dbus_chat(policykit_resolve_t)
Chris PeBenito 9e90ce
	')
Chris PeBenito 9e90ce
')
Chris PeBenito 9e90ce
Chris PeBenito 9e90ce
optional_policy(`
Chris PeBenito 9e90ce
	kernel_search_proc(policykit_resolve_t)
Chris PeBenito 9e90ce
	hal_read_state(policykit_resolve_t)
Chris PeBenito 9e90ce
')
Chris PeBenito 9e90ce