| /freebsd-13.1/sys/sys/ |
| H A D | filedesc.h | 220 filecaps_init(struct filecaps *fcaps) in filecaps_init() argument 223 bzero(fcaps, sizeof(*fcaps)); in filecaps_init() 224 fcaps->fc_nioctls = -1; in filecaps_init() 229 void filecaps_free(struct filecaps *fcaps); 236 int flags, struct filecaps *fcaps); 241 struct filecaps *fcaps); 243 struct filecaps *fcaps); 245 struct filecaps *fcaps);
|
| H A D | syscallsubr.h | 182 int kern_kqueue(struct thread *td, int flags, struct filecaps *fcaps); 284 mode_t mode, struct filecaps *fcaps); 286 mode_t mode, int shmflags, struct filecaps *fcaps,
|
| /freebsd-13.1/sys/compat/cloudabi/ |
| H A D | cloudabi_fd.c | 92 struct filecaps fcaps = {}; in cloudabi_sys_fd_create1() local 96 cap_rights_init(&fcaps.fc_rights, CAP_FSTAT, CAP_FTRUNCATE, in cloudabi_sys_fd_create1() 99 &fcaps)); in cloudabi_sys_fd_create1() 390 struct filecaps fcaps; in cloudabi_sys_fd_stat_get() local 395 &fcaps); in cloudabi_sys_fd_stat_get() 411 convert_capabilities(&fcaps.fc_rights, fsb.fs_filetype, in cloudabi_sys_fd_stat_get() 413 filecaps_free(&fcaps); in cloudabi_sys_fd_stat_get()
|
| H A D | cloudabi_proc.c | 80 struct filecaps fcaps = {}; in cloudabi_sys_proc_fork() local 83 cap_rights_init(&fcaps.fc_rights, CAP_FSTAT, CAP_EVENT); in cloudabi_sys_proc_fork() 87 fr.fr_pd_fcaps = &fcaps; in cloudabi_sys_proc_fork()
|
| H A D | cloudabi_file.c | 200 struct filecaps fcaps = {}; in cloudabi_sys_file_open() local 311 &fcaps.fc_rights); in cloudabi_sys_file_open() 312 if (cap_rights_is_set(&fcaps.fc_rights)) in cloudabi_sys_file_open() 313 fcaps.fc_fcntls = CAP_FCNTL_SETFL; in cloudabi_sys_file_open() 315 error = finstall(td, fp, &fd, fflags, &fcaps); in cloudabi_sys_file_open()
|
| /freebsd-13.1/sys/kern/ |
| H A D | kern_descrip.c | 1794 fcaps->fc_ioctls = NULL; in filecaps_fill() 1795 fcaps->fc_nioctls = -1; in filecaps_fill() 1807 fcaps->fc_ioctls = NULL; in filecaps_free_ioctl() 1815 bzero(fcaps, sizeof(*fcaps)); in filecaps_free() 1823 ioctls = fcaps->fc_ioctls; in filecaps_free_prep() 1824 bzero(fcaps, sizeof(*fcaps)); in filecaps_free_prep() 1853 KASSERT(fcaps->fc_ioctls != NULL ? fcaps->fc_nioctls > 0 : in filecaps_validate() 1854 (fcaps->fc_nioctls == -1 || fcaps->fc_nioctls == 0), in filecaps_validate() 2066 struct filecaps *fcaps) in falloc_caps() argument 2147 if (fcaps != NULL) in _finstall() [all …]
|
| H A D | sys_procdesc.c | 238 int flags, struct filecaps *fcaps) in procdesc_falloc() argument 246 return (falloc_caps(td, resultfp, resultfd, fflags, fcaps)); in procdesc_falloc()
|
| H A D | uipc_syscalls.c | 327 struct filecaps fcaps; in kern_accept4() local 337 &headfp, &fflag, &fcaps); in kern_accept4() 351 (flags & SOCK_CLOEXEC) ? O_CLOEXEC : 0, &fcaps); in kern_accept4() 423 filecaps_free(&fcaps); in kern_accept4()
|
| H A D | uipc_shm.c | 1033 int shmflags, struct filecaps *fcaps, const char *name __unused) in kern_shm_open2() argument 1095 error = falloc_caps(td, &fp, &fd, flags & O_CLOEXEC, fcaps); in kern_shm_open2()
|
| H A D | vfs_syscalls.c | 1227 struct filecaps *fcaps; in kern_openat() local 1231 fcaps = &nd.ni_filecaps; in kern_openat() 1234 fcaps = NULL; in kern_openat() 1235 error = finstall_refed(td, fp, &indx, flags, fcaps); in kern_openat()
|
| H A D | kern_event.c | 1072 kern_kqueue(struct thread *td, int flags, struct filecaps *fcaps) in kern_kqueue() argument 1085 error = falloc_caps(td, &fp, &fd, flags, fcaps); in kern_kqueue()
|