| /freebsd-13-stable/sys/sys/ |
| HD | 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); 237 int flags, struct filecaps *fcaps); 242 struct filecaps *fcaps); 244 struct filecaps *fcaps); 246 struct filecaps *fcaps);
|
| HD | syscallsubr.h | 191 int kern_kqueue(struct thread *td, int flags, struct filecaps *fcaps); 301 mode_t mode, struct filecaps *fcaps); 303 mode_t mode, int shmflags, struct filecaps *fcaps,
|
| /freebsd-13-stable/sys/compat/cloudabi/ |
| HD | cloudabi_fd.c | 90 struct filecaps fcaps = {}; in cloudabi_sys_fd_create1() local 94 cap_rights_init(&fcaps.fc_rights, CAP_FSTAT, CAP_FTRUNCATE, in cloudabi_sys_fd_create1() 97 &fcaps)); in cloudabi_sys_fd_create1() 388 struct filecaps fcaps; in cloudabi_sys_fd_stat_get() local 393 &fcaps); in cloudabi_sys_fd_stat_get() 409 convert_capabilities(&fcaps.fc_rights, fsb.fs_filetype, in cloudabi_sys_fd_stat_get() 411 filecaps_free(&fcaps); in cloudabi_sys_fd_stat_get()
|
| HD | cloudabi_proc.c | 78 struct filecaps fcaps = {}; in cloudabi_sys_proc_fork() local 81 cap_rights_init(&fcaps.fc_rights, CAP_FSTAT, CAP_EVENT); in cloudabi_sys_proc_fork() 85 fr.fr_pd_fcaps = &fcaps; in cloudabi_sys_proc_fork()
|
| HD | cloudabi_file.c | 198 struct filecaps fcaps = {}; in cloudabi_sys_file_open() local 309 &fcaps.fc_rights); in cloudabi_sys_file_open() 310 if (cap_rights_is_set(&fcaps.fc_rights)) in cloudabi_sys_file_open() 311 fcaps.fc_fcntls = CAP_FCNTL_SETFL; in cloudabi_sys_file_open() 313 error = finstall(td, fp, &fd, fflags, &fcaps); in cloudabi_sys_file_open()
|
| /freebsd-13-stable/sys/kern/ |
| HD | kern_descrip.c | 122 static u_long *filecaps_free_prep(struct filecaps *fcaps); 1795 filecaps_fill(struct filecaps *fcaps) in filecaps_fill() argument 1798 CAP_ALL(&fcaps->fc_rights); in filecaps_fill() 1799 fcaps->fc_ioctls = NULL; in filecaps_fill() 1800 fcaps->fc_nioctls = -1; in filecaps_fill() 1801 fcaps->fc_fcntls = CAP_FCNTL_ALL; in filecaps_fill() 1808 filecaps_free_ioctl(struct filecaps *fcaps) in filecaps_free_ioctl() argument 1811 free(fcaps->fc_ioctls, M_FILECAPS); in filecaps_free_ioctl() 1812 fcaps->fc_ioctls = NULL; in filecaps_free_ioctl() 1816 filecaps_free(struct filecaps *fcaps) in filecaps_free() argument [all …]
|
| HD | 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()
|
| HD | 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()
|
| HD | uipc_shm.c | 1137 int shmflags, struct filecaps *fcaps, const char *name __unused) in kern_shm_open2() argument 1199 error = falloc_caps(td, &fp, &fd, flags & O_CLOEXEC, fcaps); in kern_shm_open2()
|
| HD | vfs_syscalls.c | 1120 struct filecaps *fcaps; in openatfp() local 1242 fcaps = &nd.ni_filecaps; in openatfp() 1245 fcaps = NULL; in openatfp() 1246 error = finstall_refed(td, fp, &indx, flags, fcaps); in openatfp()
|
| HD | kern_event.c | 1083 kern_kqueue(struct thread *td, int flags, struct filecaps *fcaps) in kern_kqueue() argument 1096 error = falloc_caps(td, &fp, &fd, flags, fcaps); in kern_kqueue()
|