diff options
author | Jason Zaman <jason@perfinion.com> | 2019-01-12 16:03:40 +0800 |
---|---|---|
committer | Jason Zaman <jason@perfinion.com> | 2019-02-10 12:11:25 +0800 |
commit | 63ab6a3846fefa9040bd9a3b21bdfa8c84b5dc31 (patch) | |
tree | 372693fca45550849f966b979817fca53376a5ae | |
parent | init: Drop unnecessary userspace class dependence in init_read_generic_units_... (diff) | |
download | hardened-refpolicy-63ab6a38.tar.gz hardened-refpolicy-63ab6a38.tar.bz2 hardened-refpolicy-63ab6a38.zip |
devices: introduce dev_dontaudit_read_sysfs
Signed-off-by: Jason Zaman <jason@perfinion.com>
-rw-r--r-- | policy/modules/kernel/devices.if | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/policy/modules/kernel/devices.if b/policy/modules/kernel/devices.if index 0966a468d..84b9d8fb1 100644 --- a/policy/modules/kernel/devices.if +++ b/policy/modules/kernel/devices.if @@ -4045,6 +4045,26 @@ interface(`dev_dontaudit_getattr_sysfs',` ######################################## ## <summary> +## Dont audit attempts to read hardware state information +## </summary> +## <param name="domain"> +## <summary> +## Domain for which the attempts do not need to be audited +## </summary> +## </param> +# +interface(`dev_dontaudit_read_sysfs',` + gen_require(` + type sysfs_t; + ') + + dontaudit $1 sysfs_t:file read_file_perms; + dontaudit $1 sysfs_t:dir list_dir_perms; + dontaudit $1 sysfs_t:lnk_file read_lnk_file_perms; +') + +######################################## +## <summary> ## mounton sysfs directories. ## </summary> ## <param name="domain"> |