Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/filesystems/
H A Dutils.c285 char path_ns[STRLITERALLEN("/proc/") + INTTYPE_TO_STRLEN(pid_t) + in get_userns_fd_from_idmap() local
296 ret = snprintf(path_ns, sizeof(path_ns), "/proc/%d/ns/user", pid); in get_userns_fd_from_idmap()
297 if (ret < 0 || (size_t)ret >= sizeof(path_ns)) in get_userns_fd_from_idmap()
300 ret = open(path_ns, O_RDONLY | O_CLOEXEC | O_NOCTTY); in get_userns_fd_from_idmap()