aboutsummaryrefslogtreecommitdiff
path: root/sepolicy/idd.te
blob: 7c8cf6940aae50ada5a02eec309875e708498c86 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
type iddd, domain; 

type iddd_exec, exec_type, file_type; 
init_daemon_domain(iddd)

allow iddd self:socket create_socket_perms;
allow iddd iddd_file:fifo_file rw_file_perms;
allow iddd iddd_file:file rw_file_perms;
allow iddd iddd_file:dir rw_file_perms;

type_transition iddd system_data_file:file iddd_file;

type credmgr, domain;
type credmgr_exec, exec_type, file_type;
init_daemon_domain(credmgr);


type scd, domain;
type scd_exec, exec_type, file_type;
type scd_data, file_type;
init_daemon_domain(scd)

type wv,domain;
type wv_exec, exec_type, file_type;
init_daemon_domain(wv)


#============= system_server ==============
allow system_server credmgr_exec:dir search;
allow system_server credmgr_exec:file { getattr open read };
allow system_server iddd_exec:dir search;
allow system_server iddd_exec:file { getattr open read };

#============= iddd_exec ==============
allow iddd_exec default_prop:file { getattr open read };
allow iddd_exec device:dir search;
allow iddd_exec devpts:chr_file { open read write };
allow iddd_exec iddd_file:dir search;
allow iddd_exec iddd_file:file { lock open read write };
allow iddd_exec init:fd use;
allow iddd_exec init:process sigchld;
allow iddd_exec kernel:system module_request;
allow iddd_exec log_tag_prop:file { getattr open read };
allow iddd_exec logd:unix_dgram_socket sendto;
allow iddd_exec logd_prop:file { getattr open read };
allow iddd_exec logdw_socket:sock_file write;
allow iddd_exec null_device:chr_file { read write };
allow iddd_exec proc:lnk_file read;
allow iddd_exec properties_device:dir getattr;
allow iddd_exec properties_serial:file { getattr open read };
allow iddd_exec property_contexts:file { getattr open read };
allow iddd_exec ptmx_device:chr_file { ioctl open read write };
allow iddd_exec rootfs:lnk_file { getattr read };
allow iddd_exec self:dir { read search };
allow iddd_exec self:file { execute execute_no_trans getattr open read };
allow iddd_exec self:lnk_file read;
allow iddd_exec self:process { fork sigchld };
allow iddd_exec self:unix_dgram_socket { connect create write };
allow iddd_exec self:unix_stream_socket read;
allow iddd_exec sysfs:dir search;
allow iddd_exec sysfs_devices_system_cpu:dir search;
allow iddd_exec sysfs_devices_system_cpu:file { getattr open read };
allow iddd_exec system_file:dir getattr;
#allow iddd_exec system_file:file { entrypoint execute getattr open read };
allow iddd_exec urandom_device:chr_file { getattr ioctl open read };