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

Re: strange (or unexplainable) permissions on /var/log/*

martin f krafft wrote:

I am just stepping through this an notice that the sysklogd postinst

  for LOG in `syslogd-listfiles` `syslogd-listfiles --auth`; do
    if [ ! -f $LOG ]; then
        touch $LOG
    chown root:adm $LOG
    chmod 640 $LOG

Nice race condition. Fortunately, unlike #282058 (which, AFAICT, is redundant, so not really a problem), this one only happens once, when the package is installed, which for sysklogd is normally before any users exist to take advantage of it.

Reply to: