Lines Matching +full:s +full:- +full:mode

1 // SPDX-License-Identifier: GPL-2.0-or-later
12 int sys_fchmodat2(int dfd, const char *filename, mode_t mode, int flags) in sys_fchmodat2() argument
14 int ret = syscall(__NR_fchmodat2, dfd, filename, mode, flags); in sys_fchmodat2()
16 return ret >= 0 ? ret : -errno; in sys_fchmodat2()
22 char dirname[] = "/tmp/ksft-fchmodat2.XXXXXX"; in setup_testdir()
24 /* Make the top-level directory. */ in setup_testdir()
26 ksft_exit_fail_msg("%s: failed to create tmpdir\n", __func__); in setup_testdir()
30 ksft_exit_fail_msg("%s: failed to open tmpdir\n", __func__); in setup_testdir()
34 ksft_exit_fail_msg("%s: failed to create file in tmpdir\n", in setup_testdir()
40 ksft_exit_fail_msg("%s: failed to create symlink in tmpdir\n", in setup_testdir()
52 ksft_exit_fail_msg("%s: %s: fstatat failed\n", in expect_mode()
67 ksft_exit_fail_msg("%s: fchmodat2(noflag) failed\n", __func__); in test_regfile()
70 ksft_exit_fail_msg("%s: wrong file mode bits after fchmodat2\n", in test_regfile()
76 ksft_exit_fail_msg("%s: fchmodat2(AT_SYMLINK_NOFOLLOW) failed\n", in test_regfile()
80 ksft_exit_fail_msg("%s: wrong file mode bits after fchmodat2 with nofollow\n", in test_regfile()
95 ksft_exit_fail_msg("%s: fchmodat2(noflag) failed\n", __func__); in test_symlink()
98 ksft_exit_fail_msg("%s: wrong file mode bits after fchmodat2\n", in test_symlink()
102 ksft_exit_fail_msg("%s: wrong symlink mode bits after fchmodat2\n", in test_symlink()
112 * https://sourceware.org/legacy-ml/libc-alpha/2020-02/msg00467.html in test_symlink()
115 ksft_exit_fail_msg("%s: wrong symlink mode bits after fchmodat2 with nofollow\n", in test_symlink()
119 ksft_exit_fail_msg("%s: wrong file mode bits after fchmodat2 with nofollow\n", in test_symlink()