X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=src%2Flxc%2Futils.h;h=e6a82978f2d4da6158c4c418a4b096059aaf8137;hb=8af07f821c38224beac5f6d3e4970082c6732fc6;hp=51cfe4c85f03a4c34dadda0ee5ff546190694e03;hpb=b962868f4ca36b80dcc7bc4681586da0178eae0d;p=mirror_lxc.git diff --git a/src/lxc/utils.h b/src/lxc/utils.h index 51cfe4c85..e6a82978f 100644 --- a/src/lxc/utils.h +++ b/src/lxc/utils.h @@ -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);