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 EF676138CD8 for ; Wed, 27 May 2015 20:00:46 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1E3C9E086F; Wed, 27 May 2015 20:00:46 +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 79A65E086B for ; Wed, 27 May 2015 20:00:45 +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 AB423340E6B for ; Wed, 27 May 2015 20:00:44 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 5DA4B9AA for ; Wed, 27 May 2015 20:00:43 +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: <1432753190.612782c9a0018a2b6d38c19476f44b7ad92ff070.perfinion@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/logging.if X-VCS-Directories: policy/modules/system/ X-VCS-Committer: perfinion X-VCS-Committer-Name: Jason Zaman X-VCS-Revision: 612782c9a0018a2b6d38c19476f44b7ad92ff070 X-VCS-Branch: master Date: Wed, 27 May 2015 20:00:43 +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: b237df1e-9641-4502-85e0-419bc1def381 X-Archives-Hash: fe8b5a2fe6b304e4fe9bcff9e90bfe04 commit: 612782c9a0018a2b6d38c19476f44b7ad92ff070 Author: Jason Zaman perfinion com> AuthorDate: Mon May 25 09:33:55 2015 +0000 Commit: Jason Zaman gentoo org> CommitDate: Wed May 27 18:59:50 2015 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=612782c9 logging: use init_startstop_service in _admin interface The logging_admin interfaces had rules for RedHat sysvinit. This replaces them with the interface init_startstop_service which can easily be changed for other init systems. policy/modules/system/logging.if | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/policy/modules/system/logging.if b/policy/modules/system/logging.if index 1c4af7b..9fa0f5d 100644 --- a/policy/modules/system/logging.if +++ b/policy/modules/system/logging.if @@ -1022,10 +1022,7 @@ interface(`logging_admin_audit',` logging_run_auditctl($1, $2) - init_labeled_script_domtrans($1, auditd_initrc_exec_t) - domain_system_change_exemption($1) - role_transition $2 auditd_initrc_exec_t system_r; - allow $2 system_r; + init_startstop_service($1, $2, auditd_t, auditd_initrc_exec_t) ') ######################################## @@ -1080,10 +1077,7 @@ interface(`logging_admin_syslog',` logging_manage_all_logs($1) - init_labeled_script_domtrans($1, syslogd_initrc_exec_t) - domain_system_change_exemption($1) - role_transition $2 syslogd_initrc_exec_t system_r; - allow $2 system_r; + init_startstop_service($1, $2, syslogd_t, syslogd_initrc_exec_t) ') ########################################