freebsd-dev/bin/setfacl
Edward Tomasz Napierala 23f80af2ca Fix double free in setfacl(1). Description from the author:
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)
2008-09-06 13:17:35 +00:00
..
file.c /*- or .\"- or #- to begin license clauses. 2005-01-10 08:39:26 +00:00
Makefile style.Makefile(5) 2004-06-13 19:22:53 +00:00
mask.c /*- or .\"- or #- to begin license clauses. 2005-01-10 08:39:26 +00:00
merge.c /*- or .\"- or #- to begin license clauses. 2005-01-10 08:39:26 +00:00
remove.c /*- or .\"- or #- to begin license clauses. 2005-01-10 08:39:26 +00:00
setfacl.1 Add hard sentence breaks. 2008-07-06 22:47:10 +00:00
setfacl.c Fix double free in setfacl(1). Description from the author: 2008-09-06 13:17:35 +00:00
setfacl.h /*- or .\"- or #- to begin license clauses. 2005-01-10 08:39:26 +00:00
util.c /*- or .\"- or #- to begin license clauses. 2005-01-10 08:39:26 +00:00