Searched refs:gid_map_fd (Results 1 – 2 of 2) sorted by relevance
| /linux/tools/testing/selftests/namespaces/ |
| H A D | file_handle_test.c | 482 int gid_map_fd = open("/proc/self/gid_map", O_WRONLY); in TEST() local 485 if (uid_map_fd < 0 || gid_map_fd < 0 || setgroups_fd < 0) { in TEST() 502 write(gid_map_fd, mapping, strlen(mapping)); in TEST() 503 close(gid_map_fd); in TEST() 611 int gid_map_fd = open("/proc/self/gid_map", O_WRONLY); in TEST() local 614 if (uid_map_fd < 0 || gid_map_fd < 0 || setgroups_fd < 0) { in TEST() 631 write(gid_map_fd, mapping, strlen(mapping)); in TEST() 632 close(gid_map_fd); in TEST() 740 int gid_map_fd = open("/proc/self/gid_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 | 319 int gid_map_fd = open("/proc/self/gid_map", O_WRONLY); in TEST() local 322 if (uid_map_fd >= 0 && gid_map_fd >= 0 && setgroups_fd >= 0) { in TEST() 332 write(gid_map_fd, mapping, strlen(mapping)); in TEST() 333 close(gid_map_fd); in TEST()
|