[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#661848: please respect sys admin set perms in /var/log/apt



On Thu, Mar 01, 2012 at 03:46:53PM -0500, Jeffrey Sheinberg wrote:
> Package: apt
> Version: 0.8.10.3+squeeze1
> Severity: normal
> 
> Hi,
> 
> Please respect the sys admin set perms for the files in /var/log/apt .
> 
> I set these perms so that they satisfy my own security requirements by
> using cfengine.  I maintain that it is not appropriate for apt to change
> them whenever it runs, other than on initial install or re-install.
> 
>     /var/log/apt/term.log had permission 600, changed it to 644
> 
> It appears that /var/log/history.log in not affected by this bug.

In experimental at least, both files should have their mode set to
0644, as we're running chmod 0644 on them. We could probably solve
the problem by using open() with mode 0644 instead of fopen() and
then use fdopen to open the file descriptor as a FILE*, as the
permissions are then only used when the file is created.

-- 
Julian Andres Klode  - Debian Developer, Ubuntu Member

See http://wiki.debian.org/JulianAndresKlode and http://jak-linux.org/.



Reply to: