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 9D0501381FA for ; Thu, 1 May 2014 18:59:38 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 56B59E084A; Thu, 1 May 2014 18:59:37 +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 DE270E084A for ; Thu, 1 May 2014 18:59:36 +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 D4559340223 for ; Thu, 1 May 2014 18:59:35 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by spoonbill.gentoo.org (Postfix) with ESMTP id 3CED51818D for ; Thu, 1 May 2014 18:59:34 +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: <1398970739.0b6f58747314452da12fec27f7876ca66bfb503c.swift@gentoo> Subject: [gentoo-commits] proj/hardened-refpolicy:master commit in: policy/modules/kernel/ X-VCS-Repository: proj/hardened-refpolicy X-VCS-Files: policy/modules/kernel/files.if X-VCS-Directories: policy/modules/kernel/ X-VCS-Committer: swift X-VCS-Committer-Name: Sven Vermeulen X-VCS-Revision: 0b6f58747314452da12fec27f7876ca66bfb503c X-VCS-Branch: master Date: Thu, 1 May 2014 18:59:34 +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: 33fbc001-df61-418a-8caf-4862f03c4cde X-Archives-Hash: 2192659b5c298a82c295f59771603de0 commit: 0b6f58747314452da12fec27f7876ca66bfb503c Author: Sven Vermeulen siphos be> AuthorDate: Thu May 1 18:58:59 2014 +0000 Commit: Sven Vermeulen gentoo org> CommitDate: Thu May 1 18:58:59 2014 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=0b6f5874 Add files_read_etc_runtime interface --- policy/modules/kernel/files.if | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/policy/modules/kernel/files.if b/policy/modules/kernel/files.if index 5cff62e..3f20525 100644 --- a/policy/modules/kernel/files.if +++ b/policy/modules/kernel/files.if @@ -6705,3 +6705,24 @@ interface(`files_lib_filetrans_kernel_modules',` libs_lib_filetrans($1, modules_object_t, $2, $3) ') + +######################################### +## +## Read etc runtime resources +## +## +## +## Domain allowed access +## +## +# +interface(`files_read_etc_runtime',` + gen_require(` + type etc_runtime_t; + type etc_t; + ') + + list_dirs_pattern($1, etc_t, etc_runtime_t) + read_files_pattern($1, { etc_t etc_runtime_t }, etc_runtime_t) + read_lnk_files_pattern($1, { etc_t etc_runtime_t }, etc_runtime_t) +')