Re: [PATCH 0/2] login: close multiple race condition

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

 



Le vendredi 29 janvier 2010 à 14:16 +0100, Karel Zak a écrit :
> On Fri, Jan 29, 2010 at 12:13:41PM +0100, Yann Droneaud wrote:
> > Le jeudi 28 janvier 2010 à 16:52 +0100, Karel Zak a écrit :
> > > On Mon, Jan 25, 2010 at 11:12:08PM +0100, Yann Droneaud wrote:
> > > > While trying to do some fun stuff with /dev mounted with permission 01777
> > > > when devtmpfs is used, I've found some race in login which are easy to stop.
> > > 
> > >  Do you have any reproducible example? I'd like to test it.
> > > 
> > 
> > Hi,
> > 
> > Since kernel 2.6.32.7 is out with the proper fix to devtmpfs, you will
> > have to setup yourself /dev to permissions mode 01777.
> 
>  I see
> 
>     if ! mount -t devtmpfs -omode=0755 udev /dev >/dev/null 2>&1; then
> 
>  in dracut code.

Option mode=0755 seems not used by devtmpfs, it was using the default
tmpfs permissions.

See this thread:
http://www.spinics.net/lists/hotplug/msg02948.html

>  I hope that nobody use writeable /dev in some distribution.
> 

Sadly ...

Regards.

-- 
Yann Droneaud

--
To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux