|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Minios-devel] [UNIKRAFT PATCH 6/6] lib/posix-user: Add more group file related functions
On 06.12.19 14:41, Costin Lupu wrote: We currently provide only a single group. This can be extended easily, if it will be needed. Can you add a short description what the implementation suppose to do and how it is implemented on a high level? It looks to me that you are adding the iteration. Signed-off-by: Costin Lupu <costin.lupu@xxxxxxxxx> --- lib/posix-user/user.c | 64 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) diff --git a/lib/posix-user/user.c b/lib/posix-user/user.c index 0d6ca3fb..004eee1b 100644 --- a/lib/posix-user/user.c +++ b/lib/posix-user/user.c @@ -60,6 +60,12 @@ UK_SLIST_HEAD(uk_entry_list, struct passwd_entry);static struct uk_entry_list passwds; +static void init_groups(void); It is not part of this patch - but I just see it here: Can you use an Unikraft constructor (ukctortab) or Unikraft Initcall (ukinittab) instead? This is to make sure that this subsystem is initialized before any constructor of the application (preinit_array and initarray) is called.
I think it will probably make sense to declare groups_iter as thread-local static variable as soon as HAVE_SCHED is defined (same would need to be done with users_iter). It should also be fine to put a comment for this as TODO for the future. _______________________________________________ Minios-devel mailing list Minios-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/minios-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |