Home
last modified time | relevance | path

Searched refs:fchownat (Results 1 - 25 of 26) sorted by relevance

12

/third_party/musl/libc-test/src/functionalext/supplement/unistd/
H A Dfchownat.c33 int ret = fchownat(fd, ptr, 0, 0, AT_SYMLINK_NOFOLLOW); in fchownat_0100()
55 int ret = fchownat(AT_FDCWD, ptr, 0, 0, AT_SYMLINK_NOFOLLOW); in fchownat_0200()
/third_party/musl/src/unistd/
H A Dfchownat.c4 int fchownat(int fd, const char *path, uid_t uid, gid_t gid, int flag) in fchownat() function
/third_party/ltp/testcases/kernel/syscalls/fchownat/
H A Dfchownat.h29 static inline int fchownat(int dirfd, const char *filename, uid_t owner, in fchownat() function
H A Dfchownat01.c21 * This test case will verify basic function of fchownat
37 #include "fchownat.h"
104 TEST(fchownat(*(test->fds), test->filenames, geteuid(), in fchownat_verify()
109 "fchownat() returned %ld, expected %d, errno=%d", in fchownat_verify()
116 "fchownat() returned the expected errno %d: %s", in fchownat_verify()
120 "fchownat() failed unexpectedly; expected: %d - %s", in fchownat_verify()
H A Dfchownat02.c19 * The flag of fchownat() is AT_SYMLINK_NOFOLLOW and the pathname would
34 #include "fchownat.h"
102 TEST(fchownat(dir_fd, TESTFILE_LINK, set_uid, set_gid, in fchownat_verify()
106 tst_resm(TFAIL | TTERRNO, "fchownat() failed, errno=%d : %s", in fchownat_verify()
123 tst_resm(TPASS, "fchownat() test AT_SYMLINK_NOFOLLOW success"); in test_verify()
126 "fchownat() test AT_SYMLINK_NOFOLLOW fail with uid=%d " in test_verify()
/third_party/ltp/testcases/kernel/crypto/
H A Daf_alg07.c11 * set sock->sk = NULL after closing the socket. Racing fchownat() against
17 * fchownat() will return ENOENT as it should only when the bug is not
79 TEST(fchownat(sock, "", uid, gid, AT_EMPTY_PATH)); in run()
95 "fchownat() failed successfully"); in run()
101 "fchownat() failed unexpectedly"); in run()
106 "Invalid fchownat() return value"); in run()
110 tst_res(TFAIL, "fchownat() failed to fail, kernel may be vulnerable"); in run()
/third_party/toybox/toys/posix/
H A Dchgrp.c55 ret = fchownat(fd, node->name, TT.owner, TT.group, in do_chgrp()
H A Dcp.c320 rc = fchownat(cfd, catch, try->st.st_uid, try->st.st_gid, in cp_node()
/third_party/ltp/lib/
H A Dtst_safe_file_at.c207 rval = fchownat(dirfd, path, owner, group, flags); in safe_fchownat()
211 "fchownat(%d<%s>, '%s', %d, %d, %d) failed", dirfd, in safe_fchownat()
215 "Invalid fchownat(%d<%s>, '%s', %d, %d, %d) return value %d", in safe_fchownat()
/third_party/musl/porting/liteos_a/user/include/
H A Dunistd.h54 int fchownat(int, const char *, uid_t, gid_t, int);
/third_party/musl/porting/uniproton/kernel/include/
H A Dunistd.h52 int fchownat(int, const char *, uid_t, gid_t, int);
/third_party/musl/porting/linux/user/include/
H A Dunistd.h58 int fchownat(int, const char *, uid_t, gid_t, int);
/third_party/musl/porting/liteos_m/user/include/
H A Dunistd.h54 int fchownat(int, const char *, uid_t, gid_t, int);
/third_party/musl/porting/liteos_m_iccarm/kernel/include/
H A Dunistd.h52 int fchownat(int, const char *, uid_t, gid_t, int);
/third_party/musl/porting/liteos_a/kernel/include/
H A Dunistd.h58 int fchownat(int, const char *, uid_t, gid_t, int);
/third_party/musl/porting/liteos_m/kernel/include/
H A Dunistd.h52 int fchownat(int, const char *, uid_t, gid_t, int);
/third_party/musl/include/
H A Dunistd.h68 int fchownat(int, const char *, uid_t, gid_t, int);
/third_party/rust/crates/nix/test/
H A Dtest_unistd.rs543 fchownat(Some(dirfd), "file", uid, gid, FchownatFlags::FollowSymlink) in test_fchownat()
547 fchownat(None, "file", uid, gid, FchownatFlags::FollowSymlink).unwrap(); in test_fchownat()
550 fchownat(None, "file", uid, gid, FchownatFlags::FollowSymlink).unwrap_err(); in test_fchownat()
/third_party/musl/libc-test/src/api/
H A Dunistd.c270 {int(*p)(int,const char*,uid_t,gid_t,int) = fchownat;} in f()
/third_party/toybox/porting/liteos_a/toys/posix/
H A Dcp.c293 rc = fchownat(cfd, catch, try->st.st_uid, try->st.st_gid, in cp_node()
/third_party/libfuse/example/
H A Dpassthrough_hp.cc252 res = fchownat(ifd, "", uid, gid, AT_EMPTY_PATH | AT_SYMLINK_NOFOLLOW); in do_setattr()
H A Dpassthrough_ll.c241 res = fchownat(ifd, "", uid, gid, in lo_setattr()
/third_party/rust/crates/nix/src/
H A Dunistd.rs740 /// Flags for `fchownat` function.
761 /// `fchownat(None, path, owner, group, FchownatFlags::NoFollowSymlink)` is identical to
767 /// [fchownat(2)](https://pubs.opengroup.org/onlinepubs/9699919799/functions/fchownat.html).
769 pub fn fchownat<P: ?Sized + NixPath>( in fchownat() functions
783 libc::fchownat(at_rawfd(dirfd), cstr.as_ptr(), uid, gid, in fchownat()
/third_party/rust/crates/libc/src/unix/
H A Dmod.rs815 pub fn fchownat( in fchownat() functions
/third_party/python/Modules/
H A Dposixmodule.c130 # define HAVE_FCHOWNAT_RUNTIME (fchownat != NULL)
3623 dir_fd : dir_fd(requires='fchownat') = None
3688 result = fchownat(dir_fd, path->narrow, uid, gid, in os_chown_impl()

Completed in 59 milliseconds

12