Lines Matching defs:type

32  * Type-specific routines go into subr_acl_<type>.c.
63 acl_type_t type, struct acl *aclp);
65 acl_type_t type, struct acl *aclp);
67 acl_type_t type, struct acl *aclp);
116 * calling these syscalls (libc) expects basing on "type" argument - if it's
125 acl_copyin(void *user_acl, struct acl *kernel_acl, acl_type_t type)
130 switch (type) {
149 acl_copyout(struct acl *kernel_acl, void *user_acl, acl_type_t type)
154 switch (type) {
176 * Convert "old" type - ACL_TYPE_{ACCESS,DEFAULT}_OLD - into its "new"
178 * with new kernel. Fixing 'type' for old binaries with new libc
182 acl_type_unold(int type)
184 switch (type) {
192 return (type);
208 vacl_set_acl(struct thread *td, struct vnode *vp, acl_type_t type,
216 error = acl_copyin(aclp, inkernelacl, type);
224 error = mac_vnode_check_setacl(td->td_ucred, vp, type, inkernelacl);
228 error = VOP_SETACL(vp, acl_type_unold(type), inkernelacl,
244 vacl_get_acl(struct thread *td, struct vnode *vp, acl_type_t type,
253 error = mac_vnode_check_getacl(td->td_ucred, vp, type);
257 error = VOP_GETACL(vp, acl_type_unold(type), inkernelacl,
265 error = acl_copyout(inkernelacl, aclp, type);
274 vacl_delete(struct thread *td, struct vnode *vp, acl_type_t type)
284 error = mac_vnode_check_deleteacl(td->td_ucred, vp, type);
288 error = VOP_SETACL(vp, acl_type_unold(type), 0, td->td_ucred, td);
301 vacl_aclcheck(struct thread *td, struct vnode *vp, acl_type_t type,
308 error = acl_copyin(aclp, inkernelacl, type);
311 error = VOP_ACLCHECK(vp, acl_type_unold(type), inkernelacl,
335 error = vacl_get_acl(td, nd.ni_vp, uap->type, uap->aclp);
353 error = vacl_get_acl(td, nd.ni_vp, uap->type, uap->aclp);
371 error = vacl_set_acl(td, nd.ni_vp, uap->type, uap->aclp);
389 error = vacl_set_acl(td, nd.ni_vp, uap->type, uap->aclp);
408 error = vacl_get_acl(td, fp->f_vnode, uap->type, uap->aclp);
427 error = vacl_set_acl(td, fp->f_vnode, uap->type, uap->aclp);
445 error = vacl_delete(td, nd.ni_vp, uap->type);
463 error = vacl_delete(td, nd.ni_vp, uap->type);
482 error = vacl_delete(td, fp->f_vnode, uap->type);
500 error = vacl_aclcheck(td, nd.ni_vp, uap->type, uap->aclp);
518 error = vacl_aclcheck(td, nd.ni_vp, uap->type, uap->aclp);
537 error = vacl_aclcheck(td, fp->f_vnode, uap->type, uap->aclp);