[ALPS03614388] Sepolicy: Add ttyS to sepolicy

[Detail]
Add ttyS to sepolicy

MTK-Commit-Id: f51e0700ff76c53befa5c15f1bfa6d1726905fed

Change-Id: I88aaa49b470ff98fcbd0d3720c641b74ca42bdeb
CR-Id: ALPS03614388
Feature: Headset Cable/Button Detection and Reaction
(cherry picked from commit 7e314d2dbea64a05f626115e5beccce53bb2a07f)
This commit is contained in:
ZH Chen 2020-01-18 09:46:05 +08:00
parent 0db3e13890
commit ce3a0f44e7
5 changed files with 12 additions and 0 deletions

View File

@ -4,6 +4,7 @@
type devmap_device, dev_type; type devmap_device, dev_type;
type ttyMT_device, dev_type; type ttyMT_device, dev_type;
type ttyS_device, dev_type;
type ttySDIO_device, dev_type; type ttySDIO_device, dev_type;
type vmodem_device, dev_type; type vmodem_device, dev_type;
type stpwmt_device, dev_type; type stpwmt_device, dev_type;

View File

@ -38,6 +38,7 @@ allow factory ttySDIO_device:chr_file rw_file_perms;
#Purpose: USB #Purpose: USB
allow factory ttyMT_device:chr_file rw_file_perms; allow factory ttyMT_device:chr_file rw_file_perms;
allow factory ttyS_device:chr_file rw_file_perms;
allow factory ttyGS_device:chr_file rw_file_perms; allow factory ttyGS_device:chr_file rw_file_perms;
# Date: WK15.01 # Date: WK15.01

View File

@ -302,6 +302,7 @@
/dev/ttyC3 u:object_r:icusb_device:s0 /dev/ttyC3 u:object_r:icusb_device:s0
/dev/ttyGS.* u:object_r:ttyGS_device:s0 /dev/ttyGS.* u:object_r:ttyGS_device:s0
/dev/ttyMT.* u:object_r:ttyMT_device:s0 /dev/ttyMT.* u:object_r:ttyMT_device:s0
/dev/ttyS.* u:object_r:ttyS_device:s0
/dev/ttyp.* u:object_r:ttyp_device:s0 /dev/ttyp.* u:object_r:ttyp_device:s0
/dev/ttySDIO.* u:object_r:ttySDIO_device:s0 /dev/ttySDIO.* u:object_r:ttySDIO_device:s0
/dev/ttyUSB0 u:object_r:tty_device:s0 /dev/ttyUSB0 u:object_r:tty_device:s0

View File

@ -15,6 +15,11 @@ allow meta_tst ttyGS_device:chr_file rw_file_perms;
# Purpose : for meta mode device node UART # Purpose : for meta mode device node UART
allow meta_tst ttyMT_device:chr_file rw_file_perms; allow meta_tst ttyMT_device:chr_file rw_file_perms;
# Date: WK17.12
# Operation : Migration
# Purpose : for meta mode device node UART
allow meta_tst ttyS_device:chr_file rw_file_perms;
# Date: WK16.12 # Date: WK16.12
# Operation : Migration # Operation : Migration
# Purpose : for meta mode device node CCCI # Purpose : for meta mode device node CCCI

View File

@ -70,6 +70,10 @@ allow system_server sw_sync_device:chr_file { read write getattr open ioctl };
# Purpose: Allow to access UART1 ttyMT1 # Purpose: Allow to access UART1 ttyMT1
allow system_server ttyMT_device:chr_file rw_file_perms; allow system_server ttyMT_device:chr_file rw_file_perms;
# Date : WK17.52
# Purpose: Allow to access UART1 ttyS
allow system_server ttyS_device:chr_file rw_file_perms;
# Date : WK16.44 # Date : WK16.44
# Purpose: Allow to access gpsonly driver # Purpose: Allow to access gpsonly driver
#allow system_server gps_device:chr_file rw_file_perms; #allow system_server gps_device:chr_file rw_file_perms;