Revert "ANDROID: overlayfs: inode_owner_or_capable called during execv"
This reverts commit 9b4ff1899e.
The override_creds patches are no longer needed thanks to the work
documented in the below bug.
Test: adb remount still works
Bug: 388912628
Signed-off-by: Paul Lawrence <paullawrence@google.com>
Change-Id: I11eea9e47396e6a4cd1292c57c26276e81233ed1
This commit is contained in:
+1
-2
@@ -45,8 +45,7 @@ static struct file *ovl_open_realfile(const struct file *file,
|
||||
if (err) {
|
||||
realfile = ERR_PTR(err);
|
||||
} else {
|
||||
if (old_cred && !inode_owner_or_capable(real_idmap,
|
||||
realinode))
|
||||
if (!inode_owner_or_capable(real_idmap, realinode))
|
||||
flags &= ~O_NOATIME;
|
||||
|
||||
realfile = backing_file_open(&file->f_path, flags, realpath,
|
||||
|
||||
Reference in New Issue
Block a user