From 24be4c0096646bdadc59c03433456ead146c2ca8 Mon Sep 17 00:00:00 2001 From: Luis Ressel Date: Sat, 1 Feb 2014 14:50:23 +0100 Subject: [PATCH] Allow mount_t usage of /dev/loop-control If loopback devices are not pregenerated (kernel option CONFIG_BLK_DEV_LOOP_MIN_COUNT=0), mount needs to write to /dev/loop-control do create them dynamically when needed. --- policy/modules/system/mount.te | 1 + 1 file changed, 1 insertion(+) diff --git a/policy/modules/system/mount.te b/policy/modules/system/mount.te index 9cd37d9ee..90c928b1f 100644 --- a/policy/modules/system/mount.te +++ b/policy/modules/system/mount.te @@ -77,6 +77,7 @@ dev_list_all_dev_nodes(mount_t) dev_read_sysfs(mount_t) dev_dontaudit_write_sysfs_dirs(mount_t) dev_rw_lvm_control(mount_t) +dev_rw_loop_control(mount_t) dev_dontaudit_getattr_all_chr_files(mount_t) dev_dontaudit_getattr_memory_dev(mount_t) dev_getattr_sound_dev(mount_t)