Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 08 Sep 2021 13:00:28 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 258365] security/logcheck: incorrect permissions on /usr/local/etc/logcheck
Message-ID:  <bug-258365-7788-RazVrHCpUr@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-258365-7788@https.bugs.freebsd.org/bugzilla/>
References:  <bug-258365-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D258365

--- Comment #1 from Dan Langille <dvl@FreeBSD.org> ---
Created attachment 227760
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D227760&action=
=3Dedit
set permissions on ETCDIR and subdirectories

I think I understand. This line in pkg-plist affects only items which will
between it and the next @group command:

@group %%LOGCHECK_GROUP%%

Therefore, it does not affect the directories in question.

Adding this to the end of pkg-plist fixes those directories

@postexec %%FIND%% %%PREFIX%%/%%ETCDIR%%/* -type d -exec %%CHGRP%% logcheck=
 {}
+

This fixes the ETCDIR permissions:

@dir(%%LOGCHECK_USER%%,%%LOGCHECK_GROUP%%,) %%RUNDIR%%

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-258365-7788-RazVrHCpUr>