[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:
parent
0db3e13890
commit
ce3a0f44e7
@ -4,6 +4,7 @@
|
||||
|
||||
type devmap_device, dev_type;
|
||||
type ttyMT_device, dev_type;
|
||||
type ttyS_device, dev_type;
|
||||
type ttySDIO_device, dev_type;
|
||||
type vmodem_device, dev_type;
|
||||
type stpwmt_device, dev_type;
|
||||
|
@ -38,6 +38,7 @@ allow factory ttySDIO_device:chr_file rw_file_perms;
|
||||
|
||||
#Purpose: USB
|
||||
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;
|
||||
|
||||
# Date: WK15.01
|
||||
|
@ -302,6 +302,7 @@
|
||||
/dev/ttyC3 u:object_r:icusb_device:s0
|
||||
/dev/ttyGS.* u:object_r:ttyGS_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/ttySDIO.* u:object_r:ttySDIO_device:s0
|
||||
/dev/ttyUSB0 u:object_r:tty_device:s0
|
||||
|
@ -15,6 +15,11 @@ allow meta_tst ttyGS_device:chr_file rw_file_perms;
|
||||
# Purpose : for meta mode device node UART
|
||||
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
|
||||
# Operation : Migration
|
||||
# Purpose : for meta mode device node CCCI
|
||||
|
@ -70,6 +70,10 @@ allow system_server sw_sync_device:chr_file { read write getattr open ioctl };
|
||||
# Purpose: Allow to access UART1 ttyMT1
|
||||
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
|
||||
# Purpose: Allow to access gpsonly driver
|
||||
#allow system_server gps_device:chr_file rw_file_perms;
|
||||
|
Loading…
x
Reference in New Issue
Block a user