Chris PeBenito ee2d2d
Chris PeBenito ee2d2d
policy_module(usbmuxd, 1.0.0)
Chris PeBenito ee2d2d
Chris PeBenito ee2d2d
########################################
Chris PeBenito ee2d2d
#
Chris PeBenito ee2d2d
# Declarations
Chris PeBenito ee2d2d
#
Chris PeBenito ee2d2d
Chris PeBenito ee2d2d
type usbmuxd_t;
Chris PeBenito ee2d2d
type usbmuxd_exec_t;
Chris PeBenito ee2d2d
application_domain(usbmuxd_t, usbmuxd_exec_t)
Chris PeBenito ee2d2d
role system_r types usbmuxd_t;
Chris PeBenito ee2d2d
Chris PeBenito ee2d2d
type usbmuxd_var_run_t;
Chris PeBenito ee2d2d
files_pid_file(usbmuxd_var_run_t)
Chris PeBenito ee2d2d
Chris PeBenito ee2d2d
########################################
Chris PeBenito ee2d2d
#
Chris PeBenito ee2d2d
# usbmuxd local policy
Chris PeBenito ee2d2d
#
Chris PeBenito ee2d2d
Chris PeBenito ee2d2d
allow usbmuxd_t self:capability { kill setgid setuid };
Chris PeBenito ee2d2d
allow usbmuxd_t self:process { fork signal signull };
Chris PeBenito ee2d2d
allow usbmuxd_t self:fifo_file rw_fifo_file_perms;
Chris PeBenito ee2d2d
Chris PeBenito ee2d2d
manage_dirs_pattern(usbmuxd_t, usbmuxd_var_run_t, usbmuxd_var_run_t)
Chris PeBenito ee2d2d
manage_files_pattern(usbmuxd_t, usbmuxd_var_run_t, usbmuxd_var_run_t)
Chris PeBenito ee2d2d
manage_sock_files_pattern(usbmuxd_t, usbmuxd_var_run_t, usbmuxd_var_run_t)
Chris PeBenito ee2d2d
files_pid_filetrans(usbmuxd_t, usbmuxd_var_run_t, { file dir sock_file })
Chris PeBenito ee2d2d
Chris PeBenito ee2d2d
kernel_read_kernel_sysctls(usbmuxd_t)
Chris PeBenito ee2d2d
kernel_read_system_state(usbmuxd_t)
Chris PeBenito ee2d2d
Chris PeBenito ee2d2d
dev_read_sysfs(usbmuxd_t)
Chris PeBenito ee2d2d
dev_rw_generic_usb_dev(usbmuxd_t)
Chris PeBenito ee2d2d
Chris PeBenito ee2d2d
files_read_etc_files(usbmuxd_t)
Chris PeBenito ee2d2d
Chris PeBenito ee2d2d
miscfiles_read_localization(usbmuxd_t)
Chris PeBenito ee2d2d
Chris PeBenito ee2d2d
auth_use_nsswitch(usbmuxd_t)
Chris PeBenito ee2d2d
Chris PeBenito ee2d2d
logging_send_syslog_msg(usbmuxd_t)