From 7bf3e29007350897cb708da01df845f4d58b4173 Mon Sep 17 00:00:00 2001
From: Laurent Bercot
- int prot_readgroups (char const *name, gid_t *tab, unsigned int max)
-Reads the group database (normally /etc/group, but it can be
-altered via NSS) to get the list of supplementary groups for user name.
-Stores that list into the array pointed to by tab, which must be
-preallocated. Stores at most max elements into tab.
-Returns -1 and sets errno if it fails; else, returns the number of elements actually
-stored into tab.
-
- int prot_grps (char const *name)
-Sets the kernel-maintained list of supplementary groups for the current process
-to the list of supplementary groups for user name according to the
-group database. This is a privileged operation.
-Returns -1 and sets errno if it fails; returns 0 if it succeeds.
-
-- cgit v1.2.3