[ltp] tpctl & thinkpad 3.0pre1

Tino Keitel linux-thinkpad@www.bm-soft.com
Thu, 11 Oct 2001 19:22:46 +0200


On Thursday, 11. October 2001 12:17, Tino Keitel wrote:
> On Friday,  5. October 2001 05:20, Thomas Hood wrote:
>
> ...
>
> > The main goal was to add devfs support.  So, devfs users, please
> > test!
>
> Since I had to reboot a few times yesterday I'm now running kernel 2.4.10
> with devfs on my Debian Potato system with kernel-2.4-packages.
>
> I have this problem:
> > root < @thinkpad:/root$ ll -d /dev/thinkpad/
>
> drw-rw-rw-    1 root     adm             0 Oct 10 19:58 /dev/thinkpad/
>
> As you can see, no x permissions, so tpctl will only work as root since an
> ordinary user is not allowed to look into /dev/thinkpad. The files inside
>
> /dev/thinkpad have the right permissions:
> > root < @thinkpad:/root$ ll /dev/thinkpad/
>
> total 0
> drw-rw-rw-    1 root     adm             0 Oct 10 19:58 .
> drwxr-xr-x    1 root     root            0 Jan  1  1970 ..
> crw-rw-r--    1 root     thinkpad   8,   2 Jan  1  1970 rtcmosram
> crw-rw-r--    1 root     thinkpad   8,   1 Jan  1  1970 smapi
> crw-rw-r--    1 root     thinkpad  10, 170 Jan  1  1970 thinkpad
>
> What did I wrong? Or should I tweak the 'mode' argument of devfs_mkdir? I'm
> not sure about that, so I kept my hands off.

Ooops, sorry. I mixed up devfs_mk_dir() and devfs_mkdir().

Appart from that, /dev/thinkpad now has 777 permisions (I really don't know 
why). Now all I can say is: works perfectly.

Tino

----- The Linux ThinkPad mailing list -----
The linux-thinkpad mailing list home page is at:
http://www.bm-soft.com/~bm/tp_mailing.html