From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 066BD138CE3 for ; Sun, 9 Feb 2014 10:55:07 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C869EE0AED; Sun, 9 Feb 2014 10:54:49 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 4D694E0AED for ; Sun, 9 Feb 2014 10:54:39 +0000 (UTC) Received: from spoonbill.gentoo.org (spoonbill.gentoo.org [81.93.255.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 4C55633F908 for ; Sun, 9 Feb 2014 10:54:38 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by spoonbill.gentoo.org (Postfix) with ESMTP id E2ED218877 for ; Sun, 9 Feb 2014 10:54:35 +0000 (UTC) From: "Sven Vermeulen" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sven Vermeulen" Message-ID: <1391943161.30d59932effdc3e24f87b00f90512dd59135fbb9.swift@gentoo> Subject: [gentoo-commits] proj/hardened-refpolicy:master commit in: policy/modules/system/ X-VCS-Repository: proj/hardened-refpolicy X-VCS-Files: policy/modules/system/mount.te X-VCS-Directories: policy/modules/system/ X-VCS-Committer: swift X-VCS-Committer-Name: Sven Vermeulen X-VCS-Revision: 30d59932effdc3e24f87b00f90512dd59135fbb9 X-VCS-Branch: master Date: Sun, 9 Feb 2014 10:54:35 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: b84dc4e5-e157-4348-ab05-9ba187cc1c91 X-Archives-Hash: a9ba26c27d0e3ded82ebb09310fff0e1 commit: 30d59932effdc3e24f87b00f90512dd59135fbb9 Author: Luis Ressel aixah de> AuthorDate: Sat Feb 1 13:50:23 2014 +0000 Commit: Sven Vermeulen gentoo org> CommitDate: Sun Feb 9 10:52:41 2014 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=30d59932 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 3c5fa5f..1b9030a 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)