Summary: | security/logcheck: incorrect permissions on /usr/local/etc/logcheck | ||||||
---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | Dan Langille <dvl> | ||||
Component: | Individual Port(s) | Assignee: | freebsd-ports-bugs (Nobody) <ports-bugs> | ||||
Status: | Closed FIXED | ||||||
Severity: | Affects Some People | CC: | lwhsu, yasu | ||||
Priority: | --- | Flags: | bugzilla:
maintainer-feedback?
(yasu) |
||||
Version: | Latest | ||||||
Hardware: | Any | ||||||
OS: | Any | ||||||
Bug Depends on: | 257980 | ||||||
Bug Blocks: | |||||||
Attachments: |
|
Description
Dan Langille
2021-09-08 12:38:21 UTC
Created attachment 227760 [details]
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%%
This will fix broken installs: * cd /usr/local/etc/logcheck * chgrp logcheck . cracking.d ignore.d.paranoid ignore.d.server ignore.d.workstation violations.d violations.ignore.d Sorry for breakage. Patch submitted as bug #257980 will fix the problem. Solved via above mentioned ticket. Thank you. |