Lines Matching refs:machine
329 Machine *machine, in machine_start_scope() argument
338 assert(machine); in machine_start_scope()
339 assert(machine->leader > 0); in machine_start_scope()
340 assert(!machine->unit); in machine_start_scope()
342 escaped = unit_name_escape(machine->name); in machine_start_scope()
351 machine->manager->bus, in machine_start_scope()
372 …description = strjoina(machine->class == MACHINE_VM ? "Virtual Machine " : "Container ", machine->… in machine_start_scope()
378 "PIDs", "au", 1, machine->leader, in machine_start_scope()
404 machine->unit = TAKE_PTR(unit); in machine_start_scope()
405 machine->referenced = true; in machine_start_scope()
412 return free_and_strdup(&machine->scope_job, job); in machine_start_scope()
741 Machine *machine, in machine_owns_uid_internal() argument
752 assert(machine); in machine_owns_uid_internal()
757 if (machine->class != MACHINE_CONTAINER) in machine_owns_uid_internal()
760 p = procfs_file_alloca(machine->leader, map_file); in machine_owns_uid_internal()
806 int machine_owns_uid(Machine *machine, uid_t uid, uid_t *ret_internal_uid) { in machine_owns_uid() argument
807 return machine_owns_uid_internal(machine, "uid_map", uid, ret_internal_uid); in machine_owns_uid()
810 int machine_owns_gid(Machine *machine, gid_t gid, gid_t *ret_internal_gid) { in machine_owns_gid() argument
811 … return machine_owns_uid_internal(machine, "gid_map", (uid_t) gid, (uid_t*) ret_internal_gid); in machine_owns_gid()
815 Machine *machine, in machine_translate_uid_internal() argument
826 assert(machine); in machine_translate_uid_internal()
829 if (machine->class != MACHINE_CONTAINER) in machine_translate_uid_internal()
834 p = procfs_file_alloca(machine->leader, map_file); in machine_translate_uid_internal()
869 int machine_translate_uid(Machine *machine, gid_t uid, gid_t *ret_host_uid) { in machine_translate_uid() argument
870 return machine_translate_uid_internal(machine, "uid_map", uid, ret_host_uid); in machine_translate_uid()
873 int machine_translate_gid(Machine *machine, gid_t gid, gid_t *ret_host_gid) { in machine_translate_gid() argument
874 … return machine_translate_uid_internal(machine, "gid_map", (uid_t) gid, (uid_t*) ret_host_gid); in machine_translate_gid()