diff options
author | Jason Zaman <jason@perfinion.com> | 2017-06-05 00:33:44 +0800 |
---|---|---|
committer | Jason Zaman <jason@perfinion.com> | 2017-06-06 01:16:18 +0800 |
commit | 8c64d75ad5512d94b6fb4705b546483e2a09837c (patch) | |
tree | a67c8e622724ddda6d998376c26cdf736ab06367 | |
parent | Module version bumps for patches from Jason Zaman. (diff) | |
download | hardened-refpolicy-8c64d75a.tar.gz hardened-refpolicy-8c64d75a.tar.bz2 hardened-refpolicy-8c64d75a.zip |
filesystem: introduce fs_cgroup_filetrans interface
-rw-r--r-- | policy/modules/kernel/filesystem.if | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/policy/modules/kernel/filesystem.if b/policy/modules/kernel/filesystem.if index c9c67369..f28614f2 100644 --- a/policy/modules/kernel/filesystem.if +++ b/policy/modules/kernel/filesystem.if @@ -944,6 +944,42 @@ interface(`fs_mounton_cgroup', ` ######################################## ## <summary> +## Create an object in a cgroup tmpfs filesystem, with a private +## type using a type transition. +## </summary> +## <param name="domain"> +## <summary> +## Domain allowed access. +## </summary> +## </param> +## <param name="private type"> +## <summary> +## The type of the object to be created. +## </summary> +## </param> +## <param name="object"> +## <summary> +## The object class of the object being created. +## </summary> +## </param> +## <param name="name" optional="true"> +## <summary> +## The name of the object being created. +## </summary> +## </param> +# +interface(`fs_cgroup_filetrans',` + gen_require(` + type cgroup_t, tmpfs_t; + ') + + allow $2 tmpfs_t:filesystem associate; + filetrans_pattern($1, cgroup_t, $2, $3, $4) + fs_search_sysfs($1) +') + +######################################## +## <summary> ## Do not audit attempts to read ## dirs on a CIFS or SMB filesystem. ## </summary> |