/freebsd-current/tools/regression/priv/ |
H A D | priv_vfs_fhstatfs.c | 45 static char fpath[1024]; variable 53 setup_file("priv_vfs_fhstatfs_setup: fpath", fpath, UID_ROOT, 56 if (getfh(fpath, &fh) < 0) { 57 warn("priv_vfs_fhstatfs_setup: getfh(%s)", fpath); 88 (void)unlink(fpath);
|
H A D | priv_vfs_fhstat.c | 46 static char fpath[1024]; variable 54 setup_file("priv_vfs_fhstat_setup: fpath", fpath, UID_ROOT, 57 if (getfh(fpath, &fh) < 0) { 58 warn("priv_vfs_fhstat_setup: getfh(%s)", fpath); 86 (void)unlink(fpath);
|
H A D | priv_vfs_chflags.c | 48 static char fpath[1024]; variable 71 setup_file("priv_vfs_chflags_froot_setup: fpath", fpath, UID_ROOT, 82 setup_file("priv_vfs_chflags_fowner_setup: fpath", fpath, UID_OWNER, 93 setup_file("priv_vfs_chflags_fowner_setup: fpath", fpath, UID_OTHER, 106 flags = getflags(fpath); 108 error = chflags(fpath, flags); 130 flags = getflags(fpath); [all...] |
H A D | priv_vfs_generation.c | 48 static char fpath[1024]; variable 66 setup_file("priv_vfs_generation_setup: fpath", fpath, 68 if (stat(fpath, &sb) < 0) { 69 warn("priv_vfs_generation_setup: fstat(%s)", fpath); 70 (void)unlink(fpath); 88 error = stat(fpath, &sb); 115 (void)unlink(fpath);
|
H A D | priv_vfs_getfh.c | 44 static char fpath[1024]; variable 50 setup_file("priv_vfs_getfh_setup: fpath", fpath, UID_ROOT, GID_WHEEL, 61 error = getfh(fpath, &fh); 76 (void)unlink(fpath);
|
H A D | priv_vfs_clearsugid.c | 62 static char fpath[1024]; variable 74 if (stat(fpath, &sb) < 0) { 75 warn("%s stat(%s)", test_case, fpath); 93 setup_file("priv_vfs_clearsugid_setup: fpath", fpath, UID_OWNER, 103 if (chown(fpath, -1, asroot ? GID_WHEEL : GID_OWNER) < 0) 118 if (extattr_set_file(fpath, EA_NAMESPACE, EA_NAME, EA_DATA, EA_SIZE) 131 fd = open(fpath, O_RDWR); 147 (void)unlink(fpath);
|
H A D | priv_vfs_chown.c | 52 static char fpath[1024]; variable 62 setup_file("priv_vfs_chown_uid: fpath", fpath, UID_ROOT, GID_WHEEL, 73 error = chown(fpath, UID_OWNER, -1); 96 setup_file("priv_vfs_chown_mygid: fpath", fpath, asroot ? UID_ROOT : 107 error = chown(fpath, -1, asroot ? GID_WHEEL : GID_OWNER); 130 setup_file("priv_vfs_chown_othergid: fpath", fpath, asroot ? UID_ROOT 141 error = chown(fpath, [all...] |
H A D | priv_vfs_chmod.c | 47 static char fpath[1024]; variable 54 setup_file("priv_vfs_chmod_setup: fpath", fpath, UID_ROOT, GID_WHEEL, 64 setup_file("priv_vfs_chmod_setup: fpath", fpath, UID_OWNER, 74 setup_file("priv_vfs_chmod_setup: fpath", fpath, UID_OTHER, 85 error = chmod(fpath, 0640); 103 error = chmod(fpath, 0640); 122 error = chmod(fpath, 064 [all...] |
H A D | priv_vfs_setgid.c | 47 static char fpath[1024]; variable 54 setup_file("priv_vfs_setgid_fowner: fpath", fpath, UID_OWNER, 65 setup_file("priv_vfs_setgid_forther: fpath", fpath, UID_OWNER, 76 error = chmod(fpath, 0600 | S_ISGID); 96 error = chmod(fpath, 0600 | S_ISGID); 116 (void)unlink(fpath);
|
H A D | priv_vfs_fhopen.c | 46 static char fpath[1024]; variable 54 setup_file("private_vfs_fhopen_setup: fpath", fpath, UID_ROOT, 57 if (getfh(fpath, &fh) < 0) { 58 warn("priv_vfs_fhopen_setup: getfh(%s)", fpath); 92 (void)unlink(fpath);
|
H A D | priv_vfs_utimes.c | 48 static char fpath[1024]; variable 55 setup_file("priv_vfs_utimes_froot_setup: fpath", fpath, 65 setup_file("priv_vfs_utimes_fowner_setup: fpath", fpath, 81 setup_file("priv_vfs_utimes_fother_setup: fpath", fpath, 97 error = utimes(fpath, tv); 115 error = utimes(fpath, NULL); 140 error = utimes(fpath, t [all...] |
H A D | priv_vfs_extattr_system.c | 51 static char fpath[1024]; variable 62 setup_file("priv_vfs_extattr_system_setup: fpath", fpath, UID_ROOT, 74 ret = extattr_set_file(fpath, EA_NAMESPACE, EA_NAME, EA_DATA, 101 (void)unlink(fpath);
|
H A D | priv_vfs_stickyfile.c | 44 char fpath[1024]; variable 77 setup_file("priv_vfs_stickyfile_fowner_setup: fpath", fpath, 88 setup_file("priv_vfs_stickyfile_fother_setup: fpath", fpath, 139 error = chmod(fpath, 0600 | S_ISTXT); 159 error = chmod(fpath, 0600 | S_ISTXT); 189 (void)unlink(fpath);
|
/freebsd-current/sys/contrib/openzfs/tests/zfs-tests/cmd/ |
H A D | suid_write_to_file.c | 72 char fpath[1024]; local 73 snprintf(fpath, sizeof (fpath), "%s/%s", testdir, name); 80 unlink(fpath); 81 if (stat(fpath, &st) == 0) { 82 fprintf(stderr, "%s exists\n", fpath); 88 fd = creat(fpath, 0777 | extra); 100 fd = open(fpath, O_RDWR); 120 if (stat(fpath, &st) == -1) {
|
H A D | mkbusy.c | 87 char *fpath = NULL; local 131 if (asprintf(&fpath, "%s/%s", dname, fname) == -1) 143 if ((fpath = strdup(argv[0])) == NULL) 151 if (open(fpath, O_CREAT | O_RDWR, 0600) < 0) 154 if (opendir(fpath) == NULL) 157 free(fpath);
|
/freebsd-current/contrib/netbsd-tests/fs/vfs/ |
H A D | t_vfsops.c | 77 char fpath[MAXPATHLEN]; local 83 sprintf(fpath, "%s/file", path); 84 fd = rump_sys_open(fpath, O_RDWR | O_CREAT, 0777); 97 if (rump_sys_getfh(fpath, NULL, &fhsize) == -1) { 106 if (rump_sys_getfh(fpath, fhp, &fhsize) == -1)
|
/freebsd-current/lib/libpmc/pmu-events/ |
H A D | jevents.c | 886 static int process_mapfile(FILE *outfp, char *fpath) argument 896 pr_info("%s: Processing mapfile %s\n", prog, fpath); 902 mapfp = fopen(fpath, "r"); 905 fpath); 932 prog, fpath, line_num); 1016 static int is_leaf_dir(const char *fpath) argument 1022 d = opendir(fpath); 1037 snprintf(path, sizeof(path), "%s/%s", fpath, dir->d_name); 1067 static int preprocess_arch_std_files(const char *fpath, const struct stat *sb, argument 1073 if (level == 1 && is_file && is_json_file(fpath)) 1079 process_one_file(const char *fpath, const struct stat *sb, int typeflag, struct FTW *ftwbuf) argument [all...] |
/freebsd-current/crypto/openssl/crypto/ct/ |
H A D | ct_log.c | 170 const char *fpath = ossl_safe_getenv(CTLOG_FILE_EVP); local 172 if (fpath == NULL) 173 fpath = CTLOG_FILE; 175 return CTLOG_STORE_load_file(store, fpath);
|
/freebsd-current/tools/tools/kdrv/ |
H A D | KernelDriver | 585 if {[scan $line "\# filei386: %s" fpath] == 1} { 586 set f [file tail $fpath]; 587 set Drv(filei386:$f) "[file dirname $fpath]/"; 624 if {[scan $line "\# fileconf: %s" fpath] == 1} { 625 set f [file tail $fpath]; 626 set Drv(fileconf:$f) "[file dirname $fpath]/"; 697 if {[scan $line "\# file: %s" fpath] == 1} { 698 set f [file tail $fpath]; 699 set Drv(filei386:$f) "[file dirname $fpath]/"; 737 if {[scan $line "\# file: %s" fpath] [all...] |
/freebsd-current/usr.sbin/config/ |
H A D | mkoptions.cc | 289 char *fpath; local 301 fpath = path(nbuf); 302 (void)strlcpy(hbuf, fpath, sizeof(hbuf)); 303 free(fpath);
|
/freebsd-current/usr.sbin/boot0cfg/ |
H A D | boot0cfg.c | 120 const char *bpath, *fpath; local 128 fpath = NULL; 154 fpath = optarg; 199 if (fpath) 200 write_mbr(fpath, O_CREAT | O_TRUNC, mbr, mbr_size, 0);
|
/freebsd-current/stand/lua/ |
H A D | config.lua | 689 local fpath = name .. "/" .. cfile 690 if lfs.attributes(fpath, "mode") == "file" then 691 config.readConf(fpath, loaded_files)
|