Search Linux Wireless

Re: [PATCH] rfkill: create useful userspace interface

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

 



Hi Henrique,

> > > > > > 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 fully disagree with you here and your concept of EPO and how it is
suppose to work is fully flawed. EPO is a policy and if you define it as
all radios go off, then that is fine, but again it is your policy. It is
not mine and with us two disagreeing on this, it makes it clear that it
should not be done inside the kernel.

In addition to that, the EPO only works if your RFKILL lines are
actually hardwired in system. If it involves any kind of software
besides firmware (that includes ACPI to some sort) it makes no
difference whatsoever.

Also there is no problem in doing this in userspace and have proper
enforcement for this. I did mention Unix access rights and SELinux
before and the same applies here. If you wanna enforce EPO on all soft
kill states, then you have to build your system the right way. And you
certainly can do this now with /dev/rfkill.

Regards

Marcel


--
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