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 5236F1393DD for ; Tue, 19 Aug 2014 20:07:34 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id AFD09E0809; Tue, 19 Aug 2014 20:07:33 +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 F09E2E0809 for ; Tue, 19 Aug 2014 20:07:32 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 2974C340233 for ; Tue, 19 Aug 2014 20:07:32 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id CA42E394A for ; Tue, 19 Aug 2014 20:07:30 +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: <1408478802.ce7ff0c908740a95edf2dcd6ac2910b3161eb569.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.if X-VCS-Directories: policy/modules/system/ X-VCS-Committer: swift X-VCS-Committer-Name: Sven Vermeulen X-VCS-Revision: ce7ff0c908740a95edf2dcd6ac2910b3161eb569 X-VCS-Branch: master Date: Tue, 19 Aug 2014 20:07:30 +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: f1c928ec-3aa6-4c36-b27b-d68c8d3925f6 X-Archives-Hash: edd650361fc1a80045468ec39971ac3f commit: ce7ff0c908740a95edf2dcd6ac2910b3161eb569 Author: Luis Ressel aixah de> AuthorDate: Mon Aug 11 13:33:16 2014 +0000 Commit: Sven Vermeulen gentoo org> CommitDate: Tue Aug 19 20:06:42 2014 +0000 URL: http://sources.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=ce7ff0c9 system/mount.if: Add mount_rw_loopback_files interface --- 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; +')