diff options
| author | Robert Watson <rwatson@FreeBSD.org> | 2001-09-15 17:09:39 +0000 |
|---|---|---|
| committer | Robert Watson <rwatson@FreeBSD.org> | 2001-09-15 17:09:39 +0000 |
| commit | 2c19b38f620297100a6177713f45ae01b30be740 (patch) | |
| tree | b4698650e914f8a85c2073abd026d2319f2b243f | |
| parent | 4236ba194c29ac1562adc79f14453231194ed85f (diff) | |
Notes
| -rw-r--r-- | usr.bin/login/login.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/usr.bin/login/login.c b/usr.bin/login/login.c index 35a52948467c..93c745fce8c1 100644 --- a/usr.bin/login/login.c +++ b/usr.bin/login/login.c @@ -394,7 +394,13 @@ main(argc, argv) lc = login_getpwclass(pwd); quietlog = login_getcapbool(lc, "hushlogin", 0); - /* Switching needed for NFS with root access disabled */ + /* + * Switching needed for NFS with root access disabled. + * + * XXX: This change fails to modify the additional groups for the + * process, and as such, may restrict rights normally granted + * through those groups. + */ (void)setegid(pwd->pw_gid); (void)seteuid(rootlogin ? 0 : pwd->pw_uid); if (!*pwd->pw_dir || chdir(pwd->pw_dir) < 0) { |
