| /tools/testing/selftests/filesystems/ |
| A D | utils.h | 29 extern bool switch_ids(uid_t uid, gid_t gid); 32 static inline bool switch_userns(int fd, uid_t uid, gid_t gid, bool drop_caps) in switch_userns() argument 37 if (!switch_ids(uid, gid)) in switch_userns()
|
| A D | utils.c | 332 bool switch_ids(uid_t uid, gid_t gid) in switch_ids() argument 337 if (setresgid(gid, gid, gid)) in switch_ids() 488 gid_t gid = getgid(); in setup_userns() local 504 sprintf(buf, "0 %d 1", gid); in setup_userns()
|
| /tools/testing/selftests/ftrace/test.d/00basic/ |
| A D | mount_options.tc | 59 local gid=`stat -c "%g" $file` 60 if [ "$gid" -ne "$expected_gid" ]; then 62 fail "$(realpath $file): Expected group $expected_gid; Got group $gid"
|
| /tools/arch/x86/tools/ |
| A D | gen-insn-attr-x86.awk | 22 gid = -1 # group id 163 gid = group[$2] 164 tname = "inat_group_table_" gid 179 if (gid != -1) { 184 gtable[gid,0] = tname 189 gtable[gid,1] = tname "_1" 194 gtable[gid,2] = tname "_2" 199 gtable[gid,3] = tname "_3"
|
| /tools/testing/selftests/move_mount_set_group/ |
| A D | move_mount_set_group_test.c | 79 gid_t gid; in create_and_enter_userns() local 83 gid = getgid(); in create_and_enter_userns() 97 snprintf(map, sizeof(map), "0 %d 1", gid); in create_and_enter_userns()
|
| /tools/testing/selftests/safesetid/ |
| A D | safesetid-test.c | 136 static void ensure_group_exists(gid_t gid) in ensure_group_exists() argument 143 if (getgrgid(gid) == NULL) { in ensure_group_exists() 150 snprintf(name_str, 10, "group %d", gid); in ensure_group_exists() 152 g.gr_gid=gid; in ensure_group_exists()
|
| /tools/testing/selftests/mount/ |
| A D | unprivileged-remount-test.c | 157 gid_t gid; in create_and_enter_userns() local 160 gid = getgid(); in create_and_enter_userns() 169 write_file("/proc/self/gid_map", "0 %d 1", gid); in create_and_enter_userns()
|
| A D | nosymfollow-test.c | 97 gid_t gid = getgid(); in create_and_enter_ns() local 104 write_file("/proc/self/gid_map", "0 %d 1", gid); in create_and_enter_ns()
|
| /tools/testing/selftests/capabilities/ |
| A D | test_execve.c | 226 uid_t gid = getegid(); in do_tests() local 251 if (chown("validate_cap_sgidnonroot", -1, gid + 1) != 0) in do_tests()
|
| /tools/testing/selftests/bpf/progs/ |
| A D | profiler.h | 67 gid_t gid; member
|
| A D | profiler.inc.h | 337 metadata->gid = uid_gid >> 32; in populate_var_metadata()
|
| /tools/perf/util/ |
| A D | bpf-filter.l | 117 gid { return sample(PBF_TERM_GID); }
|
| /tools/power/x86/intel_pstate_tracer/ |
| A D | intel_pstate_tracer.py | 358 gid = os.environ.get('SUDO_GID') 360 os.chown(path, int(uid), int(gid))
|
| /tools/testing/selftests/filesystems/statmount/ |
| A D | statmount_test.c | 132 gid_t gid = getgid(); in setup_namespace() local 142 sprintf(buf, "0 %d 1", gid); in setup_namespace()
|
| /tools/testing/selftests/rcutorture/doc/ |
| A D | rcu-test-image.txt | 49 devpts /dev/pts devpts gid=5,mode=620 0 0
|
| /tools/testing/selftests/bpf/prog_tests/ |
| A D | token.c | 248 gid_t gid; in create_and_enter_userns() local 252 gid = getgid(); in create_and_enter_userns() 266 snprintf(map, sizeof(map), "0 %d 1", gid); in create_and_enter_userns()
|
| /tools/perf/trace/beauty/include/linux/ |
| A D | socket.h | 186 __u32 gid; member
|
| /tools/testing/selftests/mount_setattr/ |
| A D | mount_setattr_test.c | 181 gid_t gid; in create_and_enter_userns() local 185 gid = getgid(); in create_and_enter_userns() 199 snprintf(map, sizeof(map), "0 %d 1", gid); in create_and_enter_userns()
|
| /tools/testing/selftests/tc-testing/ |
| A D | tdc.py | 990 gid=int(os.getenv('SUDO_GID')))
|
| /tools/perf/Documentation/ |
| A D | perf-record.txt | 207 mem_dtlb, mem_blk, mem_hops, uid, gid
|