Ruediger Meier wrote:
On Thursday 23 February 2012, Ludwig Nussel wrote:
Ruediger Meier wrote:
Ludwig, while you are on this maybe you could also review what we could do about https://bugzilla.novell.com/show_bug.cgi?id=718168
As Vitezslav said, that needs to be fixed in the package that contains the logrotate config for that specific file.
I don't care much about the particular example of the bug report but about the general problem that we always defining logfile permissions twice at different places. One time in logrotate configs and one time when a log file is created the first time.
This is IMO a major problem and should be solved smilar like you did here by doing an announcement, adding rpmlint checks, whatever.
That would be possible indeed. Now we need a volunteer to actually do it :-)
As mentioned in above bug report and in http://permalink.gmane.org/gmane.linux.suse.opensuse.devel/34392 I would omit any mode attributes in any logrotate configs and only care about the right mode when creating a logfile the first time.
The log files should probably be owned by a package then so rpm -V shows when the permissions are wrong. The /etc/permissions mechanism isn't really suitable for that as it only triggers on package installation. We'd have to put chkstat calls into each logrotate config then or someone needs to patch logrotate to do it automatically ... cu Ludwig -- (o_ Ludwig Nussel //\ V_/_ http://www.suse.de/ SUSE LINUX Products GmbH, GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 16746 (AG Nürnberg) -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org