Home
last modified time | relevance | path

Searched refs:fcaps (Results 1 – 11 of 11) sorted by relevance

/freebsd-12.1/sys/compat/cloudabi/
H A Dcloudabi_fd.c91 struct filecaps fcaps = {}; in cloudabi_sys_fd_create1() local
95 cap_rights_init(&fcaps.fc_rights, CAP_FSTAT, CAP_FTRUNCATE, in cloudabi_sys_fd_create1()
98 &fcaps)); in cloudabi_sys_fd_create1()
389 struct filecaps fcaps; in cloudabi_sys_fd_stat_get() local
394 &fcaps); in cloudabi_sys_fd_stat_get()
410 convert_capabilities(&fcaps.fc_rights, fsb.fs_filetype, in cloudabi_sys_fd_stat_get()
412 filecaps_free(&fcaps); in cloudabi_sys_fd_stat_get()
H A Dcloudabi_proc.c80 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 Dcloudabi_file.c200 struct filecaps fcaps = {}; in cloudabi_sys_file_open() local
310 &fcaps.fc_rights); in cloudabi_sys_file_open()
311 if (cap_rights_is_set(&fcaps.fc_rights)) in cloudabi_sys_file_open()
312 fcaps.fc_fcntls = CAP_FCNTL_SETFL; in cloudabi_sys_file_open()
314 error = finstall(td, fp, &fd, fflags, &fcaps); in cloudabi_sys_file_open()
/freebsd-12.1/sys/sys/
H A Dfiledesc.h157 void filecaps_init(struct filecaps *fcaps);
161 void filecaps_free(struct filecaps *fcaps);
167 int flags, struct filecaps *fcaps);
170 struct filecaps *fcaps);
172 struct filecaps *fcaps);
H A Dsyscallsubr.h156 int kern_kqueue(struct thread *td, int flags, struct filecaps *fcaps);
250 mode_t mode, struct filecaps *fcaps);
/freebsd-12.1/sys/kern/
H A Dkern_descrip.c1491 bzero(fcaps, sizeof(*fcaps)); in filecaps_init()
1492 fcaps->fc_nioctls = -1; in filecaps_init()
1577 fcaps->fc_ioctls = NULL; in filecaps_fill()
1578 fcaps->fc_nioctls = -1; in filecaps_fill()
1590 bzero(fcaps, sizeof(*fcaps)); in filecaps_free()
1598 ioctls = fcaps->fc_ioctls; in filecaps_free_prep()
1599 bzero(fcaps, sizeof(*fcaps)); in filecaps_free_prep()
1624 KASSERT(fcaps->fc_ioctls != NULL ? fcaps->fc_nioctls > 0 : in filecaps_validate()
1625 (fcaps->fc_nioctls == -1 || fcaps->fc_nioctls == 0), in filecaps_validate()
1903 if (fcaps != NULL) in _finstall()
[all …]
H A Dsys_procdesc.c255 int flags, struct filecaps *fcaps) in procdesc_falloc() argument
263 return (falloc_caps(td, resultfp, resultfd, fflags, fcaps)); in procdesc_falloc()
H A Duipc_syscalls.c327 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 Duipc_shm.c704 struct filecaps *fcaps) in kern_shm_open() argument
743 error = falloc_caps(td, &fp, &fd, flags & O_CLOEXEC, fcaps); in kern_shm_open()
H A Dvfs_syscalls.c1150 struct filecaps *fcaps; in kern_openat() local
1154 fcaps = &nd.ni_filecaps; in kern_openat()
1157 fcaps = NULL; in kern_openat()
1158 error = finstall(td, fp, &indx, flags, fcaps); in kern_openat()
H A Dkern_event.c973 kern_kqueue(struct thread *td, int flags, struct filecaps *fcaps) in kern_kqueue() argument
986 error = falloc_caps(td, &fp, &fd, flags, fcaps); in kern_kqueue()