/freebsd/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) in fileargs_create_limit() argument 177 if (rightsp != NULL) { in fileargs_create_limit() 178 nvlist_add_binary(limits, "cap_rights", rightsp, in fileargs_create_limit() 179 sizeof(*rightsp)); in fileargs_create_limit() 214 cap_rights_t *rightsp, int operations) in fileargs_init() argument 223 mode, rightsp, operations); in fileargs_init() 232 mode_t mode, cap_rights_t *rightsp, int operations) in fileargs_cinit() argument 241 mode, rightsp, operations); in fileargs_cinit()
|
/freebsd/sys/sys/ |
H A D | file.h | 259 int fget(struct thread *td, int fd, cap_rights_t *rightsp, struct file **fpp); 260 int fget_mmap(struct thread *td, int fd, cap_rights_t *rightsp, 262 int fget_read(struct thread *td, int fd, cap_rights_t *rightsp, 264 int fget_write(struct thread *td, int fd, cap_rights_t *rightsp, 266 int fget_fcntl(struct thread *td, int fd, cap_rights_t *rightsp, 289 int fgetvp(struct thread *td, int fd, cap_rights_t *rightsp, 291 int fgetvp_exec(struct thread *td, int fd, cap_rights_t *rightsp, 295 int fgetvp_read(struct thread *td, int fd, cap_rights_t *rightsp, 297 int fgetvp_write(struct thread *td, int fd, cap_rights_t *rightsp,
|
H A D | namei.h | 215 #define NDINIT_ATRIGHTS(ndp, op, flags, segflg, namep, dirfd, rightsp) \ argument 216 NDINIT_ALL(ndp, op, flags, segflg, namep, dirfd, NULL, rightsp) 243 #define NDINIT_ALL(ndp, op, flags, segflg, namep, dirfd, startdir, rightsp) \ argument 246 cap_rights_t *_rightsp = (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 | 490 int getsock_cap(struct thread *td, int fd, cap_rights_t *rightsp, 492 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 1604 …char rightsp_l_[PADL_(cap_rights_t *)]; cap_rights_t * rightsp; char rightsp_r_[PADR_(cap_rights_t… member
|
/freebsd/sys/contrib/openzfs/include/os/freebsd/spl/sys/ |
H A D | file.h | 42 getf_caps(int fd, cap_rights_t *rightsp) in getf_caps() argument 46 if (fget(curthread, fd, rightsp, &fp) == 0) in getf_caps()
|
/freebsd/usr.bin/procstat/ |
H A D | procstat_files.c | 247 width_capability(cap_rights_t *rightsp) in width_capability() argument 254 if (cap_rights_is_set(rightsp, cap_desc[i].cd_right)) { in width_capability() 265 print_capability(cap_rights_t *rightsp, u_int capwidth) in print_capability() argument 270 for (i = width_capability(rightsp); i < capwidth; i++) { in print_capability() 278 if (cap_rights_is_set(rightsp, cap_desc[i].cd_right)) { in print_capability()
|
/freebsd/lib/libsysdecode/tests/ |
H A D | sysdecode_test.c | 45 cap_rights_t *rightsp, const char *tab[]) in check_sysdecode_cap_rights() argument 51 sysdecode_cap_rights(fp, rightsp); in check_sysdecode_cap_rights()
|
/freebsd/sys/kern/ |
H A D | sys_procdesc.c | 121 procdesc_find(struct thread *td, int fd, cap_rights_t *rightsp, in procdesc_find() argument 128 error = fget(td, fd, rightsp, &fp); in procdesc_find() 168 kern_pdgetpid(struct thread *td, int fd, cap_rights_t *rightsp, pid_t *pidp) in kern_pdgetpid() argument 173 error = fget(td, fd, rightsp, &fp); in kern_pdgetpid()
|
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) in fget() argument 3466 return (_fget(td, fd, fpp, 0, rightsp)); in fget() 3470 fget_mmap(struct thread *td, int fd, cap_rights_t *rightsp, vm_prot_t *maxprotp, in fget_mmap() argument 3475 error = _fget(td, fd, fpp, 0, rightsp); in fget_mmap() 3487 MPASS(cap_rights_is_set(rightsp, CAP_MMAP)); in fget_mmap() 3489 error = fget_unlocked_seq(td, fd, rightsp, &fp, &seq); in fget_mmap() 3514 fget_read(struct thread *td, int fd, cap_rights_t *rightsp, struct file **fpp) in fget_read() argument 3517 return (_fget(td, fd, fpp, FREAD, rightsp)); in fget_read() 3521 fget_write(struct thread *td, int fd, cap_rights_t *rightsp, struct file **fpp) in fget_write() argument [all …]
|
H A D | sys_capability.c | 274 error = copyin(uap->rightsp, &rights, sizeof(rights.cr_rights[0])); in sys_cap_rights_limit() 281 error = copyin(uap->rightsp, &rights, in sys_cap_rights_limit() 343 error = copyout(&rights, uap->rightsp, sizeof(rights.cr_rights[0]) * n); in sys___cap_rights_get()
|
H A D | vfs_syscalls.c | 1042 flags_to_rights(int flags, cap_rights_t *rightsp) in flags_to_rights() argument 1045 cap_rights_set_one(rightsp, CAP_FEXECVE); in flags_to_rights() 1051 cap_rights_set_one(rightsp, CAP_READ); in flags_to_rights() 1054 cap_rights_set_one(rightsp, CAP_READ); in flags_to_rights() 1057 cap_rights_set_one(rightsp, CAP_WRITE); in flags_to_rights() 1059 cap_rights_set_one(rightsp, CAP_SEEK); in flags_to_rights() 1065 cap_rights_set_one(rightsp, CAP_CREATE); in flags_to_rights() 1068 cap_rights_set_one(rightsp, CAP_FTRUNCATE); in flags_to_rights() 1071 cap_rights_set_one(rightsp, CAP_FSYNC); in flags_to_rights() 1074 cap_rights_set_one(rightsp, CAP_FLOCK); in flags_to_rights() [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, in ksem_get() argument 597 error = fget(td, id, rightsp, &fp); in ksem_get()
|
H A D | uipc_syscalls.c | 88 getsock_cap(struct thread *td, int fd, cap_rights_t *rightsp, in getsock_cap() argument 94 error = fget_cap(td, fd, rightsp, &fp, havecapsp); in getsock_cap() 108 getsock(struct thread *td, int fd, cap_rights_t *rightsp, struct file **fpp) in getsock() argument 113 error = fget_unlocked(td, fd, rightsp, &fp); in getsock()
|
H A D | systrace_args.c | 2819 uarg[a++] = (intptr_t)p->rightsp; /* cap_rights_t * */ in systrace_args() 2971 uarg[a++] = (intptr_t)p->rightsp; /* cap_rights_t * */ in systrace_args()
|
/freebsd/lib/libsysdecode/ |
H A D | flags.c | 1012 sysdecode_cap_rights(FILE *fp, cap_rights_t *rightsp) in sysdecode_cap_rights() argument 1019 for (i = 0; i < CAPARSIZE(rightsp); i++) { in sysdecode_cap_rights() 1020 if (CAPIDXBIT(rightsp->cr_rights[i]) != 1 << i) { in sysdecode_cap_rights() 1026 diff = *rightsp; in sysdecode_cap_rights() 1028 if (cap_rights_is_set(rightsp, t->val)) { in sysdecode_cap_rights()
|
/freebsd/sys/security/audit/ |
H A D | bsm_token.c | 834 au_to_rights(cap_rights_t *rightsp) in au_to_rights() argument 840 GET_TOKEN_AREA(t, dptr, sizeof(u_char) + sizeof(*rightsp)); in au_to_rights() 843 for (i = 0; i < nitems(rightsp->cr_rights); i++) in au_to_rights() 844 ADD_U_INT64(dptr, rightsp->cr_rights[i]); in au_to_rights()
|
H A D | audit_arg.c | 965 audit_arg_rights(cap_rights_t *rightsp) in audit_arg_rights() argument 973 ar->k_ar.ar_arg_rights = *rightsp; in audit_arg_rights()
|
H A D | audit.h | 139 void audit_arg_rights(cap_rights_t *rightsp);
|
/freebsd/sys/bsm/ |
H A D | audit_record.h | 260 token_t *au_to_rights(cap_rights_t *rightsp);
|
/freebsd/lib/libsys/ |
H A D | _libsys.h | 794 int __sys___cap_rights_get(int version, int fd, cap_rights_t * rightsp); 811 int __sys_cap_rights_limit(int fd, cap_rights_t * rightsp);
|
/freebsd/usr.bin/kdump/ |
H A D | kdump.c | 1862 ktrcaprights(cap_rights_t *rightsp) in ktrcaprights() argument 1866 sysdecode_cap_rights(stdout, rightsp); in ktrcaprights()
|
/freebsd/sys/compat/freebsd32/ |
H A D | freebsd32_systrace_args.c | 2708 uarg[a++] = (intptr_t)p->rightsp; /* cap_rights_t * */ in systrace_args() 2874 uarg[a++] = (intptr_t)p->rightsp; /* cap_rights_t * */ in systrace_args()
|