mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-01 08:27:59 +00:00
23f80af2ca
Initially, 'acl' (an 'acl_t *') is allocated, and its ACCESS_ACL and DEFAULT_ACL fields are passed to the 'libc' ACL routines for subsequent allocation. If the '-m' option (merge existing ACL with a new one) is specified, then 'set_acl_mask()' will be called and passed one of the two ACLs. This function, in turn, replaces this given ACL structure by another, freshly allocated. However, the pointer in the 'acl' variable in the caller is not updated. The caller then proceeds to free the ACL, incurring in a double free condition. Submitted by: Pedro Martelletto <pedro at ambientworks.net> Approved by: rwatson (mentor) |
||
---|---|---|
.. | ||
file.c | ||
Makefile | ||
mask.c | ||
merge.c | ||
remove.c | ||
setfacl.1 | ||
setfacl.c | ||
setfacl.h | ||
util.c |