mirror of
https://github.com/AetherDroid/android_device_samsung_universal7570-common.git
synced 2025-10-29 23:38:52 +01:00
universal7870: import sepolicy from 7580-common
thanks to @danwood76
This commit is contained in:
parent
9ce97a0bfb
commit
0cfeb0ec4f
61 changed files with 507 additions and 425 deletions
|
|
@ -1,27 +1,22 @@
|
|||
allow kernel self:capability { chown mknod };
|
||||
dontaudit kernel kernel:capability { dac_override dac_read_search };
|
||||
|
||||
# /dev/mbin0
|
||||
allow kernel emmcblk_device:blk_file r_file_perms;
|
||||
allow kernel device:blk_file { create setattr getattr unlink };
|
||||
# /bus/usb/001/001
|
||||
allow kernel device:dir { create write remove_name rmdir add_name };
|
||||
allow kernel device:chr_file { create setattr getattr unlink };
|
||||
|
||||
# /sys/devices/system/cpu/cpu[0-9]/cpufreq/*
|
||||
allow kernel sysfs_devices_system_cpu:file { setattr };
|
||||
allow kernel sysfs:file { setattr };
|
||||
allow kernel sysfs_devices_system_cpu:file setattr;
|
||||
|
||||
# /efs contents
|
||||
allow kernel { app_efs_file battery_efs_file efs_file sensor_efs_file }:dir r_dir_perms;
|
||||
allow kernel { app_efs_file battery_efs_file efs_file sensor_efs_file }:file rw_file_perms;
|
||||
|
||||
# /efs/wifi/.mac.info
|
||||
allow kernel wifi_efs_file:dir r_dir_perms;
|
||||
allow kernel wifi_efs_file:file r_file_perms;
|
||||
r_dir_file(kernel, wifi_efs_file);
|
||||
|
||||
# /data/misc/conn/.wifiver.info
|
||||
allow kernel wifi_data_file:file rw_file_perms;
|
||||
|
||||
# sysfs_lcd
|
||||
allow kernel sysfs_lcd:file { open read };
|
||||
# Allow kernel to search tmpfs
|
||||
allow kernel tmpfs:dir search;
|
||||
|
||||
allow kernel self:capability sys_module;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue