Mailinglist Archive: opensuse (1972 mails)

< Previous Next >
Re: [opensuse] Re: Update of aaa_base removes permissions to /dev/null
  • From: "Carlos E. R." <robin.listas@xxxxxxxxxxxxxx>
  • Date: Mon, 9 Mar 2009 19:45:19 +0100 (CET)
  • Message-id: <alpine.LSU.2.00.0903091941290.9084@xxxxxxxxxxxxxxxx>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



On Monday, 2009-03-09 at 17:02 +0100, Michael Schroeder wrote:

Thanks. The strace indeed reveals what's going on: the aaa_base
postinstall scriptlet contains:
touch root/.bash_history
chmod 600 root/.bash_history

On your system, /root/.bash_history is a symlink pointing to /dev/null,
thus 'chmod 600 root/.bash_history' changes the mode of /dev/null.

Curious. I understood that the mode of a symlink could not be changed, but I did not know that the "target" is changed instead. This is new to me. I suppose it is intentional? :-?


cer@nimrodel:/home1/cer/tmp/tmp> touch target

cer@nimrodel:/home1/cer/tmp/tmp> ln -s target name

cer@nimrodel:/home1/cer/tmp/tmp> l
total 0
drwxr-xr-x 2 cer users 30 2009-03-09 19:40 ./
drwxr-xr-x 6 cer users 55 2009-03-09 19:40 ../
lrwxrwxrwx 1 cer users 6 2009-03-09 19:40 name -> target
- -rw-r--r-- 1 cer users 0 2009-03-09 19:40 target

cer@nimrodel:/home1/cer/tmp/tmp> chmod 600 name

cer@nimrodel:/home1/cer/tmp/tmp> l
total 0
drwxr-xr-x 2 cer users 30 2009-03-09 19:40 ./
drwxr-xr-x 6 cer users 55 2009-03-09 19:40 ../
lrwxrwxrwx 1 cer users 6 2009-03-09 19:40 name -> target
- -rw------- 1 cer users 0 2009-03-09 19:40 target


The scriptlet should be changed to be a bit more careful, I guess.
CC to ro@xxxxxxx, the aaa_base maintainer.

There is nothing that can be done to /dev/null to avoid it being changed?

- -- Cheers,
Carlos E. R.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)

iEYEARECAAYFAkm1Y8YACgkQtTMYHG2NR9WDSwCginO/5FSY1M+Ri9z2m604uTzQ
4GUAn1LdIFUC7UdgfSdKb0D3mFu6V+mP
=p6N8
-----END PGP SIGNATURE-----
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >