Re: [PATCH 3/4] autofs4 - track uid and gid of last mount requestor

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Eric W. Biederman
Date: Tuesday, March 4, 2008 - 3:16 pm

"Serge E. Hallyn" <serue@us.ibm.com> writes:


I have not looked at many of the implementation possibilities so unfortunately
I don't know what makes for a good implementation.

What I do know is that uids are serialized in filesystems, and their
mapping between namespaces is defined by system administrators.

Both of those properties are different from struct pid.  Which means
a generalized struct user in the kernel can at best hold a cache of the
mappings.

My preliminary investigations suggested that for the kernel filesystem
boundary generating a struct user or a struct group just to use for a
permission check and then to throw it away was wasteful.

However for inkernel entities a struct user sounds practical.

All of which is to say that we can learn lessons from the
implementation of struct pid but that we also have different
requirements so we can only use those lessons in a limited fashion.

Eric
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH 3/4] autofs4 - track uid and gid of last mount ..., Pavel Emelyanov, (Thu Feb 28, 12:51 am)
Re: [autofs] [PATCH 3/4] autofs4 - track uid and gid of la ..., Fabio Olive Leite, (Thu Feb 28, 5:31 am)
Re: [PATCH 3/4] autofs4 - track uid and gid of last mount ..., Serge E. Hallyn, (Thu Feb 28, 12:51 pm)
Re: [PATCH 3/4] autofs4 - track uid and gid of last mount ..., Eric W. Biederman, (Thu Feb 28, 1:33 pm)
Re: [PATCH 3/4] autofs4 - track uid and gid of last mount ..., Serge E. Hallyn, (Fri Feb 29, 10:42 am)
Re: [PATCH 3/4] autofs4 - track uid and gid of last mount ..., Eric W. Biederman, (Sat Mar 1, 5:49 pm)
Re: [PATCH 3/4] autofs4 - track uid and gid of last mount ..., Eric W. Biederman, (Sat Mar 1, 6:13 pm)
Re: [PATCH 3/4] autofs4 - track uid and gid of last mount ..., Eric W. Biederman, (Tue Mar 4, 3:16 pm)