Re: how to change the permission of /dev/ node from kernel mode.

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

 



Hi

On Mon, 2008-11-24 at 15:39 +0100, Belisko Marek wrote:
> Hi,
> 
> 
> On Mon, Nov 24, 2008 at 12:32 PM, Mohamed Thalib .H
> <h.mohamedthalib@xxxxxxxxxxxxx> wrote:
> > Hi All,
> >
> >        I have created a /dev/ node using class_create() and
> > class_device_create() APIs,
> >
> > by default the created node is having root only permisson as below
> >
> > crw-rw---- 1 root root 251, 0 2008-11-24 16:56 /dev/sp
> >
> > how can I give acces permission so every one can access that node
> >
> You can do that with macro CLASS_ATTR(name, mode, show, store)
> 
> modes could be found at linux/stat.h (lines approx : 50
> 
> > I dont want to use chmod in user space intead it should be done in the
> > kernel mode itsel .Is the any way to this stuff.
> >
> >
> >
> > --
> > Regards,
> > Mohamed Thalib .H
> >
> >
> > --
> > To unsubscribe from this list: send an email with
> > "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
> > Please read the FAQ at http://kernelnewbies.org/FAQ
> >
> >
> 
> thanks
> 
> marek


Thanks Marek,

	This is what I exactly needed. Thanks for the help..
-- 
Regards,
Mohamed Thalib .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