~ubuntu-branches/ubuntu/natty/refpolicy-ubuntu/natty

« back to all changes in this revision

Viewing changes to policy/modules/services/gpsd.te

  • Committer: Bazaar Package Importer
  • Author(s): Caleb Case
  • Date: 2009-10-19 01:48:39 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20091019014839-0rpi67ygkrjya30k
Tags: 0.2.20090730-0ubuntu1
* Updated to upstream release 2.20090730
* Handle Upstart direct execution of daemons.
* Pre-depend on selinux to ensure that the trigger is handled (LP: #434084).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
policy_module(gpsd, 1.0.0)
 
3
 
 
4
########################################
 
5
#
 
6
# Declarations
 
7
#
 
8
 
 
9
type gpsd_t;
 
10
type gpsd_exec_t;
 
11
application_domain(gpsd_t, gpsd_exec_t)
 
12
init_daemon_domain(gpsd_t, gpsd_exec_t)
 
13
 
 
14
type gpsd_tmpfs_t;
 
15
files_tmpfs_file(gpsd_tmpfs_t)
 
16
 
 
17
########################################
 
18
#
 
19
# gpsd local policy
 
20
#
 
21
 
 
22
allow gpsd_t self:capability { setuid sys_nice setgid fowner };
 
23
allow gpsd_t self:process setsched;
 
24
allow gpsd_t self:shm create_shm_perms;
 
25
allow gpsd_t self:unix_dgram_socket { create_socket_perms sendto };
 
26
allow gpsd_t self:tcp_socket create_stream_socket_perms;
 
27
 
 
28
manage_dirs_pattern(gpsd_t, gpsd_tmpfs_t, gpsd_tmpfs_t)
 
29
manage_files_pattern(gpsd_t, gpsd_tmpfs_t, gpsd_tmpfs_t)
 
30
fs_tmpfs_filetrans(gpsd_t, gpsd_tmpfs_t, { dir file })
 
31
 
 
32
corenet_all_recvfrom_unlabeled(gpsd_t)
 
33
corenet_all_recvfrom_netlabel(gpsd_t)
 
34
corenet_tcp_sendrecv_generic_if(gpsd_t)
 
35
corenet_tcp_sendrecv_generic_node(gpsd_t)
 
36
corenet_tcp_sendrecv_all_ports(gpsd_t)
 
37
corenet_tcp_bind_all_nodes(gpsd_t)
 
38
corenet_tcp_bind_gpsd_port(gpsd_t)
 
39
 
 
40
term_use_unallocated_ttys(gpsd_t)
 
41
term_setattr_unallocated_ttys(gpsd_t)
 
42
 
 
43
auth_use_nsswitch(gpsd_t)
 
44
 
 
45
logging_send_syslog_msg(gpsd_t)
 
46
 
 
47
miscfiles_read_localization(gpsd_t)
 
48
 
 
49
optional_policy(`
 
50
        dbus_system_bus_client(gpsd_t)
 
51
')
 
52
 
 
53
optional_policy(`
 
54
        ntpd_rw_shm(gpsd_t)
 
55
')