| /freebsd-13.1/tools/regression/priv/ |
| H A D | priv_vfs_chflags.c | 50 static char fpath[1024]; variable 108 flags = getflags(fpath); in priv_vfs_chflags_froot_uflags() 110 error = chflags(fpath, flags); in priv_vfs_chflags_froot_uflags() 132 flags = getflags(fpath); in priv_vfs_chflags_fowner_uflags() 134 error = chflags(fpath, flags); in priv_vfs_chflags_fowner_uflags() 156 flags = getflags(fpath); in priv_vfs_chflags_fother_uflags() 180 flags = getflags(fpath); in priv_vfs_chflags_froot_sflags() 204 flags = getflags(fpath); in priv_vfs_chflags_fowner_sflags() 228 flags = getflags(fpath); in priv_vfs_chflags_fother_sflags() 250 (void)chflags(fpath, 0); in priv_vfs_chflags_cleanup() [all …]
|
| H A D | priv_vfs_utimes.c | 50 static char fpath[1024]; variable 57 setup_file("priv_vfs_utimes_froot_setup: fpath", fpath, in priv_vfs_utimes_froot_setup() 67 setup_file("priv_vfs_utimes_fowner_setup: fpath", fpath, in priv_vfs_utimes_fowner_setup() 83 setup_file("priv_vfs_utimes_fother_setup: fpath", fpath, in priv_vfs_utimes_fother_setup() 99 error = utimes(fpath, tv); in priv_vfs_utimes_froot() 117 error = utimes(fpath, NULL); in priv_vfs_utimes_froot_null() 142 error = utimes(fpath, tv); in priv_vfs_utimes_fowner() 158 error = utimes(fpath, NULL); in priv_vfs_utimes_fowner_null() 183 error = utimes(fpath, tv); in priv_vfs_utimes_fother() 201 error = utimes(fpath, NULL); in priv_vfs_utimes_fother_null() [all …]
|
| H A D | priv_vfs_clearsugid.c | 64 static char fpath[1024]; variable 76 if (stat(fpath, &sb) < 0) { in confirm_sugid() 77 warn("%s stat(%s)", test_case, fpath); in confirm_sugid() 95 setup_file("priv_vfs_clearsugid_setup: fpath", fpath, UID_OWNER, in priv_vfs_clearsugid_setup() 105 if (chown(fpath, -1, asroot ? GID_WHEEL : GID_OWNER) < 0) in priv_vfs_clearsugid_chgrp() 120 if (extattr_set_file(fpath, EA_NAMESPACE, EA_NAME, EA_DATA, EA_SIZE) in priv_vfs_clearsugid_extattr() 133 fd = open(fpath, O_RDWR); in priv_vfs_clearsugid_write() 149 (void)unlink(fpath); in priv_vfs_clearsugid_cleanup()
|
| H A D | priv_vfs_chmod.c | 49 static char fpath[1024]; variable 56 setup_file("priv_vfs_chmod_setup: fpath", fpath, UID_ROOT, GID_WHEEL, in priv_vfs_chmod_froot_setup() 66 setup_file("priv_vfs_chmod_setup: fpath", fpath, UID_OWNER, in priv_vfs_chmod_fowner_setup() 76 setup_file("priv_vfs_chmod_setup: fpath", fpath, UID_OTHER, in priv_vfs_chmod_fother_setup() 87 error = chmod(fpath, 0640); in priv_vfs_chmod_froot() 105 error = chmod(fpath, 0640); in priv_vfs_chmod_fowner() 124 error = chmod(fpath, 0640); in priv_vfs_chmod_fother() 143 (void)unlink(fpath); in priv_vfs_chmod_cleanup()
|
| H A D | priv_vfs_generation.c | 50 static char fpath[1024]; variable 68 setup_file("priv_vfs_generation_setup: fpath", fpath, in priv_vfs_generation_setup() 70 if (stat(fpath, &sb) < 0) { in priv_vfs_generation_setup() 71 warn("priv_vfs_generation_setup: fstat(%s)", fpath); in priv_vfs_generation_setup() 72 (void)unlink(fpath); in priv_vfs_generation_setup() 90 error = stat(fpath, &sb); in priv_vfs_generation() 117 (void)unlink(fpath); in priv_vfs_generation_cleanup()
|
| H A D | priv_vfs_chown.c | 54 static char fpath[1024]; variable 64 setup_file("priv_vfs_chown_uid: fpath", fpath, UID_ROOT, GID_WHEEL, in priv_vfs_chown_uid_setup() 75 error = chown(fpath, UID_OWNER, -1); in priv_vfs_chown_uid() 98 setup_file("priv_vfs_chown_mygid: fpath", fpath, asroot ? UID_ROOT : in priv_vfs_chown_mygid_setup() 109 error = chown(fpath, -1, asroot ? GID_WHEEL : GID_OWNER); in priv_vfs_chown_mygid() 132 setup_file("priv_vfs_chown_othergid: fpath", fpath, asroot ? UID_ROOT in priv_vfs_chown_othergid_setup() 143 error = chown(fpath, -1, GID_OTHER); in priv_vfs_chown_othergid() 161 (void)unlink(fpath); in priv_vfs_chown_cleanup()
|
| H A D | priv_vfs_setgid.c | 49 static char fpath[1024]; variable 56 setup_file("priv_vfs_setgid_fowner: fpath", fpath, UID_OWNER, in priv_vfs_setgid_fowner_setup() 67 setup_file("priv_vfs_setgid_forther: fpath", fpath, UID_OWNER, in priv_vfs_setgid_fother_setup() 78 error = chmod(fpath, 0600 | S_ISGID); in priv_vfs_setgid_fowner() 98 error = chmod(fpath, 0600 | S_ISGID); in priv_vfs_setgid_fother() 118 (void)unlink(fpath); in priv_vfs_setgid_cleanup()
|
| H A D | priv_vfs_fhstat.c | 48 static char fpath[1024]; variable 56 setup_file("priv_vfs_fhstat_setup: fpath", fpath, UID_ROOT, in priv_vfs_fhstat_setup() 59 if (getfh(fpath, &fh) < 0) { in priv_vfs_fhstat_setup() 60 warn("priv_vfs_fhstat_setup: getfh(%s)", fpath); in priv_vfs_fhstat_setup() 88 (void)unlink(fpath); in priv_vfs_fhstat_cleanup()
|
| H A D | priv_vfs_fhstatfs.c | 47 static char fpath[1024]; variable 55 setup_file("priv_vfs_fhstatfs_setup: fpath", fpath, UID_ROOT, in priv_vfs_fhstatfs_setup() 58 if (getfh(fpath, &fh) < 0) { in priv_vfs_fhstatfs_setup() 59 warn("priv_vfs_fhstatfs_setup: getfh(%s)", fpath); in priv_vfs_fhstatfs_setup() 90 (void)unlink(fpath); in priv_vfs_fhstatfs_cleanup()
|
| H A D | priv_vfs_fhopen.c | 48 static char fpath[1024]; variable 56 setup_file("private_vfs_fhopen_setup: fpath", fpath, UID_ROOT, in priv_vfs_fhopen_setup() 59 if (getfh(fpath, &fh) < 0) { in priv_vfs_fhopen_setup() 60 warn("priv_vfs_fhopen_setup: getfh(%s)", fpath); in priv_vfs_fhopen_setup() 94 (void)unlink(fpath); in priv_vfs_fhopen_cleanup()
|
| H A D | priv_vfs_stickyfile.c | 46 char fpath[1024]; variable 79 setup_file("priv_vfs_stickyfile_fowner_setup: fpath", fpath, in priv_vfs_stickyfile_file_fowner_setup() 90 setup_file("priv_vfs_stickyfile_fother_setup: fpath", fpath, in priv_vfs_stickyfile_file_fother_setup() 141 error = chmod(fpath, 0600 | S_ISTXT); in priv_vfs_stickyfile_file_fowner() 161 error = chmod(fpath, 0600 | S_ISTXT); in priv_vfs_stickyfile_file_fother() 191 (void)unlink(fpath); in priv_vfs_stickyfile_file_cleanup()
|
| H A D | priv_vfs_getfh.c | 46 static char fpath[1024]; variable 52 setup_file("priv_vfs_getfh_setup: fpath", fpath, UID_ROOT, GID_WHEEL, in priv_vfs_getfh_setup() 63 error = getfh(fpath, &fh); in priv_vfs_getfh() 78 (void)unlink(fpath); in priv_vfs_getfh_cleanup()
|
| H A D | priv_vfs_extattr_system.c | 53 static char fpath[1024]; variable 64 setup_file("priv_vfs_extattr_system_setup: fpath", fpath, UID_ROOT, in priv_vfs_extattr_system_setup() 76 ret = extattr_set_file(fpath, EA_NAMESPACE, EA_NAME, EA_DATA, in priv_vfs_extattr_system() 103 (void)unlink(fpath); in priv_vfs_extattr_system_cleanup()
|
| /freebsd-13.1/sys/contrib/openzfs/tests/zfs-tests/tests/functional/suid/ |
| H A D | suid_write_to_file.c | 72 char fpath[1024]; in main() local 73 snprintf(fpath, sizeof (fpath), "%s/%s", testdir, name); in main() 80 unlink(fpath); in main() 81 if (stat(fpath, &st) == 0) { in main() 82 fprintf(stderr, "%s exists\n", fpath); in main() 88 fd = creat(fpath, 0777 | extra); in main() 100 fd = open(fpath, O_RDWR); in main() 120 if (stat(fpath, &st) == -1) { in main()
|
| /freebsd-13.1/sys/contrib/openzfs/tests/zfs-tests/cmd/mkbusy/ |
| H A D | mkbusy.c | 73 char *fpath = NULL; in main() local 134 rc = asprintf(&fpath, "%s/%s", dname, fname); in main() 137 if (rc == -1 || fpath == NULL) in main() 144 fpath = strdup(argv[0]); in main() 146 fpath = strdup(argv[0]); in main() 152 if (fpath == NULL) in main() 161 if ((fd = open(fpath, flags, mode)) < 0) in main() 166 if ((dp = opendir(fpath)) == NULL) in main() 169 free(fpath); in main()
|
| /freebsd-13.1/lib/libpmc/pmu-events/ |
| H A D | jevents.c | 778 process_mapfile(FILE *outfp, char *fpath) in process_mapfile() argument 793 mapfp = fopen(fpath, "r"); in process_mapfile() 796 fpath); in process_mapfile() 823 prog, fpath, line_num); in process_mapfile() 908 is_leaf_dir(const char *fpath) in is_leaf_dir() argument 914 d = opendir(fpath); in is_leaf_dir() 991 bname = fpath + ftwbuf->base - 2; in process_one_file() 999 bname = fpath + ftwbuf->base; in process_one_file() 1003 level, sb->st_size, bname, fpath); in process_one_file() 1040 mapfile = strdup(fpath); in process_one_file() [all …]
|
| /freebsd-13.1/contrib/netbsd-tests/fs/vfs/ |
| H A D | t_vfsops.c | 77 char fpath[MAXPATHLEN]; in tfilehandle() local 83 sprintf(fpath, "%s/file", path); in tfilehandle() 84 fd = rump_sys_open(fpath, O_RDWR | O_CREAT, 0777); in tfilehandle() 97 if (rump_sys_getfh(fpath, NULL, &fhsize) == -1) { in tfilehandle() 106 if (rump_sys_getfh(fpath, fhp, &fhsize) == -1) in tfilehandle()
|
| /freebsd-13.1/cddl/usr.sbin/dwatch/libexec/ |
| H A D | vop_rename | 212 this->fpath = this->ffi_mount; 213 this->fpath = strjoin(this->fpath, this->ffi_mount != 0 ? ( 230 this->fpath = strjoin(this->fpath, 236 this->fpath = strjoin(this->fpath, strjoin(this->fname = 241 this->fpath = strjoin(this->fpath, 295 printf("%s -> %s", this->fpath, this->tpath);
|
| /freebsd-13.1/tools/tools/kdrv/ |
| H A D | KernelDriver | 586 if {[scan $line "\# filei386: %s" fpath] == 1} { 587 set f [file tail $fpath]; 588 set Drv(filei386:$f) "[file dirname $fpath]/"; 625 if {[scan $line "\# fileconf: %s" fpath] == 1} { 626 set f [file tail $fpath]; 627 set Drv(fileconf:$f) "[file dirname $fpath]/"; 698 if {[scan $line "\# file: %s" fpath] == 1} { 699 set f [file tail $fpath]; 700 set Drv(filei386:$f) "[file dirname $fpath]/"; 738 if {[scan $line "\# file: %s" fpath] == 1} { [all …]
|
| /freebsd-13.1/crypto/openssl/crypto/ct/ |
| H A D | ct_log.c | 140 const char *fpath = ossl_safe_getenv(CTLOG_FILE_EVP); in CTLOG_STORE_load_default_file() local 142 if (fpath == NULL) in CTLOG_STORE_load_default_file() 143 fpath = CTLOG_FILE; in CTLOG_STORE_load_default_file() 145 return CTLOG_STORE_load_file(store, fpath); in CTLOG_STORE_load_default_file()
|
| /freebsd-13.1/usr.sbin/boot0cfg/ |
| H A D | boot0cfg.c | 123 const char *bpath, *fpath; in main() local 131 fpath = NULL; in main() 157 fpath = optarg; in main() 202 if (fpath) in main() 203 write_mbr(fpath, O_CREAT | O_TRUNC, mbr, mbr_size, 0); in main()
|
| /freebsd-13.1/stand/lua/ |
| H A D | config.lua | 592 local fpath = name .. "/" .. cfile 593 if lfs.attributes(fpath, "mode") == "file" then 594 config.readConf(fpath, loaded_files)
|