[Bug 258365] security/logcheck: incorrect permissions on /usr/local/etc/logcheck
Date: Wed, 08 Sep 2021 13:00:28 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=258365
--- Comment #1 from Dan Langille <dvl@FreeBSD.org> ---
Created attachment 227760
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=227760&action=edit
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%%
--
You are receiving this mail because:
You are the assignee for the bug.