Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 370563 - USE=caps app-admin/syslog-ng-3.1.* doesn't create new logs in directories not owned by root
Summary: USE=caps app-admin/syslog-ng-3.1.* doesn't create new logs in directories not...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Mr. Bones. (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-07 21:20 UTC by Christian Ruppert (idl0r)
Modified: 2011-10-14 17:38 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 Christian Ruppert (idl0r) gentoo-dev 2011-06-07 21:20:02 UTC
syslog-ng-3.1* doesn't write log files in directories not owned by root.
I'm not sure if the 3.0 series is affected as well but its almost EOL anyway.

Jun  7 23:10:44 odin syslog-ng[9765]: Error opening file for writing; filename='/var/log/puppet/puppet-agent.log', error='Permission denied (13)'


Steps to reproduce:
source src {
    unix-stream("/dev/log" max-connections(256));
    internal();
}

destination puppet_agent { file("/var/log/puppet/puppet-agent.log" owner("puppet") group("puppet")); };
filter f_puppet_agent { program("puppet-agent"); };
log { source(src); filter(f_puppet_agent); destination(puppet_agent); };

mkdir -m 0755 /var/log/puppet; chown puppet:puppet /var/log/puppet
/etc/init.d/syslog-ng reload
/etc/init.d/puppet restart

You'll see a error like above.
This has been fixed in syslog-ng 3.2*.
That should be the correct upstream bug:
https://bugzilla.balabit.com/show_bug.cgi?id=52

Can we please stabilize any of the 3.2 series?
Comment 1 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2011-06-09 17:37:37 UTC
(In reply to comment #0)

> Can we please stabilize any of the 3.2 series?

bug 370845
Comment 2 Mr. Bones. (RETIRED) gentoo-dev 2011-10-14 17:38:25 UTC
3.1 is old.  closing.