Home
last modified time | relevance | path

Searched refs:lock_path (Results 1 – 2 of 2) sorted by relevance

/systemd-251/src/core/
Ddynamic-user.c213 char lock_path[STRLEN("/run/systemd/dynamic-uid/") + DECIMAL_STR_MAX(uid_t) + 1]; in pick_uid() local
263 xsprintf(lock_path, "/run/systemd/dynamic-uid/" UID_FMT, candidate); in pick_uid()
268 … lock_fd = open(lock_path, O_CREAT|O_RDWR|O_NOFOLLOW|O_CLOEXEC|O_NOCTTY, 0600); in pick_uid()
294 (void) unlink(lock_path); in pick_uid()
306 (void) unlink(lock_path); in pick_uid()
354 char lock_path[STRLEN("/run/systemd/dynamic-uid/") + DECIMAL_STR_MAX(uid_t) + 1]; in unlink_uid_lock() local
359 xsprintf(lock_path, "/run/systemd/dynamic-uid/" UID_FMT, uid); in unlink_uid_lock()
360 (void) unlink(lock_path); in unlink_uid_lock()
698 char lock_path[STRLEN("/run/systemd/dynamic-uid/") + DECIMAL_STR_MAX(uid_t) + 1]; in dynamic_user_lookup_uid() local
710 xsprintf(lock_path, "/run/systemd/dynamic-uid/" UID_FMT, uid); in dynamic_user_lookup_uid()
[all …]
/systemd-251/src/nspawn/
Dnspawn.c4058 char lock_path[STRLEN("/run/systemd/nspawn-uid/") + DECIMAL_STR_MAX(uid_t) + 1]; in uid_shift_pick() local
4069 xsprintf(lock_path, "/run/systemd/nspawn-uid/" UID_FMT, candidate); in uid_shift_pick()
4070 r = make_lock_file(lock_path, LOCK_EX|LOCK_NB, &lf); in uid_shift_pick()