Re: [PATCH 2/3] CRED: Split the task security data and move part of it into struct cred

From: David Howells
Date: Mon Sep 24 2007 - 11:53:21 EST

Serge E. Hallyn <serge@xxxxxxxxxx> wrote:

> Ah, ok, so the daemon would use this to act under the user's
> credentials. I was thinking the user would be using this to act
> under the daemon's or kernel's sid.

Think kernel service rather than daemon. NFSd provides its own daemons to
override the security of, whereas cachefiles runs in the process context of
whoever called NFS.

> Between that and David's response, that this is only for the duration of
> one syscall (IIUC),

That's more or less correct. You have to add the pagefault handler to that

> My worry arose from the fact that I don't see
> security_cred_kernel_act_as() being called anywhere in this patchset...

Look in:

[PATCH 04/22] CRED: Request a credential record for a kernel service

Which was part of a patchset I sent on the 21st Sept. get_kernel_cred() is in
turn used by:

[PATCH 13/22] CacheFiles: A cache that backs onto a mounted filesystem

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at