| 542 | } |
| 543 | |
| 544 | static int |
| 545 | kern___acl_aclcheck_path(struct thread *td, const char *path, acl_type_t type, |
| 546 | struct acl *aclp, int follow) |
| 547 | { |
| 548 | struct nameidata nd; |
| 549 | int error; |
| 550 | |
| 551 | NDINIT(&nd, LOOKUP, follow, UIO_USERSPACE, path, td); |
| 552 | error = namei(&nd); |
| 553 | if (error == 0) { |
| 554 | error = vacl_aclcheck(td, nd.ni_vp, type, aclp); |
| 555 | NDFREE(&nd, 0); |
| 556 | } |
| 557 | return (error); |
| 558 | } |
| 559 | |
| 560 | /* |
| 561 | * Given a file descriptor, check an ACL for it. |
no test coverage detected