From: aranea@aixah.de (Luis Ressel) Date: Mon, 11 Aug 2014 15:33:16 +0200 Subject: [refpolicy] [PATCH 1/3] system/mount.if: Add mount_rw_loopback_files interface Message-ID: <1407763998-26586-1-git-send-email-aranea@aixah.de> To: refpolicy@oss.tresys.com List-Id: refpolicy.oss.tresys.com --- policy/modules/system/mount.if | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/policy/modules/system/mount.if b/policy/modules/system/mount.if index fe24186..8a2105b 100644 --- a/policy/modules/system/mount.if +++ b/policy/modules/system/mount.if @@ -191,3 +191,21 @@ interface(`mount_read_loopback_files',` allow $1 mount_loopback_t:file read_file_perms; ') + +######################################## +## +## Read and write loopback filesystem image files. +## +## +## +## Domain allowed access. +## +## +# +interface(`mount_rw_loopback_files',` + gen_require(` + type mount_loopback_t; + ') + + allow $1 mount_loopback_t:file rw_file_perms; +') -- 2.0.4