aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Somers <asomers@FreeBSD.org>2023-12-05 23:23:29 +0000
committerAlan Somers <asomers@FreeBSD.org>2023-12-06 16:51:37 +0000
commit6b96125afdf245ae61dd82b59891ad0d6aab0066 (patch)
treea3d66d977e1982829cfea3da219489168ca995f0
parent4c84c69ba308b7758d07dc8845b13922ed667e02 (diff)
downloadsrc-6b96125afdf245ae61dd82b59891ad0d6aab0066.tar.gz
src-6b96125afdf245ae61dd82b59891ad0d6aab0066.zip
cap_net.3: remove a copypasta
This line appears to have been copied from cap_sysctl.3. While I'm here, reorder and reword the description of cap_net_limit a bit. [skip ci] MFC after: 2 weeks Sponsored by: Axcient Reviewed by: oshogbo Differential Revision: https://reviews.freebsd.org/D42919
-rw-r--r--lib/libcasper/services/cap_net/cap_net.39
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/libcasper/services/cap_net/cap_net.3 b/lib/libcasper/services/cap_net/cap_net.3
index 97a044e3f950..534d28c2ef7c 100644
--- a/lib/libcasper/services/cap_net/cap_net.3
+++ b/lib/libcasper/services/cap_net/cap_net.3
@@ -21,7 +21,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd November 15, 2021
+.Dd December 5, 2023
.Dt CAP_NET 3
.Os
.Sh NAME
@@ -188,17 +188,14 @@ any port will be accepted in the
.Fn cap_connect
function.
.Pp
+The
.Fn cap_net_limit
-applies a set of sysctl limits to the capability, denying access to sysctl
-variables not belonging to the set.
+will consume and apply the limits.
.Pp
Once a set of limits is applied, subsequent calls to
.Fn cap_net_limit
will fail unless the new set is a subset of the current set.
.Pp
-The
-.Fn cap_net_limit
-will consume the limits.
If the
.Fn cap_net_limit
was not called the rights may be freed using