summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorajacoutot <ajacoutot@openbsd.org>2012-08-04 15:30:48 +0000
committerajacoutot <ajacoutot@openbsd.org>2012-08-04 15:30:48 +0000
commitfb992bb4440d116b7ed5425f27ffc99bd9fa09c2 (patch)
tree45d5a59c0e02fa0630003dae4e77a55c22b865ea
parentAdd a new rc_usercheck variable (default to YES). When set to no, root (diff)
downloadwireguard-openbsd-fb992bb4440d116b7ed5425f27ffc99bd9fa09c2.tar.xz
wireguard-openbsd-fb992bb4440d116b7ed5425f27ffc99bd9fa09c2.zip
Document rc_usercheck.
ok todd@
-rw-r--r--share/man/man8/rc.subr.812
1 files changed, 10 insertions, 2 deletions
diff --git a/share/man/man8/rc.subr.8 b/share/man/man8/rc.subr.8
index 4361a3a9e11..cf7e30ef0d1 100644
--- a/share/man/man8/rc.subr.8
+++ b/share/man/man8/rc.subr.8
@@ -1,4 +1,4 @@
-.\" $OpenBSD: rc.subr.8,v 1.18 2011/12/13 00:09:52 schwarze Exp $
+.\" $OpenBSD: rc.subr.8,v 1.19 2012/08/04 15:30:48 ajacoutot Exp $
.\"
.\" Copyright (c) 2011 Robert Nagy, Antoine Jacoutot, Ingo Schwarze
.\" All rights reserved.
@@ -24,7 +24,7 @@
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd $Mdocdate: December 13 2011 $
+.Dd $Mdocdate: August 4 2012 $
.Dt RC.SUBR 8
.Os
.Sh NAME
@@ -121,6 +121,14 @@ For example, if rc_reload=NO is set in the
script, and
.Ic rc_cmd
is called for the reload action, an error will be raised.
+Similarly, the special variable
+.Ar rc_usercheck
+must be set to
+.Ar NO
+if the
+.Cm check
+.Ar action
+requires root privileges.
.Pp
The
.Ar action