X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/checkpath/blobdiff_plain/972ca7cda65ce3fc9f150c20a56ad4836f3a7414..refs/heads/mdw/privgrp:/utils.h?ds=sidebyside diff --git a/utils.h b/utils.h index fc29aee..0b2a74a 100644 --- a/utils.h +++ b/utils.h @@ -51,6 +51,21 @@ extern void allowgroup(struct checkpath */*cp*/, const char */*gname*/); +/* --- @private_group@ --- * + * + * Arguments: @gid_t *gid_out@ = where to put the group id + * @int verbose@ = verbosity level + * + * Returns: Zero on success, %$-1$% if the user's group is not private. + * + * Use: If the user's primary group has no other configured members, + * then set @*gid_out@ to its gid and return zero. Otherwise, + * report a message if the verbosity level is sufficiently high, + * and return %$-1$%, + */ + +extern int private_group(gid_t */*gid_out*/, int /*verbose*/); + /*----- That's all, folks -------------------------------------------------*/ #ifdef __cplusplus