Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 469004 - app-admin/syslog-ng-3.4.1 wrong permissions for checkpath SYSLOG_NG_STATEFILE_DIR in init script
Summary: app-admin/syslog-ng-3.4.1 wrong permissions for checkpath SYSLOG_NG_STATEFILE...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mr. Bones. (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-08 07:49 UTC by Guillaume Castagnino
Modified: 2013-05-08 20:11 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Guillaume Castagnino 2013-05-08 07:49:21 UTC
Hi,

when creating the statefile directory, the init script uses a checkpath --mode 0600:
start_pre() {
    checkconfig || return 1
    checkpath \
    -d \
    --mode 0600 \
    --owner "${SYSLOG_NG_OWNER}:${SYSLOG_NG_GROUP}" \
    "${SYSLOG_NG_STATEFILE_DIR}"
}


But since this is a directory, this misses the execution permission.
This result in an error when starting syslog-ng-3.4.1:
 * Starting syslog-ng ...
Error creating persistent state file; filename='/var/lib/syslog-ng/syslog-ng.persist-', error='Permission denied (13)'
 * start-stop-daemon: failed to start `syslog-ng'
 * Failed to start syslog-ng [ !! ]
 * ERROR: syslog-ng failed to start


Using "--mode 0700" in the init script fixes this issue
Thanks !
Comment 1 n1ghtmare 2013-05-08 19:23:47 UTC
same problem here
Comment 2 Mr. Bones. (RETIRED) gentoo-dev 2013-05-08 20:11:22 UTC
fixed.  thanks for the bug report.