📄 wpa_priv.8
字号:
.\" This manpage has been automatically generated by docbook2man .\" from a DocBook document. This tool can be found at:.\" <http://shell.ipoline.com/~elmert/comp/docbook2X/> .\" Please send any bug reports, improvements, comments, patches, .\" etc. to Steve Cheng <steve@ggi-project.org>..TH "WPA_PRIV" "8" "10 August 2008" "" "".SH NAMEwpa_priv \- wpa_supplicant privilege separation helper.SH SYNOPSIS\fBwpa_priv\fR [ \fB-c \fIctrl path\fB\fR ] [ \fB-Bdd\fR ] [ \fB-P \fIpid file\fB\fR ] [ \fBdriver:ifname \fI[driver:ifname ...]\fB\fR ].SH "OVERVIEW".PP\fBwpa_priv\fR is a privilege separation helper thatminimizes the size of \fBwpa_supplicant\fR code that needsto be run with root privileges..PPIf enabled, privileged operations are done in the wpa_priv processwhile leaving rest of the code (e.g., EAP authentication and WPAhandshakes) to operate in an unprivileged process (wpa_supplicant) thatcan be run as non-root user. Privilege separation restricts the effectsof potential software errors by containing the majority of the code in anunprivileged process to avoid the possibility of a full systemcompromise..PP\fBwpa_priv\fR needs to be run with network adminprivileges (usually, root user). It opens a UNIX domain socket for eachinterface that is included on the command line; any other interface willbe off limits for \fBwpa_supplicant\fR in this kind ofconfiguration. After this, \fBwpa_supplicant\fR can be run asa non-root user (e.g., all standard users on a laptop or as a specialnon-privileged user account created just for this purpose to limit accessto user files even further)..SH "EXAMPLE CONFIGURATION".PPThe following steps are an example of how to configure\fBwpa_priv\fR to allow users in the\fBwpapriv\fR group to communicate with\fBwpa_supplicant\fR with privilege separation:.PPCreate user group (e.g., wpapriv) and assign users thatshould be able to use wpa_supplicant into that group..PPCreate /var/run/wpa_priv directory for UNIX domain sockets andcontrol user access by setting it accessible only for the wpaprivgroup:.sp.RS.nfmkdir /var/run/wpa_privchown root:wpapriv /var/run/wpa_privchmod 0750 /var/run/wpa_priv.fi.RE.PPStart \fBwpa_priv\fR as root (e.g., from systemstartup scripts) with the enabled interfaces configured on thecommand line:.sp.RS.nfwpa_priv -B -c /var/run/wpa_priv -P /var/run/wpa_priv.pid wext:wlan0.fi.RE.PPRun \fBwpa_supplicant\fR as non-root with a userthat is in the wpapriv group:.sp.RS.nfwpa_supplicant -i ath0 -c wpa_supplicant.conf.fi.RE.SH "COMMAND ARGUMENTS".TP\fB-c ctrl path\fRSpecify the path to wpa_priv control directory(Default: /var/run/wpa_priv/)..TP\fB-B\fRRun as a daemon in the background..TP\fB-P file\fRSet the location of the PIDfile..TP\fBdriver:ifname [driver:ifname ...]\fRThe <driver> string dictates which of thesupported \fBwpa_supplicant\fR driver backends is to beused. To get a list of supported driver types see wpa_supplicant help(e.g, wpa_supplicant -h). The driver backend supported by most gooddrivers is \fBwext\fR\&.The <ifname> string specifies which networkinterface is to be managed by \fBwpa_supplicant\fR(e.g., wlan0 or ath0).\fBwpa_priv\fR does not use the network interfacebefore \fBwpa_supplicant\fR is started, so it is fine toinclude network interfaces that are not available at the time wpa_privis started. wpa_priv can control multiple interfaces with one process,but it is also possible to run multiple \fBwpa_priv\fRprocesses at the same time, if desired..SH "SEE ALSO".PP\fBwpa_supplicant\fR(8).SH "LEGAL".PPwpa_supplicant is copyright (c) 2003-2007,Jouni Malinen <j@w1.fi> andcontributors.All Rights Reserved..PPThis program is dual-licensed under both the GPL version 2and BSD license. Either license may be used at your option.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -