Searched refs:uid_map_fd (Results 1 – 2 of 2) sorted by relevance
| /linux/tools/testing/selftests/namespaces/ |
| H A D | file_handle_test.c | 481 int uid_map_fd = open("/proc/self/uid_map", O_WRONLY); in TEST() local 485 if (uid_map_fd < 0 || gid_map_fd < 0 || setgroups_fd < 0) { in TEST() 498 write(uid_map_fd, mapping, strlen(mapping)); in TEST() 499 close(uid_map_fd); in TEST() 610 int uid_map_fd = open("/proc/self/uid_map", O_WRONLY); in TEST() local 614 if (uid_map_fd < 0 || gid_map_fd < 0 || setgroups_fd < 0) { in TEST() 627 write(uid_map_fd, mapping, strlen(mapping)); in TEST() 628 close(uid_map_fd); in TEST() 739 int uid_map_fd = open("/proc/self/uid_map", O_WRONLY); in TEST() local 743 if (uid_map_fd < 0 || gid_map_fd < 0 || setgroups_fd < 0) { in TEST() [all …]
|
| H A D | ns_active_ref_test.c | 318 int uid_map_fd = open("/proc/self/uid_map", O_WRONLY); in TEST() local 322 if (uid_map_fd >= 0 && gid_map_fd >= 0 && setgroups_fd >= 0) { in TEST() 328 write(uid_map_fd, mapping, strlen(mapping)); in TEST() 329 close(uid_map_fd); in TEST()
|