Chris PeBenito 21b1d1
Chris PeBenito 21b1d1
policy_module(gnomeclock, 1.0.0)
Chris PeBenito 21b1d1
Chris PeBenito 21b1d1
########################################
Chris PeBenito 21b1d1
#
Chris PeBenito 21b1d1
# Declarations
Chris PeBenito 21b1d1
#
Chris PeBenito 21b1d1
Chris PeBenito 21b1d1
type gnomeclock_t;
Chris PeBenito 21b1d1
type gnomeclock_exec_t;
Chris PeBenito 21b1d1
dbus_system_domain(gnomeclock_t, gnomeclock_exec_t)
Chris PeBenito 21b1d1
Chris PeBenito 21b1d1
########################################
Chris PeBenito 21b1d1
#
Chris PeBenito 21b1d1
# gnomeclock local policy
Chris PeBenito 21b1d1
#
Chris PeBenito 21b1d1
Chris PeBenito 21b1d1
allow gnomeclock_t self:capability { sys_nice sys_time sys_ptrace };
Chris PeBenito 21b1d1
allow gnomeclock_t self:process { getattr getsched };
Chris PeBenito 21b1d1
allow gnomeclock_t self:fifo_file rw_fifo_file_perms;
Chris PeBenito 21b1d1
allow gnomeclock_t self:unix_stream_socket create_stream_socket_perms;
Chris PeBenito 21b1d1
Chris PeBenito 21b1d1
corecmd_exec_bin(gnomeclock_t)
Chris PeBenito 21b1d1
Chris PeBenito 21b1d1
files_read_etc_files(gnomeclock_t)
Chris PeBenito 21b1d1
files_read_usr_files(gnomeclock_t)
Chris PeBenito 21b1d1
Chris PeBenito 21b1d1
auth_use_nsswitch(gnomeclock_t)
Chris PeBenito 21b1d1
Chris PeBenito 21b1d1
clock_domtrans(gnomeclock_t)
Chris PeBenito 21b1d1
Chris PeBenito 21b1d1
miscfiles_read_localization(gnomeclock_t)
Chris PeBenito 21b1d1
miscfiles_manage_localization(gnomeclock_t)
Chris PeBenito 21b1d1
miscfiles_etc_filetrans_localization(gnomeclock_t)
Chris PeBenito 21b1d1
Chris PeBenito 21b1d1
userdom_read_all_users_state(gnomeclock_t)
Chris PeBenito 21b1d1
Chris PeBenito 21b1d1
optional_policy(`
Chris PeBenito 21b1d1
	consolekit_dbus_chat(gnomeclock_t)
Chris PeBenito 21b1d1
')
Chris PeBenito 21b1d1
Chris PeBenito 21b1d1
optional_policy(`
Chris PeBenito 21b1d1
	policykit_dbus_chat(gnomeclock_t)
Chris PeBenito 21b1d1
	policykit_domtrans_auth(gnomeclock_t)
Chris PeBenito 21b1d1
	policykit_read_lib(gnomeclock_t)
Chris PeBenito 21b1d1
	policykit_read_reload(gnomeclock_t)
Chris PeBenito 21b1d1
')