Revert "FROMLIST: overlayfs: inode_owner_or_capable called durin..."
Revert submission 1881578 Reason for revert: broken build in CI Reverted Changes: Id2c6fa6ee:FROMLIST: Add flags option to get xattr method pai... Ifa966dabd:FROMLIST: overlayfs: inode_owner_or_capable called... I46e6c74ff:FROMLIST: overlayfs: override_creds=off option byp... I0b8fe9f1f:FROMLIST: overlayfs: handle XATTR_NOSECURITY flag ... Change-Id: I7650b493f3b5e796f231280fe626312418190822 Signed-off-by: David Anderson <dvander@google.com>
This commit is contained in:
@@ -57,8 +57,7 @@ static struct file *ovl_open_realfile(const struct file *file,
|
|||||||
if (err) {
|
if (err) {
|
||||||
realfile = ERR_PTR(err);
|
realfile = ERR_PTR(err);
|
||||||
} else {
|
} else {
|
||||||
if (old_cred && !inode_owner_or_capable(&init_user_ns,
|
if (!inode_owner_or_capable(&init_user_ns, realinode))
|
||||||
realinode))
|
|
||||||
flags &= ~O_NOATIME;
|
flags &= ~O_NOATIME;
|
||||||
|
|
||||||
realfile = open_with_fake_path(&file->f_path, flags, realinode,
|
realfile = open_with_fake_path(&file->f_path, flags, realinode,
|
||||||
|
|||||||
Reference in New Issue
Block a user