]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: Validate the length of on-disk ACLs
authorAndreas Gruenbacher <agruenba@redhat.com>
Wed, 17 Feb 2016 05:45:50 +0000 (16:45 +1100)
committerDave Chinner <david@fromorbit.com>
Wed, 17 Feb 2016 05:45:50 +0000 (16:45 +1100)
commit22b8a8604ce660de1afbfab9cbab9ebfd7198950
tree34d0eadcc1f4f28f1c8f1bc853cc7a3e246eb636
parent7ebb7646b1bb871a2fc292f90680a0fb963cd6f1
xfs: Validate the length of on-disk ACLs

Source kernel commit 86a21c79745ca97676cbd47f8608839382cc0448

In xfs_acl_from_disk, instead of trusting that xfs_acl.acl_cnt is correct,
make sure that the length of the attributes is correct as well.  Also, turn
the aclp parameter into a const pointer.

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
libxfs/xfs_format.h