Search Linux Wireless

Re: [RFC] Simulate medium behavior

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

 



On Thu, 2009-05-14 at 22:50 +0200, Daniel Wagner wrote:

> > >  		data->debugfs_ps = debugfs_create_file("ps", 0666,
> > >  						       data->debugfs, data,
> > >  						       &hwsim_fops_ps);
> > > +		data->debugfs_group = debugfs_create_file("group", 0666,
> > > +							data->debugfs, data,
> > > +							&hwsim_fops_group);
> > 
> > Good thing this is a test module only... debugfs files with user access
> > permissions are a security risk. (a user can open the file and leave the
> > fd open, if root then rmmods future reads/writes to the fd by the user
> > crash the kernel)
> 
> There isn't much we can do about that, right? 

I generally just use 0600 to not allow regular users to open the files.
Maybe at some point, with the revoke() discussion, we'll actually get a
solution.

johannes

Attachment: signature.asc
Description: This is a digitally signed message part


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux