Merge "common: Add sepolicy for watchdog wakeup_enable"
This commit is contained in:
commit
951dbdb76a
3 changed files with 4 additions and 0 deletions
1
generic/vendor/common/file.te
vendored
1
generic/vendor/common/file.te
vendored
|
@ -62,6 +62,7 @@ type vendor_sysfs_ssr, sysfs_type, fs_type;
|
|||
type vendor_sysfs_ssr_toggle, sysfs_type, fs_type;
|
||||
type vendor_sysfs_touch, sysfs_type, fs_type;
|
||||
type vendor_sysfs_uio_file, sysfs_type, fs_type;
|
||||
type vendor_sysfs_wdog_device, sysfs_type, fs_type;
|
||||
type vendor_sysfs_usb_c, sysfs_type, fs_type;
|
||||
type vendor_sysfs_usb_device, sysfs_type, fs_type;
|
||||
type vendor_sysfs_usb_supply, sysfs_type, fs_type;
|
||||
|
|
2
generic/vendor/common/genfs_contexts
vendored
2
generic/vendor/common/genfs_contexts
vendored
|
@ -105,6 +105,8 @@ genfscon sysfs /devices/platform/soc/5e00000.qcom,mdss_mdp/drm/card0/sde-crtc-2/
|
|||
genfscon sysfs /devices/platform/soc/a600000.ssusb/mode u:object_r:vendor_sysfs_usb_device:s0
|
||||
genfscon sysfs /devices/platform/soc/a800000.ssusb/mode u:object_r:vendor_sysfs_usb_device:s0
|
||||
|
||||
genfscon sysfs /devices/platform/hypervisor/hypervisor:qcom,gh-watchdog/wakeup_enable u:object_r:vendor_sysfs_wdog_device:s0
|
||||
|
||||
genfscon sysfs /devices/soc/800f000.qcom,spmi/spmi-0/spmi0-02/800f000.qcom,spmi:qcom,pmi8998@2:qcom,usb-pdphy@1700/usbpd0/typec u:object_r:vendor_sysfs_usb_c:s0
|
||||
genfscon sysfs /module/diagchar u:object_r:vendor_sysfs_diag:s0
|
||||
|
||||
|
|
1
generic/vendor/common/init_shell.te
vendored
1
generic/vendor/common/init_shell.te
vendored
|
@ -97,6 +97,7 @@ allow vendor_qti_init_shell {
|
|||
r_dir_file(vendor_qti_init_shell, sysfs_type)
|
||||
r_dir_file(vendor_qti_init_shell, vendor_sysfs_devfreq)
|
||||
allow vendor_qti_init_shell vendor_sysfs_devfreq:file w_file_perms;
|
||||
allow vendor_qti_init_shell vendor_sysfs_wdog_device:file { write getattr };
|
||||
allow vendor_qti_init_shell vendor_sysfs_soc:file write;
|
||||
allow vendor_qti_init_shell sysfs:{ dir file lnk_file } relabelfrom;
|
||||
allow vendor_qti_init_shell sysfs_devices_system_cpu: { dir file lnk_file } relabelto;
|
||||
|
|
Loading…
Reference in a new issue