| 485 | } |
| 486 | |
| 487 | static int |
| 488 | kern___acl_delete_path(struct thread *td, const char *path, |
| 489 | acl_type_t type, int follow) |
| 490 | { |
| 491 | struct nameidata nd; |
| 492 | int error; |
| 493 | |
| 494 | NDINIT(&nd, LOOKUP, follow, UIO_USERSPACE, path, td); |
| 495 | error = namei(&nd); |
| 496 | if (error == 0) { |
| 497 | error = vacl_delete(td, nd.ni_vp, type); |
| 498 | NDFREE(&nd, 0); |
| 499 | } |
| 500 | return (error); |
| 501 | } |
| 502 | |
| 503 | /* |
| 504 | * Given a file path, delete an ACL from it. |
no test coverage detected