Skip to content

Commit

Permalink
cap_net.3: remove a copypasta
Browse files Browse the repository at this point in the history
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
  • Loading branch information
asomers committed Dec 6, 2023
1 parent 4c84c69 commit 6b96125
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions lib/libcasper/services/cap_net/cap_net.3
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 6b96125

Please sign in to comment.