Chris PeBenito cca4a2
Chris PeBenito 29af4c
policy_module(gpsd, 1.1.0)
Chris PeBenito cca4a2
Chris PeBenito cca4a2
########################################
Chris PeBenito cca4a2
#
Chris PeBenito cca4a2
# Declarations
Chris PeBenito cca4a2
#
Chris PeBenito cca4a2
Chris PeBenito cca4a2
type gpsd_t;
Chris PeBenito cca4a2
type gpsd_exec_t;
Chris PeBenito cca4a2
application_domain(gpsd_t, gpsd_exec_t)
Chris PeBenito cca4a2
init_daemon_domain(gpsd_t, gpsd_exec_t)
Chris PeBenito cca4a2
Chris PeBenito f37b7b
type gpsd_initrc_exec_t;
Chris PeBenito f37b7b
init_script_file(gpsd_initrc_exec_t)
Chris PeBenito f37b7b
Chris PeBenito cca4a2
type gpsd_tmpfs_t;
Chris PeBenito cca4a2
files_tmpfs_file(gpsd_tmpfs_t)
Chris PeBenito cca4a2
Chris PeBenito f37b7b
type gpsd_var_run_t;
Chris PeBenito f37b7b
files_pid_file(gpsd_var_run_t)
Chris PeBenito f37b7b
Chris PeBenito cca4a2
########################################
Chris PeBenito cca4a2
#
Chris PeBenito cca4a2
# gpsd local policy
Chris PeBenito cca4a2
#
Chris PeBenito cca4a2
Jeremy Solt 5d3214
allow gpsd_t self:capability { fowner fsetid setuid setgid sys_nice sys_tty_config };
Chris PeBenito cca4a2
allow gpsd_t self:process setsched;
Chris PeBenito cca4a2
allow gpsd_t self:shm create_shm_perms;
Chris PeBenito cca4a2
allow gpsd_t self:unix_dgram_socket { create_socket_perms sendto };
Chris PeBenito cca4a2
allow gpsd_t self:tcp_socket create_stream_socket_perms;
Chris PeBenito cca4a2
Chris PeBenito cca4a2
manage_dirs_pattern(gpsd_t, gpsd_tmpfs_t, gpsd_tmpfs_t)
Chris PeBenito cca4a2
manage_files_pattern(gpsd_t, gpsd_tmpfs_t, gpsd_tmpfs_t)
Chris PeBenito cca4a2
fs_tmpfs_filetrans(gpsd_t, gpsd_tmpfs_t, { dir file })
Chris PeBenito cca4a2
Chris PeBenito f37b7b
manage_files_pattern(gpsd_t, gpsd_var_run_t, gpsd_var_run_t)
Chris PeBenito f37b7b
manage_sock_files_pattern(gpsd_t, gpsd_var_run_t, gpsd_var_run_t)
Chris PeBenito f37b7b
files_pid_filetrans(gpsd_t, gpsd_var_run_t, { file sock_file })
Chris PeBenito f37b7b
Chris PeBenito cca4a2
corenet_all_recvfrom_unlabeled(gpsd_t)
Chris PeBenito cca4a2
corenet_all_recvfrom_netlabel(gpsd_t)
Chris PeBenito cca4a2
corenet_tcp_sendrecv_generic_if(gpsd_t)
Chris PeBenito cca4a2
corenet_tcp_sendrecv_generic_node(gpsd_t)
Chris PeBenito cca4a2
corenet_tcp_sendrecv_all_ports(gpsd_t)
Chris PeBenito cca4a2
corenet_tcp_bind_all_nodes(gpsd_t)
Chris PeBenito cca4a2
corenet_tcp_bind_gpsd_port(gpsd_t)
Chris PeBenito cca4a2
Chris PeBenito cca4a2
term_use_unallocated_ttys(gpsd_t)
Chris PeBenito cca4a2
term_setattr_unallocated_ttys(gpsd_t)
Chris PeBenito cca4a2
Chris PeBenito cca4a2
auth_use_nsswitch(gpsd_t)
Chris PeBenito cca4a2
Chris PeBenito cca4a2
logging_send_syslog_msg(gpsd_t)
Chris PeBenito cca4a2
Chris PeBenito cca4a2
miscfiles_read_localization(gpsd_t)
Chris PeBenito cca4a2
Chris PeBenito cca4a2
optional_policy(`
Chris PeBenito 3f67f7
	dbus_system_bus_client(gpsd_t)
Chris PeBenito cca4a2
')
Chris PeBenito cca4a2
Chris PeBenito cca4a2
optional_policy(`
Chris PeBenito f37b7b
	ntp_rw_shm(gpsd_t)
Chris PeBenito cca4a2
')