All of lore.kernel.org
 help / color / mirror / Atom feed
* [refpolicy] Loop device handling with losetup
@ 2014-02-16 16:34 Luis Ressel
  2014-02-16 16:34 ` [refpolicy] [PATCH 1/3] system/mount.if: Add mount_rw_loopback_files interface Luis Ressel
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Luis Ressel @ 2014-02-16 16:34 UTC (permalink / raw)
  To: refpolicy

This patch series adds the permissions needed for losetup. losetup is a
utility to bind files to loop devices. I reused mount_loopback_t as the
type for files intended to be bound to such loop devices.


Regards,
Luis Ressel

^ permalink raw reply	[flat|nested] 8+ messages in thread
* [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 3/3] Add neccessary permissions for losetup Luis Ressel
  0 siblings, 1 reply; 8+ 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] 8+ messages in thread

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

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-16 16:34 [refpolicy] Loop device handling with losetup Luis Ressel
2014-02-16 16:34 ` [refpolicy] [PATCH 1/3] system/mount.if: Add mount_rw_loopback_files interface Luis Ressel
2014-02-16 16:34 ` [refpolicy] [PATCH 2/3] system/fstools.if: Add fstools_use_fds interface Luis Ressel
2014-02-16 16:34 ` [refpolicy] [PATCH 3/3] Add neccessary permissions for losetup Luis Ressel
2014-03-03 14:28   ` Christopher J. PeBenito
  -- strict thread matches above, loose matches on Subject: below --
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 3/3] Add neccessary permissions for losetup Luis Ressel
2014-08-11 13:37   ` Luis Ressel
2014-08-11 22:19   ` Luis Ressel

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.