[Pkg-sysvinit-devel] Bug#687202: initscripts: /run/lock has perms 0755 instead of 1777

Petter Reinholdtsen pere at hungry.com
Mon Sep 10 20:18:30 UTC 2012


[Alan Dennis]
> /run/lock is created with perms 0755 in /lib/init/mount-functions.sh
> : mount_lock().  This prevents non-privileged users from creating
> files/directories in /run/lock.
> In particular, the logcheck package runs as a logcheck user and
> fails to create /run/lock/logcheck.
> Changing mount_lock() to mkdir with --mode=1777 fixes the problem.

Hm.  What did it use to have when it was /var/lock/?  My squeeze
installation got this:

  % ls -lad /var/lock/.
  drwxrwxrwt 3 root root 4096 10 sep.  10:49 /var/lock/.
  %

I find no file permission mode instructions in
<URL: http://www.pathname.com/fhs/2.2/fhs-5.9.html >.

But given the use of this directory, I suspect the 1777 mode is
correct, and that this is a regression from Squeeze.

-- 
Hapy hacking
Petter Reinholdtsen



More information about the Pkg-sysvinit-devel mailing list