Weird chmod behaviour
Simon 'corecode' Schubert
corecode at fs.ei.tum.de
Wed Nov 17 13:18:25 PST 2004
Hey,
I had just finished updating to a very recent kernel (yesterday, HEAD),
and ran make upgrade. After this I couldn't use top(1) any more. It
reported access problems with /dev/mem (or /dev/kmem? dunno, doesn't
matter really).
so this came up (after a fresh make upgrade!)
21:36:44 corecode at sweatshorts:/dev % ll kmem
crw------- 1 root kmem 2, 1 Nov 17 21:36 kmem
21:36:46 corecode at sweatshorts:/dev % sudo chmod 640 kmem
21:37:15 corecode at sweatshorts:/dev % ll kmem
crw-r----- 1 root kmem 2, 1 Nov 17 21:36 kmem
21:37:28 corecode at sweatshorts:/dev % sudo sh -x MAKEDEV std
+ [ -n ]
+ PATH=/sbin:/bin
+ umask 77
+ mknod=/sbin/mknod
[...]
+ mknod kmem c 2 1 root:kmem
+ rm -f kmem
+ /sbin/mknod kmem c 2 1 root:kmem
+ chmod 640 kmem
+ mknod mem c 2 0 root:kmem
[...]
21:37:34 corecode at sweatshorts:/dev % ll kmem
crw-r----- 1 root kmem 2, 1 Nov 17 21:37 kmem
21:37:36 corecode at sweatshorts:/dev % sudo rm kmem
21:37:43 corecode at sweatshorts:/dev % sudo sh -x MAKEDEV std
+ [ -n ]
+ PATH=/sbin:/bin
+ umask 77
+ mknod=/sbin/mknod
[...]
+ mknod kmem c 2 1 root:kmem
+ rm -f kmem
+ /sbin/mknod kmem c 2 1 root:kmem
+ chmod 640 kmem
[...]
21:37:49 corecode at sweatshorts:/dev % ll kmem
crw------- 1 root kmem 2, 1 Nov 17 21:37 kmem
something was changing the mode, but I didn't run any weird program, so
I suspect the kernel. Unfortunately I'm no longer able to reproduce it,
still I could do so several times in a row.
cheers
simon
--
/"\
\ /
\ ASCII Ribbon Campaign
/ \ Against HTML Mail and News
Attachment:
PGP.sig
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pgp00005.pgp
Type: application/octet-stream
Size: 186 bytes
Desc: "Description: This is a digitally signed message part"
URL: <http://lists.dragonflybsd.org/pipermail/bugs/attachments/20041117/4b6cdde9/attachment-0021.obj>
More information about the Bugs
mailing list