Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 45415C71122 for ; Fri, 12 Oct 2018 22:57:27 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 125FA2087D for ; Fri, 12 Oct 2018 22:57:27 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 125FA2087D Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=aixah.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=selinux-refpolicy-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725894AbeJMGcE (ORCPT ); Sat, 13 Oct 2018 02:32:04 -0400 Received: from wp260.webpack.hosteurope.de ([80.237.133.29]:53365 "EHLO wp260.webpack.hosteurope.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725785AbeJMGcE (ORCPT ); Sat, 13 Oct 2018 02:32:04 -0400 Received: from hsi-kbw-046-005-222-111.hsi8.kabel-badenwuerttemberg.de ([46.5.222.111] helo=vega.skynet.aixah.de); authenticated by wp260.webpack.hosteurope.de running ExIM with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) id 1gB5pt-0005YO-S8; Sat, 13 Oct 2018 00:23:09 +0200 Received: by vega.skynet.aixah.de (Postfix, from userid 1000) id 497B7260276; Sat, 13 Oct 2018 00:23:09 +0200 (CEST) From: Luis Ressel To: selinux-refpolicy@vger.kernel.org Subject: [PATCH 1/2] Add fc for /var/lib/misc/logrotate.status Date: Sat, 13 Oct 2018 00:23:04 +0200 Message-Id: <20181012222305.10844-1-aranea@aixah.de> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-bounce-key: webpack.hosteurope.de;aranea@aixah.de;1539385046;be986c7f; X-HE-SMSGID: 1gB5pt-0005YO-S8 Sender: selinux-refpolicy-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: selinux-refpolicy@vger.kernel.org Some distros configure logrotate to put its status file somewhere else than the default /var/lib/logrotate.status. Debian puts it in /var/lib/logrotate/, and Gentoo uses /var/lib/misc/. --- policy/modules/admin/logrotate.fc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/policy/modules/admin/logrotate.fc b/policy/modules/admin/logrotate.fc index dac1af39..cd43ab28 100644 --- a/policy/modules/admin/logrotate.fc +++ b/policy/modules/admin/logrotate.fc @@ -9,4 +9,4 @@ /usr/sbin/logrotate -- gen_context(system_u:object_r:logrotate_exec_t,s0) /var/lib/logrotate(/.*)? gen_context(system_u:object_r:logrotate_var_lib_t,s0) -/var/lib/logrotate\.status -- gen_context(system_u:object_r:logrotate_var_lib_t,s0) +/var/lib/(misc/)?logrotate\.status -- gen_context(system_u:object_r:logrotate_var_lib_t,s0) -- 2.19.1