From f14f55d6221e8a1bba3eddfbe1079518536d074c Mon Sep 17 00:00:00 2001 From: Ed Maste Date: Sun, 11 Sep 2016 01:11:47 +0000 Subject: [PATCH] cap_enter.2: describe flag returned by cap_getmode Previously the flag returned by cap_getmode was not described explicitly in the man page. Reviewed by: wblock Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D7822 --- lib/libc/sys/cap_enter.2 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/libc/sys/cap_enter.2 b/lib/libc/sys/cap_enter.2 index 807d7eda462..6879b4b5782 100644 --- a/lib/libc/sys/cap_enter.2 +++ b/lib/libc/sys/cap_enter.2 @@ -28,7 +28,7 @@ .\" .\" $FreeBSD$ .\" -.Dd March 27, 2014 +.Dd September 10, 2016 .Dt CAP_ENTER 2 .Os .Sh NAME @@ -84,6 +84,11 @@ to create a runtime environment inside the sandbox that has as few implicitly acquired rights as possible. .Sh RETURN VALUES .Rv -std cap_enter cap_getmode +.Pp +When the process is in capability mode, +.Fn cap_getmode +sets the flag to a non-zero value. +A zero value means the process is not in capability mode. .Sh ERRORS The .Fn cap_enter