On Wed, May 13, 2020 at 7:13 AM Luis Chamberlain <mcgrof@xxxxxxxxxx> wrote:When will these changes make it into linux-next?
On Wed, May 13, 2020 at 06:49:50AM +0100, Al Viro wrote:Alright, yeah just the export needs to be removed. I have a patch
On Tue, May 12, 2020 at 01:43:05PM -0600, Shuah Khan wrote:Both kernel_read_file_from_fd() and kernel_read_file() are exported
diff --git a/fs/exec.c b/fs/exec.cIncidentally, why is that thing exported?
index 06b4c550af5d..ea24bdce939d 100644
--- a/fs/exec.c
+++ b/fs/exec.c
@@ -1021,8 +1021,8 @@ int kernel_read_file_from_fd(int fd, void **buf, loff_t *size, loff_t max_size,
goto out;
ret = kernel_read_file(f.file, buf, size, max_size, id);
-out:
fdput(f);
+out:
return ret;
because they have users, however kernel_read_file() only has security
stuff as a user. Do we want to get rid of the lsm hook for it?
series dealing with these callers so will add it to my queue.
Regards,
Luis