Search Linux Wireless

Re: [PATCH] rfkill: create useful userspace interface

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

 



On Thu, 04 Jun 2009, Marcel Holtmann wrote:
> > > > > Forget about this EPO crap. That is just a stupid concept anyway.
> > > > 
> > > > Is it?  So, if I use the _hardware switch_ on my laptop to kill all
> > > > internal radios, it shouldn't be enforced by the OS on extra radios I
> > > > plugged?  Or on shitty internal WLAN cards that doesn't tie properly to
> > > > the mini-pci and mini-pcie hardware kill lines?
> > > > 
> > > > And any userspace PoS program can decide to bring up such radios that
> > > > are not hardware-killed even if I am clearly trying to disable them all?
> > > 
> > > You hardkilled.  Of course it should bring down everything.  If you
> > > don't want to hardkill, then disable specific radios via /sys or some
> > > UI.  The hardswitch is the "eject" button.
> > 
> > That's exactly my point.  I want EPO to mean "no, you cannot turn this crap
> > on, GO AWAY" for anyone but root (or whomever SELinux allowed to do it,
> > etc).
> 
> let me repeat, this is what you want and that is policy. Feel free to
> implement that in userspace. Leave such policy out of the kernel.

EPO is not policy, it is functionality.  Entering EPO and going out of
EPO state would be policy, though.

What happens while in EPO state is NOT policy.  The very definition of
EPO is that, once enabled, it cannot be overriden until it is disabled
(and it is usual to have strong rules for how it can be disabled, but
this is not important right now).  EPO is a term from real world
engineering, its meaning is set in stone.

You can remove the EPO functionality and add a "switch all radios off"
and "switch all radios on" accell commands.  But that's all you can do
if you depend on userspace.  It will -not- be EPO.

You can have EPO in the kernel, and have userspace command the kernel to
enter and exit EPO state.

I have more to say on that, and will do so in a separate email, but I
don't have the time to properly compose it right now.

-- 
  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[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