[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAHk-=wiWYnr+V1-RbgvxkuD6uSQUJWGuounVMXThyH8jJ49c2w@mail.gmail.com>
Date: Sat, 23 Nov 2024 09:18:52 -0800
From: Linus Torvalds <torvalds@...ux-foundation.org>
To: Al Viro <viro@...iv.linux.org.uk>
Cc: Amir Goldstein <amir73il@...il.com>, Miklos Szeredi <miklos@...redi.hu>,
Christian Brauner <brauner@...nel.org>, linux-kernel@...r.kernel.org,
linux-fsdevel@...r.kernel.org, linux-unionfs@...r.kernel.org
Subject: Re: [GIT PULL] overlayfs updates for 6.13
On Fri, 22 Nov 2024 at 22:14, Al Viro <viro@...iv.linux.org.uk> wrote:
>
> On Fri, Nov 22, 2024 at 10:09:04PM -0800, Linus Torvalds wrote:
>
> > (a) add a new "dup_cred()" helper
> >
> > /* Get the cred without clearing the 'non_rcu' flag */
> > const struct cred *dup_cred(const struct cred *cred)
> > { get_new_cred((struct cred *)cred); return cred; }
>
> Umm... Something like hold_cred() might be better - dup usually
> implies copying an object...
Ack. "dup" is clearly a horrible name, and I'm ashamed and properly chastised.
Linus
Powered by blists - more mailing lists