Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 370563

Summary: USE=caps app-admin/syslog-ng-3.1.* doesn't create new logs in directories not owned by root
Product: Gentoo Linux Reporter: Christian Ruppert (idl0r) <idl0r>
Component: Current packagesAssignee: Mr. Bones. (RETIRED) <mr_bones_>
Status: RESOLVED WONTFIX    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugzilla.balabit.com/show_bug.cgi?id=52
Whiteboard:
Package list:
Runtime testing required: ---

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.