Files
device_google_wahoo/sepolicy/vendor/kernel.te
Jeff Vander Stoep 9df9ad04d4 Remove vendor_firmware_file type
It's causing surfaceflinger denials and does not exist on other
devices. Grant kernel read access to vendor/firmware's new type.

denied { search } for comm="surfaceflinger" name="firmware"
scontext=u:r:surfaceflinger:s0 tcontext=u:object_r:vendor_firmware_file:s0
tclass=dir

denied { read } for comm="surfaceflinger" name="a530_pm4.fw"
scontext=u:r:surfaceflinger:s0 tcontext=u:object_r:vendor_file:s0
tclass=file permissive=0

Test: boot Taimen without denials.
Bug: 68213100
Change-Id: I8b070a0aae59e12391c881cec8a46b6b4dbe1c67
2018-02-28 15:45:28 -08:00

15 lines
321 B
Plaintext

# for diag over socket
userdebug_or_eng(`
allow kernel self:socket create;
')
dontaudit kernel kernel:system module_request;
# Read FDs from /vendor/firmware
allow kernel vendor_file:file r_file_perms;
allow kernel debugfs_ipc:dir search;
allow kernel persist_file:dir search;
allow kernel debugfs_wlan:dir search;