Chris PeBenito cca4a2
Chris PeBenito cca4a2
policy_module(gpsd, 1.0.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 cca4a2
type gpsd_tmpfs_t;
Chris PeBenito cca4a2
files_tmpfs_file(gpsd_tmpfs_t)
Chris PeBenito cca4a2
Chris PeBenito cca4a2
########################################
Chris PeBenito cca4a2
#
Chris PeBenito cca4a2
# gpsd local policy
Chris PeBenito cca4a2
#
Chris PeBenito cca4a2
Chris PeBenito cca4a2
allow gpsd_t self:capability { setuid sys_nice setgid fowner };
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 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 cca4a2
	ntpd_rw_shm(gpsd_t)
Chris PeBenito cca4a2
')