39 lines
1.3 KiB
Diff
39 lines
1.3 KiB
Diff
From c3f8db29db9e7b9bb68b107e932315f147046ac5 Mon Sep 17 00:00:00 2001
|
|
From: Ondrej Mosnacek <omosnace@redhat.com>
|
|
Date: Wed, 3 Jun 2026 11:48:18 +0200
|
|
Subject: [PATCH] ovl: remove unneeded non-const conversion
|
|
|
|
JIRA: https://issues.redhat.com/browse/RHEL-179443
|
|
CVE: CVE-2026-46054
|
|
|
|
commit 3ec2529eca6f175f4e3e87c4534010e044839b38
|
|
Author: Amir Goldstein <amir73il@gmail.com>
|
|
Date: Sat Jun 7 13:53:04 2025 +0200
|
|
|
|
ovl: remove unneeded non-const conversion
|
|
|
|
file_user_path() now takes a const file ptr.
|
|
|
|
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
|
|
Link: https://lore.kernel.org/20250607115304.2521155-3-amir73il@gmail.com
|
|
Signed-off-by: Christian Brauner <brauner@kernel.org>
|
|
|
|
Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
|
|
|
|
diff --git a/fs/overlayfs/file.c b/fs/overlayfs/file.c
|
|
index 3bf52eace698..c8e45f503db3 100644
|
|
--- a/fs/overlayfs/file.c
|
|
+++ b/fs/overlayfs/file.c
|
|
@@ -51,7 +51,7 @@ static struct file *ovl_open_realfile(const struct file *file,
|
|
if (!inode_owner_or_capable(real_idmap, realinode))
|
|
flags &= ~O_NOATIME;
|
|
|
|
- realfile = backing_file_open(file_user_path((struct file *) file),
|
|
+ realfile = backing_file_open(file_user_path(file),
|
|
flags, realpath, current_cred());
|
|
}
|
|
revert_creds(old_cred);
|
|
--
|
|
2.50.1 (Apple Git-155)
|
|
|