Re: How create a miscellaneous "crw-rw-rw-" device ?

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

 



Hi Stephan,

On Fri, Aug 13, 2010 at 2:58 PM, StephanT <stman937-linewbie@xxxxxxxxx> wrote:
>
> Hello,
>
> This question is related to a simple driver implementing a miscellaneous device
> under 2-6-32

...snip...

> Looks like the mode = 0666 was successfully passed to the kernel:
>
>> cat /sys/class/misc/lab1/uevent
> MAJOR=10
> MINOR=54
> DEVNAME=lab1
> DEVMODE=0666

Since udev is just a user-mode task, all of its file creation stuff
will be additionally affected by umask, including the creation of the
dev node for your device.

So you'll either need to modify your global umask, or add a udev rule
for your driver which explicitly sets the mode.

-- 
Dave Hylands
Shuswap, BC, Canada
http://www.DaveHylands.com/

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux