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 F3CDA139086 for ; Fri, 13 Jan 2017 18:43:39 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 13235234061; Fri, 13 Jan 2017 18:43:20 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E64B3234061 for ; Fri, 13 Jan 2017 18:43:14 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 50CE734180F for ; Fri, 13 Jan 2017 18:43:13 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id DE04A2632 for ; Fri, 13 Jan 2017 18:43:09 +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: <1484332743.0bb6636315aeb689646c5362ab11ae4101d1c30a.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: 0bb6636315aeb689646c5362ab11ae4101d1c30a X-VCS-Branch: master Date: Fri, 13 Jan 2017 18:43:09 +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: 867b125f-481e-4ea0-93db-261f5b8caf38 X-Archives-Hash: ecb652da10d338bef6f8817c4910b54c commit: 0bb6636315aeb689646c5362ab11ae4101d1c30a Author: cgzones googlemail com> AuthorDate: Thu Jan 5 11:47:58 2017 +0000 Commit: Sven Vermeulen gentoo org> CommitDate: Fri Jan 13 18:39:03 2017 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=0bb66363 add files_search_src() required by loadkeys policy/modules/kernel/files.if | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/policy/modules/kernel/files.if b/policy/modules/kernel/files.if index b5eeaf8..f82c792 100644 --- a/policy/modules/kernel/files.if +++ b/policy/modules/kernel/files.if @@ -5216,6 +5216,24 @@ interface(`files_usr_filetrans',` ######################################## ## +## Search directories in /usr/src. +## +## +## +## Domain allowed access. +## +## +# +interface(`files_search_src',` + gen_require(` + type src_t; + ') + + allow $1 src_t:dir search_dir_perms; +') + +######################################## +## ## Do not audit attempts to search /usr/src. ## ##