X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=authbind.git;a=blobdiff_plain;f=authbind.1;h=46abb3ab132b5d04b2759a8838bb216c68daf713;hp=092289d5fdd1740711cc10db5172444f92a2bbb7;hb=1fe15d20963240b9cf021602eac927dfe97f7aaa;hpb=a2521aede92f9f335874de3574cd8827394ba384 diff --git a/authbind.1 b/authbind.1 index 092289d..46abb3a 100644 --- a/authbind.1 +++ b/authbind.1 @@ -17,8 +17,6 @@ .\" along with this program; if not, write to the Free Software Foundation, .\" Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. .\" -.\" $Id$ -.\" .TH AUTHBIND 1 "30th August 1998" "Debian Project" "Debian Linux manual" .SH NAME authbind \- bind sockets to privileged ports without root @@ -88,10 +86,14 @@ Secondly, if that test fails to resolve the matter, (any protocol) or failing that .BI /etc/authbind/byaddr/ addr : port (IPv4 only) -is tested, in the same manner as above. (Here +is tested, in the same manner as above. Here .I addr is as from -.BR inet_ntop .) +.BR inet_ntop . +Since this is not completely predictable for IPv6, +for IPv6 a variant of +.I addr +is also tested which does not contain any ommitted zeroes or colons. .PP Thirdly, if the question is still unresolved, the file .BI /etc/authbind/byuid/ uid @@ -103,21 +105,23 @@ will return .RI ( "Operation not permitted" ", or " "Not owner" ). If the file does exist it will be searched for a line of the form .nf -.IR addrmin [\fB\-\fR addrmax ]\fB,\fR portmin \fB\-\fR portmax +.IR addrmin [\fB\-\fR addrmax ]\fB,\fR portmin [\fB\-\fR portmax ] +.IR addr [\fB/\fR length ]\fB,\fR portmin [\fB\-\fR portmax ] .IB addr4 / length : portmin , portmax .fi matching the request. The first form requires that the address lies in the relevant range (inclusive at both ends). -The second form requires that the initial +The second and third forms require that the initial .I length bits of .I addr match those in the proposed .B bind -call and is only available for IPv4. -Addresses can -be in any form acceptable to inet_pton. In both cases +call. The third form is only available for IPv4 since IPv6 addresses +contain colons. +Addresses in the byuid file can +be in any form acceptable to inet_pton. In all cases the proposed port number must lie is in the inclusive range specified. If such a line is found then the binding is authorised. Otherwise it is not, and @@ -317,7 +321,7 @@ was specified. .SH AUTHOR .B authbind and this manpage were written by Ian Jackson. They are -Copyright (C)1998 +Copyright (C)1998,2012 by him and released under the GNU General Public Licence; there is NO WARRANTY. See .B /usr/doc/authbind/copyright