aboutsummaryrefslogtreecommitdiffstats
path: root/doc/cap_iab.3
diff options
context:
space:
mode:
Diffstat (limited to 'doc/cap_iab.3')
-rw-r--r--doc/cap_iab.318
1 files changed, 18 insertions, 0 deletions
diff --git a/doc/cap_iab.3 b/doc/cap_iab.3
index a453428..7e87a0f 100644
--- a/doc/cap_iab.3
+++ b/doc/cap_iab.3
@@ -7,6 +7,8 @@ cap_iab_t cap_iab_init(void);
cap_iab_t cap_iab_get_proc(void);
+cap_iab_t cap_iab_get_pid(pid_t pid);
+
int cap_iab_set_proc(cap_iab_t iab);
char *cap_iab_to_text(cap_iab_t iab);
@@ -16,6 +18,8 @@ cap_iab_t cap_iab_from_text(const char *text);
cap_flag_value_t cap_iab_get_vector(cap_iab_t iab, cap_iab_vector_t vec,
cap_value_t val);
+int cap_iab_compare(cap_iab_t a, cap_iab_t b);
+
int cap_iab_set_vector(cap_iab_t iab, cap_iab_vector_t vec, cap_value_t val,
cap_flag_value_t enable);
@@ -75,6 +79,11 @@ returns a copy of the IAB value for the current process. The returned
cap_iab_t should be freed with
.BR cap_free (3).
.sp
+.BR cap_iab_get_pid ()
+returns a copy of the IAB value for the specified process. The returned
+cap_iab_t should be freed with
+.BR cap_free (3).
+.sp
.BR cap_iab_set_proc ()
can be used to set the IAB value carried by the current process. Such
a setting will fail if the process is insufficiently capable. The
@@ -107,6 +116,15 @@ for the \fIpam_cap.so\fP config file.
can be used to determine the specific capability value of an IAB
vector.
.sp
+.BR cap_iab_compare ()
+can be used to compare two cap_iab_t tuples. When the return value is
+non-zero, the macro
+.B CAP_IAB_DIFFERS
+.RI ( status ", " vector )
+evaluates to non-zero if the returned status differs in its
+.I vector
+components.
+.sp
.BR cap_iab_set_vector ()
can be used to set a specific vector value to the enable setting.
.BR cap_iab_fill ()