/freebsd-current/sys/contrib/openzfs/include/os/freebsd/spl/sys/ |
H A D | file.h | 42 getf_caps(int fd, cap_rights_t *rightsp) argument 46 if (fget(curthread, fd, rightsp, &fp) == 0)
|
/freebsd-current/lib/libcasper/services/cap_fileargs/ |
H A D | cap_fileargs.h | 50 cap_rights_t *rightsp, int operations); 52 int flags, mode_t mode, cap_rights_t *rightsp, int operations); 75 cap_rights_t *rightsp __unused, int operations __unused) { 89 mode_t mode, cap_rights_t *rightsp, int operations) 92 return (fileargs_init(argc, argv, flags, mode, rightsp, operations));
|
H A D | cap_fileargs.c | 166 mode_t mode, cap_rights_t *rightsp, int operations) 177 if (rightsp != NULL) { 178 nvlist_add_binary(limits, "cap_rights", rightsp, 179 sizeof(*rightsp)); 214 cap_rights_t *rightsp, int operations) 223 mode, rightsp, operations); 232 mode_t mode, cap_rights_t *rightsp, int operations) 241 mode, rightsp, operations); 165 fileargs_create_limit(int argc, const char * const *argv, int flags, mode_t mode, cap_rights_t *rightsp, int operations) argument 213 fileargs_init(int argc, char *argv[], int flags, mode_t mode, cap_rights_t *rightsp, int operations) argument 231 fileargs_cinit(cap_channel_t *cas, int argc, char *argv[], int flags, mode_t mode, cap_rights_t *rightsp, int operations) argument
|
/freebsd-current/lib/libsysdecode/tests/ |
H A D | sysdecode_test.c | 45 cap_rights_t *rightsp, const char *tab[]) 51 sysdecode_cap_rights(fp, rightsp); 44 check_sysdecode_cap_rights(FILE *fp, char **bufp, size_t *szp, cap_rights_t *rightsp, const char *tab[]) argument
|
/freebsd-current/sys/sys/ |
H A D | namei.h | 215 #define NDINIT_ATRIGHTS(ndp, op, flags, segflg, namep, dirfd, rightsp) \ 216 NDINIT_ALL(ndp, op, flags, segflg, namep, dirfd, NULL, rightsp) 243 #define NDINIT_ALL(ndp, op, flags, segflg, namep, dirfd, startdir, rightsp) \ 246 cap_rights_t *_rightsp = (rightsp); \
|
H A D | file.h | 256 int fget(struct thread *td, int fd, cap_rights_t *rightsp, struct file **fpp); 257 int fget_mmap(struct thread *td, int fd, cap_rights_t *rightsp, 259 int fget_read(struct thread *td, int fd, cap_rights_t *rightsp, 261 int fget_write(struct thread *td, int fd, cap_rights_t *rightsp, 263 int fget_fcntl(struct thread *td, int fd, cap_rights_t *rightsp, 286 int fgetvp(struct thread *td, int fd, cap_rights_t *rightsp, 288 int fgetvp_exec(struct thread *td, int fd, cap_rights_t *rightsp, 292 int fgetvp_read(struct thread *td, int fd, cap_rights_t *rightsp, 294 int fgetvp_write(struct thread *td, int fd, cap_rights_t *rightsp,
|
H A D | filedesc.h | 278 int getvnode(struct thread *td, int fd, cap_rights_t *rightsp, 280 int getvnode_path(struct thread *td, int fd, cap_rights_t *rightsp,
|
H A D | socketvar.h | 449 int getsock_cap(struct thread *td, int fd, cap_rights_t *rightsp, 451 int getsock(struct thread *td, int fd, cap_rights_t *rightsp,
|
H A D | sysproto.h | 1518 char rightsp_l_[PADL_(cap_rights_t *)]; cap_rights_t * rightsp; char rightsp_r_[PADR_(cap_rights_t *)]; member in struct:__cap_rights_get_args 1604 char rightsp_l_[PADL_(cap_rights_t *)]; cap_rights_t * rightsp; char rightsp_r_[PADR_(cap_rights_t *)]; member in struct:cap_rights_limit_args
|
/freebsd-current/usr.bin/procstat/ |
H A D | procstat_files.c | 247 width_capability(cap_rights_t *rightsp) argument 254 if (cap_rights_is_set(rightsp, cap_desc[i].cd_right)) { 265 print_capability(cap_rights_t *rightsp, u_int capwidth) argument 270 for (i = width_capability(rightsp); i < capwidth; i++) { 278 if (cap_rights_is_set(rightsp, cap_desc[i].cd_right)) {
|
/freebsd-current/sys/kern/ |
H A D | sys_procdesc.c | 121 procdesc_find(struct thread *td, int fd, cap_rights_t *rightsp, argument 128 error = fget(td, fd, rightsp, &fp); 168 kern_pdgetpid(struct thread *td, int fd, cap_rights_t *rightsp, pid_t *pidp) argument 173 error = fget(td, fd, rightsp, &fp);
|
H A D | sys_capability.c | 273 error = copyin(uap->rightsp, &rights, sizeof(rights.cr_rights[0])); 280 error = copyin(uap->rightsp, &rights, 342 error = copyout(&rights, uap->rightsp, sizeof(rights.cr_rights[0]) * n);
|
H A D | kern_descrip.c | 107 cap_rights_t *rightsp, struct kinfo_file *kif, 3463 fget(struct thread *td, int fd, cap_rights_t *rightsp, struct file **fpp) argument 3466 return (_fget(td, fd, fpp, 0, rightsp)); 3470 fget_mmap(struct thread *td, int fd, cap_rights_t *rightsp, vm_prot_t *maxprotp, argument 3475 error = _fget(td, fd, fpp, 0, rightsp); 3487 MPASS(cap_rights_is_set(rightsp, CAP_MMAP)); 3489 error = fget_unlocked_seq(td, fd, rightsp, &fp, &seq); 3514 fget_read(struct thread *td, int fd, cap_rights_t *rightsp, struct file **fpp) argument 3517 return (_fget(td, fd, fpp, FREAD, rightsp)); 3521 fget_write(struct thread *td, int fd, cap_rights_t *rightsp, struc argument 3528 fget_fcntl(struct thread *td, int fd, cap_rights_t *rightsp, int needfcntl, struct file **fpp) argument 3589 fgetvp(struct thread *td, int fd, cap_rights_t *rightsp, struct vnode **vpp) argument 3628 fgetvp_read(struct thread *td, int fd, cap_rights_t *rightsp, struct vnode **vpp) argument 3635 fgetvp_exec(struct thread *td, int fd, cap_rights_t *rightsp, struct vnode **vpp) argument 3643 fgetvp_write(struct thread *td, int fd, cap_rights_t *rightsp, struct vnode **vpp) argument 4501 export_file_to_kinfo(struct file *fp, int fd, cap_rights_t *rightsp, struct kinfo_file *kif, struct filedesc *fdp, int flags) argument 4582 export_file_to_sb(struct file *fp, int fd, cap_rights_t *rightsp, struct export_fd_buf *efbuf) argument [all...] |
H A D | uipc_sem.c | 126 static int ksem_get(struct thread *td, semid_t id, cap_rights_t *rightsp, 590 ksem_get(struct thread *td, semid_t id, cap_rights_t *rightsp, argument 597 error = fget(td, id, rightsp, &fp);
|
H A D | vfs_syscalls.c | 1042 flags_to_rights(int flags, cap_rights_t *rightsp) argument 1045 cap_rights_set_one(rightsp, CAP_FEXECVE); 1051 cap_rights_set_one(rightsp, CAP_READ); 1054 cap_rights_set_one(rightsp, CAP_READ); 1057 cap_rights_set_one(rightsp, CAP_WRITE); 1059 cap_rights_set_one(rightsp, CAP_SEEK); 1065 cap_rights_set_one(rightsp, CAP_CREATE); 1068 cap_rights_set_one(rightsp, CAP_FTRUNCATE); 1071 cap_rights_set_one(rightsp, CAP_FSYNC); 1074 cap_rights_set_one(rightsp, CAP_FLOC 4327 getvnode_path(struct thread *td, int fd, cap_rights_t *rightsp, struct file **fpp) argument 4365 getvnode(struct thread *td, int fd, cap_rights_t *rightsp, struct file **fpp) argument [all...] |
H A D | uipc_syscalls.c | 88 getsock_cap(struct thread *td, int fd, cap_rights_t *rightsp, argument 94 error = fget_cap(td, fd, rightsp, &fp, havecapsp); 108 getsock(struct thread *td, int fd, cap_rights_t *rightsp, struct file **fpp) argument 113 error = fget_unlocked(td, fd, rightsp, &fp);
|
H A D | uipc_mqueue.c | 2164 _getmq(struct thread *td, int fd, cap_rights_t *rightsp, _fgetf func, argument 2170 error = func(td, fd, rightsp, fpp);
|
H A D | systrace_args.c | 2818 uarg[a++] = (intptr_t)p->rightsp; /* cap_rights_t * */ 2970 uarg[a++] = (intptr_t)p->rightsp; /* cap_rights_t * */
|
/freebsd-current/lib/libsysdecode/ |
H A D | flags.c | 1012 sysdecode_cap_rights(FILE *fp, cap_rights_t *rightsp) argument 1019 for (i = 0; i < CAPARSIZE(rightsp); i++) { 1020 if (CAPIDXBIT(rightsp->cr_rights[i]) != 1 << i) { 1026 diff = *rightsp; 1028 if (cap_rights_is_set(rightsp, t->val)) {
|
/freebsd-current/sys/security/audit/ |
H A D | bsm_token.c | 834 au_to_rights(cap_rights_t *rightsp) argument 840 GET_TOKEN_AREA(t, dptr, sizeof(u_char) + sizeof(*rightsp)); 843 for (i = 0; i < nitems(rightsp->cr_rights); i++) 844 ADD_U_INT64(dptr, rightsp->cr_rights[i]);
|
H A D | audit.h | 139 void audit_arg_rights(cap_rights_t *rightsp);
|
H A D | audit_arg.c | 965 audit_arg_rights(cap_rights_t *rightsp) argument 973 ar->k_ar.ar_arg_rights = *rightsp;
|
/freebsd-current/sys/bsm/ |
H A D | audit_record.h | 260 token_t *au_to_rights(cap_rights_t *rightsp);
|
/freebsd-current/usr.bin/kdump/ |
H A D | kdump.c | 1834 ktrcaprights(cap_rights_t *rightsp) argument 1838 sysdecode_cap_rights(stdout, rightsp);
|
/freebsd-current/lib/libsys/ |
H A D | _libsys.h | 792 int __sys___cap_rights_get(int version, int fd, cap_rights_t * rightsp); 809 int __sys_cap_rights_limit(int fd, cap_rights_t * rightsp);
|