[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20150313120816.GA2527@mguzik>
Date: Fri, 13 Mar 2015 13:08:17 +0100
From: Mateusz Guzik <mguzik@...hat.com>
To: Alexander Viro <viro@...iv.linux.org.uk>,
Serge Hallyn <serge.hallyn@...onical.com>
Cc: Paul Moore <pmoore@...hat.com>, Eric Paris <eparis@...hat.com>,
linux-fsdevel@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-security-module@...r.kernel.org
Subject: Re: [PATCH 0/2] avoid prepare_creds in faccessat when possible
On Mon, Mar 09, 2015 at 09:35:45PM +0100, Mateusz Guzik wrote:
> Sometimes faccessat needs to modify current thread's credentials, but
> calls prepare_creds unconditionally.
>
> However, typically resulting credentials are identical to original ones
> and in that case newcredentials are unnecessary. We can detect this before
> allocating anything.
>
> This patch series adds a helper which allows comparing capability sets and
> modifies faccessat to use it.
>
> Mateusz Guzik (2):
> CAPABILITIES: add cap_isequal helper
> fs: avoid unnecessary prepare_creds in faccessat
>
Can I get some (N)ACKs on this one?
Thanks,
--
Mateusz Guzik
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists