Lines Matching defs:td

66 static int	kern___acl_aclcheck_path(struct thread *td, const char *path,
68 static int kern___acl_delete_path(struct thread *td, const char *path,
70 static int kern___acl_get_path(struct thread *td, const char *path,
72 static int kern___acl_set_path(struct thread *td, const char *path,
74 static int vacl_set_acl(struct thread *td, struct vnode *vp,
76 static int vacl_get_acl(struct thread *td, struct vnode *vp,
78 static int vacl_aclcheck(struct thread *td, struct vnode *vp,
224 vacl_set_acl(struct thread *td, struct vnode *vp, acl_type_t type,
242 error = mac_vnode_check_setacl(td->td_ucred, vp, type, inkernelacl);
247 td->td_ucred, td);
262 vacl_get_acl(struct thread *td, struct vnode *vp, acl_type_t type,
273 error = mac_vnode_check_getacl(td->td_ucred, vp, type);
278 td->td_ucred, td);
294 vacl_delete(struct thread *td, struct vnode *vp, acl_type_t type)
306 error = mac_vnode_check_deleteacl(td->td_ucred, vp, type);
310 error = VOP_SETACL(vp, acl_type_unold(type), 0, td->td_ucred, td);
325 vacl_aclcheck(struct thread *td, struct vnode *vp, acl_type_t type,
336 td->td_ucred, td);
351 sys___acl_get_file(struct thread *td, struct __acl_get_file_args *uap)
354 return (kern___acl_get_path(td, uap->path, uap->type, uap->aclp,
362 sys___acl_get_link(struct thread *td, struct __acl_get_link_args *uap)
365 return(kern___acl_get_path(td, uap->path, uap->type, uap->aclp,
370 kern___acl_get_path(struct thread *td, const char *path, acl_type_t type,
379 error = vacl_get_acl(td, nd.ni_vp, type, aclp);
390 sys___acl_set_file(struct thread *td, struct __acl_set_file_args *uap)
393 return(kern___acl_set_path(td, uap->path, uap->type, uap->aclp,
401 sys___acl_set_link(struct thread *td, struct __acl_set_link_args *uap)
404 return(kern___acl_set_path(td, uap->path, uap->type, uap->aclp,
409 kern___acl_set_path(struct thread *td, const char *path,
418 error = vacl_set_acl(td, nd.ni_vp, type, aclp);
429 sys___acl_get_fd(struct thread *td, struct __acl_get_fd_args *uap)
436 error = getvnode_path(td, uap->filedes,
439 error = vacl_get_acl(td, fp->f_vnode, uap->type, uap->aclp);
440 fdrop(fp, td);
449 sys___acl_set_fd(struct thread *td, struct __acl_set_fd_args *uap)
456 error = getvnode(td, uap->filedes,
459 error = vacl_set_acl(td, fp->f_vnode, uap->type, uap->aclp);
460 fdrop(fp, td);
469 sys___acl_delete_file(struct thread *td, struct __acl_delete_file_args *uap)
472 return (kern___acl_delete_path(td, uap->path, uap->type, FOLLOW));
479 sys___acl_delete_link(struct thread *td, struct __acl_delete_link_args *uap)
482 return (kern___acl_delete_path(td, uap->path, uap->type, NOFOLLOW));
486 kern___acl_delete_path(struct thread *td, const char *path,
495 error = vacl_delete(td, nd.ni_vp, type);
506 sys___acl_delete_fd(struct thread *td, struct __acl_delete_fd_args *uap)
513 error = getvnode(td, uap->filedes,
516 error = vacl_delete(td, fp->f_vnode, uap->type);
517 fdrop(fp, td);
526 sys___acl_aclcheck_file(struct thread *td, struct __acl_aclcheck_file_args *uap)
529 return (kern___acl_aclcheck_path(td, uap->path, uap->type, uap->aclp,
537 sys___acl_aclcheck_link(struct thread *td, struct __acl_aclcheck_link_args *uap)
539 return (kern___acl_aclcheck_path(td, uap->path, uap->type, uap->aclp,
544 kern___acl_aclcheck_path(struct thread *td, const char *path, acl_type_t type,
553 error = vacl_aclcheck(td, nd.ni_vp, type, aclp);
563 sys___acl_aclcheck_fd(struct thread *td, struct __acl_aclcheck_fd_args *uap)
570 error = getvnode_path(td, uap->filedes,
573 error = vacl_aclcheck(td, fp->f_vnode, uap->type, uap->aclp);
574 fdrop(fp, td);