All of lore.kernel.org
 help / color / mirror / Atom feed
* [refpolicy] [PATCH 1/3] system/mount.if: Add mount_rw_loopback_files interface
@ 2014-08-11 13:33 Luis Ressel
  2014-08-11 13:33 ` [refpolicy] [PATCH 2/3] system/fstools.if: Add fstools_use_fds interface Luis Ressel
  2014-08-11 13:33 ` [refpolicy] [PATCH 3/3] Add neccessary permissions for losetup Luis Ressel
  0 siblings, 2 replies; 7+ messages in thread
From: Luis Ressel @ 2014-08-11 13:33 UTC (permalink / raw)
  To: refpolicy

---
 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;
 ')
+
+########################################
+## <summary>
+##	Read and write loopback filesystem image files.
+## </summary>
+## <param name="domain">
+##	<summary>
+##	Domain allowed access.
+##	</summary>
+## </param>
+#
+interface(`mount_rw_loopback_files',`
+	gen_require(`
+		type mount_loopback_t;
+	')
+
+	allow $1 mount_loopback_t:file rw_file_perms;
+')
-- 
2.0.4

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-08-19 12:46 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-11 13:33 [refpolicy] [PATCH 1/3] system/mount.if: Add mount_rw_loopback_files interface Luis Ressel
2014-08-11 13:33 ` [refpolicy] [PATCH 2/3] system/fstools.if: Add fstools_use_fds interface Luis Ressel
2014-08-11 13:33 ` [refpolicy] [PATCH 3/3] Add neccessary permissions for losetup Luis Ressel
2014-08-11 13:37   ` Luis Ressel
2014-08-11 22:19   ` Luis Ressel
2014-08-11 22:24     ` [refpolicy] [PATCH v2 " Luis Ressel
2014-08-19 12:46       ` Christopher J. PeBenito

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.