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 72AB513989D for ; Wed, 26 Aug 2015 06:46:09 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B94DD141E3; Wed, 26 Aug 2015 06:46:07 +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 2D052141E3 for ; Wed, 26 Aug 2015 06:46:07 +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 130C93408C5 for ; Wed, 26 Aug 2015 06:46:06 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 36036179 for ; Wed, 26 Aug 2015 06:46:02 +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: <1440568975.a979dd138209b265b8458e2ef901a61262570518.perfinion@gentoo> Subject: [gentoo-commits] proj/hardened-refpolicy:next commit in: policy/modules/kernel/ X-VCS-Repository: proj/hardened-refpolicy X-VCS-Files: policy/modules/kernel/filesystem.if X-VCS-Directories: policy/modules/kernel/ X-VCS-Committer: perfinion X-VCS-Committer-Name: Jason Zaman X-VCS-Revision: a979dd138209b265b8458e2ef901a61262570518 X-VCS-Branch: next Date: Wed, 26 Aug 2015 06:46:02 +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: 30487431-4919-4365-8302-54c5faa134b9 X-Archives-Hash: 5da572eeea4fc7c771b53c3600cecf13 Message-ID: <20150826064602.8JLHteLWmYXokazUAWITBv5vJpEJnwkuARk-jwdHzAg@z> commit: a979dd138209b265b8458e2ef901a61262570518 Author: Jason Zaman perfinion com> AuthorDate: Wed Aug 26 06:02:55 2015 +0000 Commit: Jason Zaman gentoo org> CommitDate: Wed Aug 26 06:02:55 2015 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=a979dd13 introduce fs_cgroup_filetrans() interface policy/modules/kernel/filesystem.if | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/policy/modules/kernel/filesystem.if b/policy/modules/kernel/filesystem.if index b6b7063..4ddef7c 100644 --- a/policy/modules/kernel/filesystem.if +++ b/policy/modules/kernel/filesystem.if @@ -4988,3 +4988,40 @@ interface(`fs_unconfined',` typeattribute $1 filesystem_unconfined_type; ') + +# gentoo specific under here but not allowed ifdef + +######################################## +## +## Create an object in a cgroup tmpfs filesystem, with a private +## type using a type transition. +## +## +## +## Domain allowed access. +## +## +## +## +## The type of the object to be created. +## +## +## +## +## The object class of the object being created. +## +## +## +## +## The name of the object being created. +## +## +# +interface(`fs_cgroup_filetrans',` + gen_require(` + type cgroup_t; + ') + + allow $2 tmpfs_t:filesystem associate; + filetrans_pattern($1, cgroup_t, $2, $3, $4) +')