selinux-policy/policy/modules/services/gpsd.te

66 lines
1.6 KiB
Plaintext
Raw Normal View History

2009-06-02 14:28:40 +00:00
2010-01-07 13:59:38 +00:00
policy_module(gpsd, 1.0.1)
2009-06-02 14:28:40 +00:00
########################################
#
# Declarations
#
type gpsd_t;
type gpsd_exec_t;
application_domain(gpsd_t, gpsd_exec_t)
init_daemon_domain(gpsd_t, gpsd_exec_t)
2010-01-07 13:59:38 +00:00
type gpsd_initrc_exec_t;
init_script_file(gpsd_initrc_exec_t)
2009-06-02 14:28:40 +00:00
type gpsd_tmpfs_t;
files_tmpfs_file(gpsd_tmpfs_t)
2010-01-07 13:59:38 +00:00
type gpsd_var_run_t;
files_pid_file(gpsd_var_run_t)
2009-06-02 14:28:40 +00:00
########################################
#
# gpsd local policy
#
2010-04-08 19:29:56 +00:00
allow gpsd_t self:capability { fowner fsetid setuid setgid sys_nice sys_tty_config };
2009-06-02 14:28:40 +00:00
allow gpsd_t self:process setsched;
allow gpsd_t self:shm create_shm_perms;
allow gpsd_t self:unix_dgram_socket { create_socket_perms sendto };
allow gpsd_t self:tcp_socket create_stream_socket_perms;
manage_dirs_pattern(gpsd_t, gpsd_tmpfs_t, gpsd_tmpfs_t)
manage_files_pattern(gpsd_t, gpsd_tmpfs_t, gpsd_tmpfs_t)
fs_tmpfs_filetrans(gpsd_t, gpsd_tmpfs_t, { dir file })
2010-01-07 13:59:38 +00:00
manage_files_pattern(gpsd_t, gpsd_var_run_t, gpsd_var_run_t)
manage_sock_files_pattern(gpsd_t, gpsd_var_run_t, gpsd_var_run_t)
files_pid_filetrans(gpsd_t, gpsd_var_run_t, { file sock_file })
2009-06-02 14:28:40 +00:00
corenet_all_recvfrom_unlabeled(gpsd_t)
corenet_all_recvfrom_netlabel(gpsd_t)
corenet_tcp_sendrecv_generic_if(gpsd_t)
corenet_tcp_sendrecv_generic_node(gpsd_t)
corenet_tcp_sendrecv_all_ports(gpsd_t)
corenet_tcp_bind_all_nodes(gpsd_t)
corenet_tcp_bind_gpsd_port(gpsd_t)
term_use_unallocated_ttys(gpsd_t)
term_setattr_unallocated_ttys(gpsd_t)
auth_use_nsswitch(gpsd_t)
logging_send_syslog_msg(gpsd_t)
miscfiles_read_localization(gpsd_t)
optional_policy(`
2009-06-26 14:40:13 +00:00
dbus_system_bus_client(gpsd_t)
2009-06-02 14:28:40 +00:00
')
optional_policy(`
2010-01-07 13:59:38 +00:00
ntp_rw_shm(gpsd_t)
2009-06-02 14:28:40 +00:00
')