Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Sun, 24 Jan 2016 02:56:43 +0100
From: Jann Horn <>
To: Al Viro <>
Cc: "Eric W. Biederman" <>,,
	Kees Cook <>,
	Andrew Morton <>,
	Richard Weinberger <>,
	Andy Lutomirski <>,
	Robert Święcki <>,
	Dmitry Vyukov <>,
	David Howells <>,
	Miklos Szeredi <>,
	Kostya Serebryany <>,
	Alexander Potapenko <>,
	Eric Dumazet <>,
	Sasha Levin <>,,
Subject: Re: Re: [PATCH 1/2] sysctl: expand use of

On Sun, Jan 24, 2016 at 01:43:42AM +0000, Al Viro wrote:
> On Sat, Jan 23, 2016 at 07:20:17PM -0600, Eric W. Biederman wrote:
> > Yep.  That is about the size of it.  file * used to be passed to the
> > sysctl methods but it was removed several years ago because no one was
> > using it.
> Generally cred would be better...

> Alternatively we could eat one more
> pointer in task_struct and stash a reference to that sucker there, rather
> than adding an explicit argument (again, with cred instead of file).
> Not sure...

I think it makes sense to do this the same way as the rest of the VFS code
here (which passes the creds down through an argument).

And adding the arguments everywhere doesn't really mean more work - either
way, someone should probably go through all of those sysctl handlers and
fix them up to use the file creds.

Download attachment "signature.asc" of type "application/pgp-signature" (820 bytes)

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.