From 40e4c9031652731622315e778a9bcace6cea6cb3 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Tue, 13 Oct 2026 21:11:23 +0900 Subject: internal/acl: use O_PATH descriptor This avoids TOCTOU during hakurei_update_acl. Signed-off-by: Ophestra --- internal/acl/libacl-helper.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/acl/libacl-helper.h') diff --git a/internal/acl/libacl-helper.h b/internal/acl/libacl-helper.h index 753e1109..10711dd3 100644 --- a/internal/acl/libacl-helper.h +++ b/internal/acl/libacl-helper.h @@ -19,6 +19,6 @@ enum hakurei_acl_status { }; enum hakurei_acl_status hakurei_update_acl( - const char *path_p, + int fd, uid_t uid, acl_perm_t perms); -- cgit v1.3.1