chiark / gitweb /
chkpath.c, tmpdir.c, utils.c: Add option to trust private groups.
[checkpath] / utils.h
diff --git a/utils.h b/utils.h
index fc29aee246cee40c70374746c2ea0fd72fefef3a..0b2a74a643f385edaabd9ec094ec1893f927a020 100644 (file)
--- a/utils.h
+++ b/utils.h
 
 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