Move sg_device related policy

Bug: 312143882
Test: make selinux_policy
Change-Id: I68b00a6577a01cf04f67b6b277bce6fe1faef618
This commit is contained in:
Wilson Sung 2023-11-21 11:53:28 +00:00
parent 7a0d1c626e
commit c967ee5dc3
5 changed files with 3 additions and 3 deletions

View file

@ -1,4 +1,3 @@
type sg_device, dev_type;
type vendor_toe_device, dev_type;
type lwis_device, dev_type;
type rls_device, dev_type;

View file

@ -29,7 +29,6 @@
/dev/fimg2d u:object_r:graphics_device:s0
/dev/g2d u:object_r:graphics_device:s0
/dev/dit2 u:object_r:vendor_toe_device:s0
/dev/sg1 u:object_r:sg_device:s0
/dev/st21nfc u:object_r:nfc_device:s0
/dev/sys/block/bootdevice(/.*)? u:object_r:bootdevice_sysdev:s0
/dev/socket/chre u:object_r:chre_socket:s0

View file

@ -7,7 +7,6 @@ set_prop(vendor_init, logpersistd_logging_prop)
allow vendor_init proc_dirty:file w_file_perms;
allow vendor_init proc_sched:file w_file_perms;
allow vendor_init sg_device:chr_file r_file_perms;
allow vendor_init bootdevice_sysdev:file create_file_perms;
allow vendor_init modem_img_file:filesystem { getattr };

1
vendor/device.te vendored Normal file
View file

@ -0,0 +1 @@
type sg_device, dev_type;

View file

@ -1,2 +1,4 @@
# USB property
set_prop(vendor_init, vendor_usb_config_prop)
allow vendor_init sg_device:chr_file r_file_perms;