From e4ef10313a9f1001111c086c4381a2928c254ad5 Mon Sep 17 00:00:00 2001 From: 0x1eef <0x1eef@protonmail.com> Date: Thu, 27 Jun 2024 01:32:51 -0300 Subject: [PATCH] Update docs --- lib/bsd/capsicum.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/bsd/capsicum.rb b/lib/bsd/capsicum.rb index 45a1ee1..cfe7ca2 100644 --- a/lib/bsd/capsicum.rb +++ b/lib/bsd/capsicum.rb @@ -47,9 +47,10 @@ module BSD::Capsicum # Restrict the capabilities of a file descriptor # # @see https://man.freebsd.org/cgi/man.cgi?query=cap_rights_limit&apropos=0&sektion=2&format=html cap_rights_limit(2) + # @see {BSD::Capsicum::Constants} See Constants for a full list of capabilities # @example - # # Allow: READ, WRITE on standard output - # BSD::Capsicum.set_rights!(STDOUT, [:CAP_READ, :CAP_WRITE]) + # # Restrict capabilities of STDOUT to read / write + # BSD::Capsicum.set_rights!(STDOUT, %i[CAP_READ CAP_WRITE]) # @raise [SystemCallError] # Might raise a subclass of SystemCallError # @param [#to_i] io