git: b4caacbef0a4 - stable/13 - cap_net.3: remove a copypasta
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 19 Jan 2024 20:19:50 UTC
The branch stable/13 has been updated by asomers:
URL: https://cgit.FreeBSD.org/src/commit/?id=b4caacbef0a4e5180cd8d1bc5bddae8904719c32
commit b4caacbef0a4e5180cd8d1bc5bddae8904719c32
Author: Alan Somers <asomers@FreeBSD.org>
AuthorDate: 2023-12-05 23:23:29 +0000
Commit: Alan Somers <asomers@FreeBSD.org>
CommitDate: 2024-01-19 20:19:38 +0000
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]
Sponsored by: Axcient
Reviewed by: oshogbo
Differential Revision: https://reviews.freebsd.org/D42919
(cherry picked from commit 6b96125afdf245ae61dd82b59891ad0d6aab0066)
---
lib/libcasper/services/cap_net/cap_net.3 | 9 +++------
1 file 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 ad4b6f4e4c90..2851c2f023a0 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 August 15, 2020
+.Dd December 5, 2023
.Dt CAP_NET 3
.Os
.Sh NAME
@@ -186,17 +186,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