From f4cf20daec4bb54b55df4b002d5bb67ffcc3b342 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Wed, 17 Nov 2010 11:04:47 +0100 Subject: [PATCH] oping(8): Document the new SetUID behavior in connection with the "-f" option. --- src/mans/oping.pod | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/src/mans/oping.pod b/src/mans/oping.pod index dba318c..e076299 100644 --- a/src/mans/oping.pod +++ b/src/mans/oping.pod @@ -66,10 +66,18 @@ Set the outgoing network device to use. Instead of specifying hostnames on the command line, read them from I. If I is B<->, read from C. -If the real user ID (as returned by L) and the effective user ID (as +If I is installed with the SetUID-bit, it will set the effective UID to +the real UID before opening the file. In the special (but common) case that +I is owned by the super-user (UIDE0), this means that privileges +are temporarily dropped before opening the file, in order to prevent users from +reading arbitrary files on the system. + +If your system doesn't provide I (this was an optional +feature before POSIXE2001), the behavior is different because it is not +possible to I drop privileges. The alternative behavior is: If the +real user ID (as returned by L) and the effective user ID (as returned by L) differ, the only argument allowed for this option is -"-" (i.Ee. standard input). This is meant to avoid security issues when -I is installed with the SUID-bit. +"-" (i.e. standard input). =item B<-Q> I @@ -78,7 +86,7 @@ somewhat tricky option, since the meaning of the bits in the IPv4 header has been revised several times. The currently recommended method is I which is used in -IPv6 headers as well. There are shortcuts for 13Epredefined +IPv6 headers as well. There are shortcuts for various predefined I (PHBs): =over 4 @@ -182,7 +190,7 @@ L, L, L =head1 AUTHOR -liboping is written by Florian octo Forster Eocto at verplant.orgE. +liboping is written by Florian octo Forster Eff at octo.itE. Its homepage can be found at L. (c) 2005-2010 by Florian octo Forster. -- 2.11.0