"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 --
| Christoph Lameter | Re: [RFC 00/15] x86_64: Optimize percpu accesses |
| Linus Torvalds | Re: [Patch v2] Make PCI extended config space (MMCONFIG) a driver opt-in |
| Greg Kroah-Hartman | [PATCH 005/196] Chinese: add translation of SubmittingDrivers |
| Bart Van Assche | Integration of SCST in the mainstream Linux kernel |
git: | |
| David Miller | [GIT]: Networking |
| David Miller | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Christoph Hellwig | Re: [PATCH 06/32] IGET: Mark iget() and read_inode() as being obsolete [try #2] |
| Gerrit Renker | [PATCH 26/37] dccp: Integration of dynamic feature activation - part 1 (socket set... |
