HomeFreeBSD

sys: Mark ACL conversion routines as __result_use_check

Description

sys: Mark ACL conversion routines as __result_use_check

Both acl_copy_oldacl_into_acl() and acl_copy_acl_into_oldacl() may fail
in some circumstances (e.g., acl.acl_cnt exceeding the capacity of
OLDACL_MAX_ENTRIES). This change marks both routines with
__result_use_check, enforcing check for errors by the caller.

Suggested by: markj
Reviewed by: markj, emaste
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D46254

(cherry picked from commit ef9fc9609a1ff53047577aa7cf51246fc04c954b)
(cherry picked from commit 82fd9219755dac73e51289493e1f024b32bbb2cd)

Details

Provenance
khorben_defora.orgAuthored on Aug 9 2024, 5:37 PM
emasteCommitted on Mon, Sep 9, 8:09 PM
Reviewer
markj
Differential Revision
Restricted Differential Revision
Parents
rGa954348eac32: stand: bump arbitrary build date to 2024-01-01
Branches
Unknown
Tags
Unknown