From mboxrd@z Thu Jan 1 00:00:00 1970 From: Steve Grubb Subject: Re: /var/log/audit ownership/permissions Date: Thu, 21 Jul 2016 09:55:07 -0400 Message-ID: <12890758.RtUGNIL9cO@x2> References: <1d3522ae-ff55-5a91-5e8d-b64fac67e84b@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from x2.localnet (vpn-226-216.phx2.redhat.com [10.3.226.216]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u6LDt6kn000629 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 21 Jul 2016 09:55:07 -0400 In-Reply-To: <1d3522ae-ff55-5a91-5e8d-b64fac67e84b@redhat.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-audit-bounces@redhat.com Errors-To: linux-audit-bounces@redhat.com To: linux-audit@redhat.com List-Id: linux-audit@redhat.com On Thursday, July 21, 2016 11:48:04 AM EDT Ondrej Moris wrote: > Hi, I noticed that in 2.6.5 /var/log/audit permission were dropped from > 750 to 600. The directory should be 0750 or 0700 depending on your config. 0600 would be a mistake. > I am fine with that but while I see the motivation [1], I > just cannot find where is that happening in the code. https://fedorahosted.org/audit/browser/trunk/src/auditd-event.c#L886 > Besides, specfile > still contains: > > %attr(750,root,root) %dir %{_var}/log/audit Maybe I should take the attr away or modify it to (-,root,-). The group can change. For example, I have wheel allowed to run audit reports on my system. > and hence 'rpm -V audit' obviously fails. Yeah. Hmm. -Steve > [1] > http://post-office.corp.redhat.com/archives/tech-list/2016-May/msg00468.html > > -- > Ondrej > > -- > Linux-audit mailing list > Linux-audit@redhat.com > https://www.redhat.com/mailman/listinfo/linux-audit