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:
Paul Lawrence
2025-02-14 13:06:27 -08:00
parent d3e34d865e
commit a29d61b7f8
+1 -2
View File
@@ -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,