diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-10-13 21:11:23 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-10-13 21:44:54 +0900 |
| commit | 40e4c9031652731622315e778a9bcace6cea6cb3 (patch) | |
| tree | d349d24c5ddff712d3979254a7eb74f3ca3de88f /internal/acl/libacl-helper.h | |
| parent | 9e95987536f895ef1a989fcd9e69ab84a1b94a17 (diff) | |
internal/acl: use O_PATH descriptor
This avoids TOCTOU during hakurei_update_acl.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/acl/libacl-helper.h')
| -rw-r--r-- | internal/acl/libacl-helper.h | 2 |
1 files changed, 1 insertions, 1 deletions
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); |
