Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
wpa_supplicant: useflag privsep configuration help needed
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
geki
Advocate
Advocate


Joined: 13 May 2004
Posts: 2387
Location: Germania

PostPosted: Sat Dec 09, 2017 6:32 pm    Post subject: wpa_supplicant: useflag privsep configuration help needed Reply with quote

Hi all!

I would like to enable useflag privsep on wpa_supplicant.
The ebuild does nothing but install the wpa_priv binary.
The configuration example[0] is a bit thin.

It looks like the init script would need an update:

- Use wpa_priv instead of wpa_supplicant
- add group and paths (i.e.: /var/run/...)
- ...?

Anyone actually uses privilege separation for wpa_supplicant?
What would need to be done?


Well, I just do not want to disconnect my laptop from network for fun.
The cabled network link is unusable - disconnects every other second. :P


[0] https://linux.die.net/man/8/wpa_priv
_________________
hear hear
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 3685

PostPosted: Sun Dec 10, 2017 6:00 pm    Post subject: Re: wpa_supplicant: useflag privsep configuration help neede Reply with quote

geki wrote:
Hi all!

I would like to enable useflag privsep on wpa_supplicant.

???

Code:
equery u wpa_supplicant
[ Legend : U - final flag setting for installation]
[        : I - package is installed with flag     ]
[ Colors : set, unset                             ]
 * Found these USE flags for net-wireless/wpa_supplicant-2.6-r3:
 U I
 - - ap                 : Add support for access point mode
 - - dbus               : Enable dbus support for anything that needs it (gpsd, gnomemeeting, etc)
 - - eap-sim            : Add support for EAP-SIM authentication algorithm
 - - fasteap            : Add support for FAST-EAP authentication algorithm
 - - gnutls             : Add support for net-libs/gnutls (TLS 1.0 and SSL 3.0 support)
 + + hs2-0              : Add support for 802.11u and Passpoint for HotSpot 2.0
 - - libressl           : Use dev-libs/libressl as SSL provider (might need ssl USE flag), packages should not depend on this USE flag
 - - p2p                : Add support for Wi-Fi Direct mode
 + + qt5                : Add support for the Qt 5 application and UI framework
 + + readline           : Enable support for libreadline, a GNU line-editing library that almost everyone wants
 - - smartcard          : Add support for smartcards
 + + ssl                : Add support for Secure Socket Layer connections
 - - tdls               : Add support for Tunneled Direct Link Setup (802.11z)
 - - uncommon-eap-types : Add support for GPSK, SAKE, GPSK_SHA256, IKEV2 and EKE
 + + wps                : Add support for Wi-Fi Protected Setup
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6227
Location: Room 101

PostPosted: Sun Dec 10, 2017 6:34 pm    Post subject: Reply with quote

charles17 ... in such cases you need to provide the =*-<version>-<revision>:

equery -NC u =net-wireless/wpa_supplicant-2.6-r4 | grep privsep:
 - - privsep   : <unknown>

@geki ... it would require significant changes to the current initd script, essencially you would have to split it into two parts, one starting wpa_priv, and a second starting the wpa_supplicant process with a chosen UID/GID. I've thought about doing this but I've neither had time, nor inclination, to look any further as on my inital look see I couldn't see an easy way to keep the current single init as is while incorporating those changes (prompting me to think that these wouldn't get merged into ::gentoo).

best ... khay
Back to top
View user's profile Send private message
geki
Advocate
Advocate


Joined: 13 May 2004
Posts: 2387
Location: Germania

PostPosted: Sun Dec 10, 2017 7:59 pm    Post subject: Reply with quote

Code:
 - - privsep            : Enable wpa_priv privledge separation binary
@khayyam yes, looks that way and I neither got time. :o
So we have to wait for gentoo devs to finish privilege separation integration.

p.s.: hmm, there is a double-typo in description.
_________________
hear hear
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum