Searched refs:chown (Results 1 - 11 of 11) sorted by last modified time

/linux-master/tools/testing/selftests/tc-testing/
H A Dtdc.py990 os.chown(fname, uid=int(os.getenv('SUDO_UID')),
/linux-master/tools/testing/selftests/ftrace/test.d/00basic/
H A Dtest_ownership.tc42 chown $other_owner $file
48 chown $original_owner $file
/linux-master/fs/
H A Dopen.c839 SYSCALL_DEFINE3(chown, const char __user *, filename, uid_t, user, gid_t, group)
/linux-master/tools/testing/selftests/nolibc/
H A Dnolibc-test.c921 CASE_TEST(chown_self); EXPECT_SYSER(proc, chown("/proc/self", 0, 0), -1, EPERM); break;
/linux-master/tools/testing/selftests/capabilities/
H A Dtest_execve.c226 if (chown("validate_cap_suidroot", 0, -1) != 0)
227 ksft_exit_fail_msg("chown - %s\n", strerror(errno));
233 if (chown("validate_cap_suidnonroot", uid + 1, -1) != 0)
234 ksft_exit_fail_msg("chown - %s\n", strerror(errno));
240 if (chown("validate_cap_sgidroot", -1, 0) != 0)
241 ksft_exit_fail_msg("chown - %s\n", strerror(errno));
247 if (chown("validate_cap_sgidnonroot", -1, gid + 1) != 0)
248 ksft_exit_fail_msg("chown - %s\n", strerror(errno));
/linux-master/tools/include/nolibc/
H A Dsys.h159 * int chown(const char *path, uid_t owner, gid_t group);
175 int chown(const char *path, uid_t owner, gid_t group) function
/linux-master/tools/power/x86/intel_pstate_tracer/
H A Dintel_pstate_tracer.py360 os.chown(path, int(uid), int(gid))
/linux-master/tools/testing/selftests/cgroup/
H A Dtest_core.c711 if (chown(cg_test_a_procs, test_euid, -1) ||
712 chown(cg_test_b_procs, test_euid, -1))
796 if (chown(cg_test_a_procs, test_euid, -1) ||
797 chown(cg_test_b_procs, test_euid, -1))
H A Dtest_cpuset.c108 if (chown(child_src_procs, test_euid, -1) ||
109 chown(child_dst_procs, test_euid, -1))
112 if (allow && chown(parent_procs, test_euid, -1))
197 if (chown(parent_procs, test_euid, -1) ||
198 chown(parent_subctl, test_euid, -1) ||
199 chown(child_procs, test_euid, -1))
/linux-master/fs/hostfs/
H A Dhostfs_user.c213 } else if (chown(file, attrs->ia_uid, -1)) {
221 } else if (chown(file, -1, attrs->ia_gid)) {
/linux-master/tools/testing/selftests/mount_setattr/
H A Dmount_setattr_test.c1016 ASSERT_EQ(chown("/tmp/B/b", 0, 0), 0);
1023 ASSERT_EQ(chown("/tmp/B/BB/b", 0, 0), 0);

Completed in 242 milliseconds