Re: DEVFS permissions

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

 



On Mon, Sep 14, 2009 at 08:38:48AM -0400, Shankar Ganesh wrote:
> Hi ,
> 
> When we create a node under devfs ,

There is no such thing as devfs anymore.

> 
>             hwcdev_class = class_create(THIS_MODULE, DRVNAME);
>             device_create(hwcdev_class, NULL, MKDEV(dev_major, 0), dev,
> DEVNAME);
> 
>  the  node is created with default permission of 600 (root=rw, others nil) ,
> 
> crw------------   root     root    252  , ....
> 
> How do i make permission setting automatically while creating node ? (i need
> 666 and don't want to execute chmod 666 /dev/mydev )

Create a udev rule to provide the proper permission for this device.

thanks,

greg k-h

--
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