diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-11-17 10:19:00 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-11-20 10:30:23 +0100 |
commit | 065d72ce7eefe5a40199f10f4399d53fa29fc6b7 (patch) | |
tree | f7f91fa35a56821ed1f560cbdc7138a8be0f8463 /cpukit | |
parent | Add supplementary groups to user environment (diff) | |
download | rtems-065d72ce7eefe5a40199f10f4399d53fa29fc6b7.tar.bz2 |
shell: Get supplementary group IDs in login check
Diffstat (limited to 'cpukit')
-rw-r--r-- | cpukit/libmisc/shell/login_check.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cpukit/libmisc/shell/login_check.c b/cpukit/libmisc/shell/login_check.c index 372d059631..9d853f8d1f 100644 --- a/cpukit/libmisc/shell/login_check.c +++ b/cpukit/libmisc/shell/login_check.c @@ -33,6 +33,7 @@ #include <crypt.h> #include <rtems/shell.h> +#include <rtems/userenv.h> bool rtems_shell_login_check( const char *user, @@ -76,6 +77,7 @@ bool rtems_shell_login_check( setgid(pw.pw_gid); seteuid(pw.pw_uid); setegid(pw.pw_gid); + rtems_current_user_env_getgroups(); } return ok; |