]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ovl: copyattr after setting POSIX ACL
authorMiklos Szeredi <mszeredi@redhat.com>
Thu, 1 Sep 2016 09:12:00 +0000 (11:12 +0200)
committerShan Hai <shan.hai@oracle.com>
Fri, 4 Aug 2017 05:56:00 +0000 (13:56 +0800)
commitd7c96681380e1563308d06e6066572e84c4584d8
treeba5e368d01b2e8c4eda8b180001bf7ca517b2439
parent33c76395ff30f93a90a7f22c1cde8eeb4c0166f7
ovl: copyattr after setting POSIX ACL

Setting POSIX acl may also modify the file mode, so need to copy that up to
the overlay inode.

Reported-by: Eryu Guan <eguan@redhat.com>
Fixes: d837a49bd57f ("ovl: fix POSIX ACL setting")
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Orabug: 26401569

(backport upstream commit ce31513a9114f74fe3e9caa6534d201bdac7238d)
call d_inode to get inode from dentry.

Signed-off-by: Shan Hai <shan.hai@oracle.com>
Reviewed-by: Somasundaram Krishnasamy <somasundaram.krishnasamy@oracle.com>
fs/overlayfs/super.c