Re: sysfs vs. d80211 configuration

2006-08-15 Thread Johannes Berg
Johannes Berg wrote: Good point, that'll work. Then again, I want this to run on really tiny architectures and I'm thinking some of them might not have fork(), just vfork(). Hmm. Then again, on those platforms there is no real benefit from dropping privs, is there. Heh. johannes - To unsubscr

Re: sysfs vs. d80211 configuration

2006-08-15 Thread Johannes Berg
Alexey Toptygin wrote: Why not have the tool create a monitor interface, open it, and fork; the child drops privileges and does the reading, and the parent wait(2)s for the child and removes the interface once it has collected the child? Good point, that'll work. Then again, I want this to run

Re: sysfs vs. d80211 configuration

2006-08-14 Thread Mike Kershaw
On Mon, Aug 14, 2006 at 11:05:15PM +, Alexey Toptygin wrote: > On Mon, 14 Aug 2006, Johannes Berg wrote: > > >In my seemingly never-ending quest to actually use the d80211 stack for > >something useful I just wanted to write a small setuid tool that: > >* creates and opens a new monitor inter

Re: sysfs vs. d80211 configuration

2006-08-14 Thread Alexey Toptygin
On Mon, 14 Aug 2006, Johannes Berg wrote: In my seemingly never-ending quest to actually use the d80211 stack for something useful I just wanted to write a small setuid tool that: * creates and opens a new monitor interface * drops priviledges * ... does things with received frames ... (not int

sysfs vs. d80211 configuration

2006-08-14 Thread Johannes Berg
Hey, In my seemingly never-ending quest to actually use the d80211 stack for something useful I just wanted to write a small setuid tool that: * creates and opens a new monitor interface * drops priviledges * ... does things with received frames ... (not interesting for this discussion) * rem