Searched defs:uid (Results 1 - 8 of 8) sorted by relevance
/lxc/src/lxc/ |
H A D | caps.c | 130 uid_t uid = getuid(); local 134 if (!uid) { 139 if (uid && !euid) { 140 INFO("command is run as setuid root (uid : %d)", uid); 152 if (setresuid(uid, uid, uid)) { 153 ERROR("failed to change uid to '%d': %m", uid); [all...] |
H A D | attach_options.h | 97 * \note Set to \c -1 for default behaviour (init uid for userns 100 uid_t uid; member in struct:lxc_attach_options_t 141 /* .uid = */ (uid_t)-1, \
|
H A D | arguments.h | 96 uid_t uid; member in struct:lxc_arguments
|
H A D | attach.c | 462 static char *lxc_attach_getpwshell(uid_t uid) argument 526 if ((uid_t) value != uid) 600 ret = snprintf(uid_buf, sizeof(uid_buf), "%ld", (long) uid); 618 uid_t uid = (uid_t)-1; local 630 * about real uid. 634 uid = (uid_t) value; 640 if (uid != (uid_t)-1 && gid != (gid_t)-1) 648 if (uid != (uid_t)-1) 649 *init_uid = uid; 1150 if (options->uid ! 1298 uid_t uid; local [all...] |
H A D | utils.c | 2056 int lxc_switch_uid_gid(uid_t uid, gid_t gid) argument 2064 if (setuid(uid) < 0) { 2065 SYSERROR("Failed to switch to uid %d.", uid); 2068 NOTICE("Switched to uid %d.", uid);
|
H A D | conf.c | 3435 * return the host uid/gid to which the container root is mapped in 3602 * chown_mapped_root: for an unprivileged user with uid/gid X to 3656 INFO("%s: container root is our uid; no need to chown" ,__func__); 3697 ERROR("Error uid printing map string"); 3704 ERROR("Error uid printing map string"); 4487 uid_t uid, gid_t gid) 4489 int hostuid_mapped = mapped_hostid(uid, conf, ID_TYPE_UID); 4516 entry->hostid = (unsigned long) uid; 4557 ERROR("Out of memory building a new uid/gid map"); 4592 ERROR("Error adding self to container uid/gi 4486 idmap_add_id(struct lxc_conf *conf, uid_t uid, gid_t gid) argument 4650 unsigned int uid = 0, urange = 0, gid = 0, grange = 0; local [all...] |
/lxc/src/lxc/tools/ |
H A D | lxc_unshare.c | 83 static bool lookup_user(const char *optarg, uid_t *uid) argument 91 if (sscanf(optarg, "%u", uid) < 1) { 92 /* not a uid -- perhaps a username */ 101 *uid = pwent->pw_uid; 103 pwent = getpwuid(*uid); 105 ERROR("invalid uid %u", *uid); 116 uid_t *uid; member in struct:start_arg 127 uid_t uid = *start_arg->uid; local 160 uid_t uid = 0; /* valid only if (flags & CLONE_NEWUSER) */ local [all...] |
/lxc/src/lxc/bdev/ |
H A D | lxcbtrfs.h | 228 __le32 uid; member in struct:btrfs_inode_item
|
Completed in 38 milliseconds