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 A111F138A1F for ; Sat, 13 Sep 2014 09:38:39 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1A563E084E; Sat, 13 Sep 2014 09:38:39 +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 93A22E084C for ; Sat, 13 Sep 2014 09:38:38 +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 BE5FA3401A1 for ; Sat, 13 Sep 2014 09:38:37 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 345F05593 for ; Sat, 13 Sep 2014 09:38:35 +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: <1410600322.e5341021fd4a44655b738885c60ee3bbfd29bfe5.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/init.if X-VCS-Directories: policy/modules/system/ X-VCS-Committer: swift X-VCS-Committer-Name: Sven Vermeulen X-VCS-Revision: e5341021fd4a44655b738885c60ee3bbfd29bfe5 X-VCS-Branch: master Date: Sat, 13 Sep 2014 09:38:35 +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: 8da40636-ef95-496d-8a16-40f3a59c3590 X-Archives-Hash: e84d1e0a8471ec46202c75e5026fa7f6 commit: e5341021fd4a44655b738885c60ee3bbfd29bfe5 Author: Nicolas Iooss m4x org> AuthorDate: Sun Sep 7 21:28:11 2014 +0000 Commit: Sven Vermeulen gentoo org> CommitDate: Sat Sep 13 09:25:22 2014 +0000 URL: http://sources.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=e5341021 Introduce init_search_run interface --- policy/modules/system/init.if | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/policy/modules/system/init.if b/policy/modules/system/init.if index ab4b450..76ef0dc 100644 --- a/policy/modules/system/init.if +++ b/policy/modules/system/init.if @@ -1597,6 +1597,25 @@ interface(`init_dontaudit_read_script_status_files',` dontaudit $1 initrc_state_t:file read_file_perms; ') +###################################### +## +## Search the /run/systemd directory. +## +## +## +## Domain allowed access. +## +## +# +interface(`init_search_run',` + gen_require(` + type init_var_run_t; + ') + + files_search_pids($1) + allow $1 init_var_run_t:dir search_dir_perms; +') + ######################################## ## ## Read init script temporary data.