Add ppp/mtp policy.
Initial policy for Point-to-Point tunneling and tunneling manager services.
This commit is contained in:
parent
171a062571
commit
d49f7e6e36
4 changed files with 37 additions and 0 deletions
|
@ -38,6 +38,7 @@
|
|||
/dev/mtd/mtd5ro u:object_r:radio_device:s0
|
||||
/dev/mtp_usb u:object_r:mtp_device:s0
|
||||
/dev/pn544 u:object_r:nfc_device:s0
|
||||
/dev/ppp u:object_r:ppp_device:s0
|
||||
/dev/ptmx u:object_r:ptmx_device:s0
|
||||
/dev/pvrsrvkm u:object_r:powervr_device:s0
|
||||
/dev/qemu_.* u:object_r:qemu_device:s0
|
||||
|
@ -103,6 +104,9 @@
|
|||
/system/bin/qemud u:object_r:qemud_exec:s0
|
||||
/system/bin/sdcard u:object_r:sdcardd_exec:s0
|
||||
/system/bin/dhcpcd u:object_r:dhcp_exec:s0
|
||||
/system/bin/mtpd u:object_r:mtp_exec:s0
|
||||
/system/bin/pppd u:object_r:ppp_exec:s0
|
||||
/system/etc/ppp(/.*)? u:object_r:ppp_system_file:s0
|
||||
/system/etc/dhcpcd(/.*)? u:object_r:dhcp_system_file:s0
|
||||
/system/xbin/su u:object_r:su_exec:s0
|
||||
/system/vendor/bin/gpsd u:object_r:gpsd_exec:s0
|
||||
|
|
13
mtp.te
Normal file
13
mtp.te
Normal file
|
@ -0,0 +1,13 @@
|
|||
# vpn tunneling protocol manager
|
||||
type mtp, domain;
|
||||
type mtp_exec, exec_type, file_type;
|
||||
|
||||
init_daemon_domain(mtp)
|
||||
|
||||
# pptp policy
|
||||
allow mtp self:tcp_socket { create setopt connect write read };
|
||||
allow mtp self:socket { create connect };
|
||||
allow mtp self:rawip_socket create;
|
||||
allow mtp self:capability net_raw;
|
||||
allow mtp ppp:process signal;
|
||||
allow mtp port:tcp_socket name_connect;
|
17
ppp.te
Normal file
17
ppp.te
Normal file
|
@ -0,0 +1,17 @@
|
|||
# Point to Point Protocol daemon
|
||||
type ppp, domain;
|
||||
type ppp_device, dev_type;
|
||||
type ppp_exec, exec_type, file_type;
|
||||
type ppp_system_file, file_type;
|
||||
|
||||
domain_auto_trans(mtp, ppp_exec, ppp)
|
||||
|
||||
allow ppp mtp:socket { read write ioctl };
|
||||
allow ppp ppp_device:chr_file rw_file_perms;
|
||||
allow ppp self:capability net_admin;
|
||||
allow ppp self:udp_socket { create ioctl };
|
||||
allow ppp ppp_system_file:dir search;
|
||||
allow ppp ppp_system_file:file rx_file_perms;
|
||||
allow ppp vpn_data_file:dir w_dir_perms;
|
||||
allow ppp vpn_data_file:file create_file_perms;
|
||||
allow ppp mtp:fd use;
|
|
@ -206,3 +206,6 @@ allow system gps_control:file rw_file_perms;
|
|||
allow system appdomain:udp_socket { read write };
|
||||
# Allow abstract socket connection
|
||||
allow system rild:unix_stream_socket connectto;
|
||||
|
||||
# connect to vpn tunnel
|
||||
allow system mtp:unix_stream_socket { connectto };
|
||||
|
|
Loading…
Reference in a new issue