Re: [vserver] Permissions on /dev/null change to 600 / gentoo guest

From: Oliver Welter <mail_at_oliwel.de>
Date: Mon 26 Apr 2010 - 08:04:40 BST
Message-ID: <4BD53B08.9000900@oliwel.de>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi

Problem is solved - so for reference...

> yesterday I updated one of my gentoo guests and now I see a strange issue:
>
> The rootfs contains a /dev/null node with rights of 777, after starting
> the vserver, the file has 600 permissions, causing several things not to
> work. I dont have udev enabled and dont see any startup service who is
> manipulation the file mode.
>
> wwwdev / # l /dev/null
> crw------- 1 root root 1, 3 21. Apr 23:29 /dev/null
>

The issue was syslog-ng, the console is redirected to /dev/null

destination console_all { file("/dev/null"); };

Syslog tries to be secure and makes a chmod 600 on its logfiles by
default. Fix is easy, just override permisions:

destination console_all { file("/dev/null" perm(0666)); };

Oliver
- --
Protect your environment - close windows and adopt a penguin!
PGP-Key: 3B2C 8095 A7DF 8BB5 2CFF 8168 CAB7 B0DD 3985 1721
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkvVOwgACgkQyrew3TmFFyGaVACfWwsrcqMTCsPx2gI2YWqagVoM
CTgAn2N6o12m3JX6gotgp3jRSwd3/Y7C
=vYzk
-----END PGP SIGNATURE-----
Received on Mon Apr 26 08:04:58 2010

[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Mon 26 Apr 2010 - 08:05:00 BST by hypermail 2.1.8