DragonFly BSD
DragonFly bugs List (threaded) for 2004-11
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Weird chmod behaviour


From: "Simon 'corecode' Schubert" <corecode@xxxxxxxxxxxx>
Date: Wed, 17 Nov 2004 22:17:59 +0100

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@sweatshorts:/dev % ll kmem
crw-------  1 root  kmem    2,   1 Nov 17 21:36 kmem
21:36:46 corecode@sweatshorts:/dev % sudo chmod 640 kmem
21:37:15 corecode@sweatshorts:/dev % ll kmem
crw-r-----  1 root  kmem    2,   1 Nov 17 21:36 kmem
21:37:28 corecode@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@sweatshorts:/dev % ll kmem
crw-r-----  1 root  kmem    2,   1 Nov 17 21:37 kmem
21:37:36 corecode@sweatshorts:/dev % sudo rm kmem
21:37:43 corecode@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@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
Description: This is a digitally signed message part



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