[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <202405311413.DF87BBE491@keescook>
Date: Fri, 31 May 2024 14:14:04 -0700
From: Kees Cook <kees@...nel.org>
To: Adrian Ratiu <adrian.ratiu@...labora.com>
Cc: linux-fsdevel@...r.kernel.org, linux-security-module@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-hardening@...r.kernel.org,
linux-doc@...r.kernel.org, kernel@...labora.com, gbiv@...gle.com,
ryanbeltran@...gle.com, inglorion@...gle.com, ajordanr@...gle.com,
jorgelo@...omium.org, Jann Horn <jannh@...gle.com>,
Christian Brauner <brauner@...nel.org>
Subject: Re: [PATCH v4 1/2] proc: pass file instead of inode to proc_mem_open
On Fri, May 24, 2024 at 10:28:57PM +0300, Adrian Ratiu wrote:
> The file struct is required in proc_mem_open() so its
> f_mode can be checked when deciding whether to allow or
> deny /proc/*/mem open requests via the new read/write
> and foll_force restriction mechanism.
>
> Thus instead of directly passing the inode to the fun,
> we pass the file and get the inode inside it.
>
> Cc: Jann Horn <jannh@...gle.com>
> Cc: Kees Cook <keescook@...omium.org>
> Cc: Christian Brauner <brauner@...nel.org>
> Signed-off-by: Adrian Ratiu <adrian.ratiu@...labora.com>
With the nommu errors pointed out by 0day fixed:
Reviewed-by: Kees Cook <kees@...nel.org>
--
Kees Cook
Powered by blists - more mailing lists