]> git.ipfire.org Git - thirdparty/man-pages.git/blobdiff - man2/getgroups.2
user_namespaces.7: Minor rewordings of recently added text
[thirdparty/man-pages.git] / man2 / getgroups.2
index ff5db8ad60a32393175c659ce5b86bb0944261c3..ebe0d60cd1dcdaedbf5caa8dacb1afead8a55577 100644 (file)
@@ -29,7 +29,7 @@
 .\" 2008-05-03, mtk, expanded and rewrote parts of DESCRIPTION and RETURN
 .\"     VALUE, made style of page more consistent with man-pages style.
 .\"
-.TH GETGROUPS 2 2017-09-15 "Linux" "Linux Programmer's Manual"
+.TH GETGROUPS 2 2019-03-06 "Linux" "Linux Programmer's Manual"
 .SH NAME
 getgroups, setgroups \- get/set list of supplementary group IDs
 .SH SYNOPSIS
@@ -93,6 +93,13 @@ The
 argument specifies the number of supplementary group IDs
 in the buffer pointed to by
 .IR list .
+A process can drop all of its supplementary groups with the call:
+.PP
+.in +4n
+.EX
+setgroups(0, NULL);
+.EE
+.in
 .SH RETURN VALUE
 On success,
 .BR getgroups ()