[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <15538.1531949263@warthog.procyon.org.uk>
Date: Wed, 18 Jul 2018 22:27:43 +0100
From: David Howells <dhowells@...hat.com>
To: Linus Torvalds <torvalds@...ux-foundation.org>
Cc: dhowells@...hat.com, Al Viro <viro@...iv.linux.org.uk>,
Miklos Szeredi <mszeredi@...hat.com>,
Stephen Rothwell <sfr@...b.auug.org.au>,
linux-fsdevel <linux-fsdevel@...r.kernel.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: Re: [RFC] call_with_creds()
Linus Torvalds <torvalds@...ux-foundation.org> wrote:
> and then read/write/open could just inc/dec the cred_poison counter
> (when the debug option is set).
As I may have said, I have tried modifying the kernel to pass the cred pointer
down. The drivers and ioctl() implementations are/were particularly nasty in
this respect. So many of them were doing checks against the current thread,
not f_cred.
I think I need to work out some way to automate the process of adding in the
extra parameter as it's not something that I think can be trivially done with
coccinelle.
David
Powered by blists - more mailing lists