summaryrefslogtreecommitdiffstats
path: root/cpukit
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2014-11-17 10:19:00 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2014-11-20 10:30:23 +0100
commit065d72ce7eefe5a40199f10f4399d53fa29fc6b7 (patch)
treef7f91fa35a56821ed1f560cbdc7138a8be0f8463 /cpukit
parentAdd supplementary groups to user environment (diff)
downloadrtems-065d72ce7eefe5a40199f10f4399d53fa29fc6b7.tar.bz2
shell: Get supplementary group IDs in login check
Diffstat (limited to 'cpukit')
-rw-r--r--cpukit/libmisc/shell/login_check.c2
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;