Lines Matching refs:cmds
360 u_long *cmds; in cap_ioctl_check() local
375 cmds = fdep->fde_ioctls; in cap_ioctl_check()
377 if (cmds[i] == cmd) in cap_ioctl_check()
388 cap_ioctl_limit_check(struct filedescent *fdep, const u_long *cmds, in cap_ioctl_limit_check() argument
405 if (cmds[i] == ocmds[j]) in cap_ioctl_limit_check()
416 kern_cap_ioctls_limit(struct thread *td, int fd, u_long *cmds, size_t ncmds) in kern_cap_ioctls_limit() argument
439 error = cap_ioctl_limit_check(fdep, cmds, ncmds); in kern_cap_ioctls_limit()
445 fdep->fde_ioctls = cmds; in kern_cap_ioctls_limit()
449 cmds = ocmds; in kern_cap_ioctls_limit()
454 free(cmds, M_FILECAPS); in kern_cap_ioctls_limit()
461 u_long *cmds; in sys_cap_ioctls_limit() local
471 cmds = NULL; in sys_cap_ioctls_limit()
473 cmds = malloc(sizeof(cmds[0]) * ncmds, M_FILECAPS, M_WAITOK); in sys_cap_ioctls_limit()
474 error = copyin(uap->cmds, cmds, sizeof(cmds[0]) * ncmds); in sys_cap_ioctls_limit()
476 free(cmds, M_FILECAPS); in sys_cap_ioctls_limit()
481 return (kern_cap_ioctls_limit(td, uap->fd, cmds, ncmds)); in sys_cap_ioctls_limit()
495 dstcmds = uap->cmds; in sys_cap_ioctls_get()