Searched refs:rootfd (Results 1 - 6 of 6) sorted by relevance
/freebsd-12-stable/usr.sbin/pw/ |
H A D | rm_r.c | 44 rm_r(int rootfd, const char *path, uid_t uid) argument 54 dirfd = openat(rootfd, path, O_DIRECTORY); 76 if (fstatat(rootfd, path, &st, AT_SYMLINK_NOFOLLOW) != 0) 79 unlinkat(rootfd, path, 0); 81 unlinkat(rootfd, path, AT_REMOVEDIR);
|
H A D | cpdir.c | 44 copymkdir(int rootfd, char const * dir, int skelfd, mode_t mode, uid_t uid, argument 57 if (mkdirat(rootfd, dir, mode) != 0 && errno != EEXIST) { 61 fchownat(rootfd, dir, uid, gid, AT_SYMLINK_NOFOLLOW); 63 chflagsat(rootfd, dir, flags, AT_SYMLINK_NOFOLLOW); 68 homefd = openat(rootfd, dir, O_DIRECTORY);
|
H A D | pwupd.h | 83 int rootfd; member in struct:pwconf 143 void copymkdir(int rootfd, char const * dir, int skelfd, mode_t mode, uid_t uid, 145 void rm_r(int rootfd, char const * dir, uid_t uid);
|
H A D | pw.c | 195 conf.rootfd = open(conf.rootdir, O_DIRECTORY|O_CLOEXEC); 196 if (conf.rootfd == -1)
|
H A D | pw_user.c | 160 mkdir_home_parents(conf.rootfd, pwd->pw_dir); 165 skelfd = openat(conf.rootfd, skeldir, O_DIRECTORY|O_CLOEXEC); 168 copymkdir(conf.rootfd, pwd->pw_dir, skelfd, homemode, pwd->pw_uid, 719 if ((fd = openat(conf.rootfd, "etc/opiekeys", O_RDWR)) == -1) 1010 unlinkat(conf.rootfd, file + 1, 0); 1019 fstatat(conf.rootfd, home + 1, &st, 0) != -1) { 1020 rm_r(conf.rootfd, home, id); 1023 fstatat(conf.rootfd, home + 1, &st, 0) == -1 ? "" : "not " 1269 if (fstatat(conf.rootfd, walk, &st, 0) == -1) 1469 close(openat(conf.rootfd, pat [all...] |
/freebsd-12-stable/tests/sys/capsicum/ |
H A D | bindat_connectat.c | 47 static int rootfd = -1; variable 62 if (path && path[0] == '/' && rootfd >= 0) { 63 return (openat(rootfd, path + 1, flags, mode)); 75 ATF_REQUIRE((rootfd = open("/", O_EXEC | O_CLOEXEC)) >= 0);
|
Completed in 110 milliseconds