]> git.proxmox.com Git - mirror_lxc.git/blobdiff - src/lxc/utils.h
utils: make lxc_setgroups() return bool
[mirror_lxc.git] / src / lxc / utils.h
index 51cfe4c85f03a4c34dadda0ee5ff546190694e03..e6a82978f2d4da6158c4c418a4b096059aaf8137 100644 (file)
@@ -358,9 +358,11 @@ extern int lxc_preserve_ns(const int pid, const char *ns);
 /* Check whether a signal is blocked by a process. */
 extern bool task_blocks_signal(pid_t pid, int signal);
 
-/* Switch to a new uid and gid. */
+/* Switch to a new uid and gid.
+ * If LXC_INVALID_{G,U}ID is passed then the set{g,u}id() will not be called.
+ */
 extern int lxc_switch_uid_gid(uid_t uid, gid_t gid);
-extern int lxc_setgroups(int size, gid_t list[]);
+extern bool lxc_setgroups(int size, gid_t list[]);
 
 /* Find an unused loop device and associate it with source. */
 extern int lxc_prepare_loop_dev(const char *source, char *loop_dev, int flags);