summaryrefslogtreecommitdiff
path: root/common/sepolicy/pppd.te (plain)
blob: 66a44083b84b8cda653ab1e838c44ed2d39db146
1# Point to Point Protocol daemon
2type sh, domain;
3type sh_device, dev_type;
4type sh_exec, exec_type, file_type;
5
6domain_auto_trans(ppp, sh_exec, sh)
7
8init_daemon_domain(ppp)
9net_domain(ppp)
10
11allow ppp mtp:socket rw_socket_perms;
12allow ppp mtp:unix_dgram_socket rw_socket_perms;
13allow ppp ppp_device:file { rw_file_perms x_file_perms };
14allow ppp ppp_device:dir { rw_file_perms search };
15allow ppp self:capability { dac_override net_admin net_raw setgid setuid };
16allow ppp system_file:file rx_file_perms;
17allow ppp system_file:dir r_file_perms;
18allow ppp system_data_file:dir rw_file_perms;
19allow ppp system_data_file:fifo_file rw_file_perms;
20allow ppp vpn_data_file:dir w_dir_perms;
21allow ppp vpn_data_file:file create_file_perms;
22allow ppp mtp:fd use;
23
24allow ppp shell_exec:file rx_file_perms;
25allow ppp property_socket:sock_file write;
26allow ppp radio_prop:property_service set;
27allow ppp system_prop:property_service set;
28allow ppp net_radio_prop:property_service set;
29allow ppp init:unix_stream_socket connectto;
30
31allow ppp radio_device:chr_file rw_file_perms;
32allow ppp radio_data_file:file rw_file_perms;
33allow ppp unlabeled:filesystem { associate };
34allow ppp ppp_exec:file rx_file_perms;
35allow ppp device:file create_file_perms;
36allow ppp device:lnk_file create_file_perms;
37allow ppp device:dir { create_file_perms add_name };
38
39allow sh shell_exec:file rx_file_perms;
40allow sh system_file:file rx_file_perms;
41allow sh ppp_exec:file rx_file_perms;
42allow sh radio_device:file { rw_file_perms link unlink };
43