From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 249D11396D0 for ; Sun, 10 Sep 2017 14:03:57 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 684A81FC0EB; Sun, 10 Sep 2017 14:03:56 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 4B9751FC0BA for ; Sun, 10 Sep 2017 14:03:56 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 43F133417E7 for ; Sun, 10 Sep 2017 14:03:55 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B3D359076 for ; Sun, 10 Sep 2017 14:03:53 +0000 (UTC) From: "Jason Zaman" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Jason Zaman" Message-ID: <1505047754.bfbc6bd14be977d19cadd03be8e1ed57b9568496.perfinion@gentoo> Subject: [gentoo-commits] proj/hardened-refpolicy:next commit in: policy/modules/system/ X-VCS-Repository: proj/hardened-refpolicy X-VCS-Files: policy/modules/system/userdomain.if X-VCS-Directories: policy/modules/system/ X-VCS-Committer: perfinion X-VCS-Committer-Name: Jason Zaman X-VCS-Revision: bfbc6bd14be977d19cadd03be8e1ed57b9568496 X-VCS-Branch: next Date: Sun, 10 Sep 2017 14:03:53 +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: f6c7900a-5240-4980-8072-ae01a62ffbe3 X-Archives-Hash: 29aebc359233228cf5c95f33e60be939 commit: bfbc6bd14be977d19cadd03be8e1ed57b9568496 Author: Jason Zaman perfinion com> AuthorDate: Sun Sep 10 12:49:14 2017 +0000 Commit: Jason Zaman gentoo org> CommitDate: Sun Sep 10 12:49:14 2017 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=bfbc6bd1 Introduce userdom_map_user_tmpfs_files interface policy/modules/system/userdomain.if | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/policy/modules/system/userdomain.if b/policy/modules/system/userdomain.if index cc019898..88704b71 100644 --- a/policy/modules/system/userdomain.if +++ b/policy/modules/system/userdomain.if @@ -3212,6 +3212,24 @@ interface(`userdom_rw_user_tmpfs_files',` ######################################## ## +## Map user tmpfs files. +## +## +## +## Domain allowed access. +## +## +# +interface(`userdom_map_user_tmpfs_files',` + gen_require(` + type user_tmpfs_t; + ') + + allow $1 user_tmpfs_t:file map; +') + +######################################## +## ## Delete user tmpfs files. ## ##