| 409 | } |
| 410 | |
| 411 | static int |
| 412 | kern___acl_set_path(struct thread *td, const char *path, |
| 413 | acl_type_t type, const struct acl *aclp, int follow) |
| 414 | { |
| 415 | struct nameidata nd; |
| 416 | int error; |
| 417 | |
| 418 | NDINIT(&nd, LOOKUP, follow | AUDITVNODE1, UIO_USERSPACE, path, td); |
| 419 | error = namei(&nd); |
| 420 | if (error == 0) { |
| 421 | error = vacl_set_acl(td, nd.ni_vp, type, aclp); |
| 422 | NDFREE(&nd, 0); |
| 423 | } |
| 424 | return (error); |
| 425 | } |
| 426 | |
| 427 | /* |
| 428 | * Given a file descriptor, get an ACL for it. |
no test coverage detected