From: Danny Wood Date: Fri, 19 Jul 2019 11:09:01 +0000 (+0100) Subject: universal7580: sepolicy: Fix sswap denials introduced after SE Policy cleanup X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=480090ad6ffe147d97b5a760115a68d3ab01fadf;p=GitHub%2FLineageOS%2Fandroid_device_samsung_universal7580-common.git universal7580: sepolicy: Fix sswap denials introduced after SE Policy cleanup Change-Id: I68f0692dedb24d14fe529a2d2952f198a27e3cb9 --- diff --git a/sepolicy/file.te b/sepolicy/file.te index f4ac61c..08b2666 100644 --- a/sepolicy/file.te +++ b/sepolicy/file.te @@ -47,6 +47,7 @@ type sysfs_ion, sysfs_type, fs_type, mlstrustedobject; type sysfs_block, sysfs_type, fs_type, mlstrustedobject; type sysfs_jack, sysfs_type, fs_type, mlstrustedobject; type sysfs_v4l, sysfs_type, fs_type, mlstrustedobject; +type sysfs_sswap, sysfs_type, fs_type, mlstrustedobject; ### data types type display_vendor_data_file, file_type, data_file_type; diff --git a/sepolicy/genfs_contexts b/sepolicy/genfs_contexts index d9d72cd..645527f 100644 --- a/sepolicy/genfs_contexts +++ b/sepolicy/genfs_contexts @@ -58,6 +58,11 @@ genfscon sysfs /class/input_booster/level u:object_r:sysfs_input:s0 genfscon sysfs /class/input_booster/head u:object_r:sysfs_input:s0 genfscon sysfs /class/input_booster/tail u:object_r:sysfs_input:s0 +# Swap +genfscon sysfs /devices/virtual/block/vnswap0/disksize u:object_r:sysfs_sswap:s0 +genfscon sysfs /devices/virtual/block/vnswap0/swap_filename u:object_r:sysfs_sswap:s0 +genfscon sysfs /devices/virtual/block/vnswap0/init_backing_storage u:object_r:sysfs_sswap:s0 + # CPU/Scheduler devices genfscon sysfs /power/cpufreq_table u:object_r:sysfs_devices_system_cpu:s0 genfscon sysfs /power/cpufreq_min_limit u:object_r:sysfs_devices_system_cpu:s0