From: jason@perfinion.com (Jason Zaman) Date: Sun, 4 Jun 2017 23:20:08 +0800 Subject: [refpolicy] [PATCH] filesystem: introduce fs_cgroup_filetrans interface Message-ID: <20170604152008.23980-1-jason@perfinion.com> To: refpolicy@oss.tresys.com List-Id: refpolicy.oss.tresys.com --- policy/modules/kernel/filesystem.if | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/policy/modules/kernel/filesystem.if b/policy/modules/kernel/filesystem.if index 42ab95c0..20461505 100644 --- a/policy/modules/kernel/filesystem.if +++ b/policy/modules/kernel/filesystem.if @@ -944,6 +944,41 @@ interface(`fs_mounton_cgroup', ` ######################################## ## +## Create an object in a cgroup tmpfs filesystem, with a private +## type using a type transition. +## +## +## +## Domain allowed access. +## +## +## +## +## The type of the object to be created. +## +## +## +## +## The object class of the object being created. +## +## +## +## +## The name of the object being created. +## +## +# +interface(`fs_cgroup_filetrans',` + gen_require(` + type cgroup_t; + ') + + allow $2 tmpfs_t:filesystem associate; + filetrans_pattern($1, cgroup_t, $2, $3, $4) +') + +######################################## +## ## Do not audit attempts to read ## dirs on a CIFS or SMB filesystem. ## -- 2.13.0