summaryrefslogtreecommitdiffstats
path: root/libutil/login_cap.c
diff options
context:
space:
mode:
authorRobert Watson <rwatson@FreeBSD.org>2001-09-15 16:12:56 +0000
committerRobert Watson <rwatson@FreeBSD.org>2001-09-15 16:12:56 +0000
commit90574f1004df54faf3f243447914fe49f40b3e02 (patch)
treee2f841bc785485012808a98c323a9a8c9a4d5d6f /libutil/login_cap.c
parent5a3e081f55c2ce9fdb712e23751aaeb62fc85653 (diff)
downloadpw-darwin-90574f1004df54faf3f243447914fe49f40b3e02.tar.gz
pw-darwin-90574f1004df54faf3f243447914fe49f40b3e02.tar.zst
pw-darwin-90574f1004df54faf3f243447914fe49f40b3e02.zip
o Add a comment noting that the early setting of privileges for the purpose
of NFS home directory and root directory processing fails to include additional groups. This doesn't impact the final credential, but does mean that users may be denied login even when additional groups might allow it.
Diffstat (limited to 'libutil/login_cap.c')
-rw-r--r--libutil/login_cap.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/libutil/login_cap.c b/libutil/login_cap.c
index dc93e28..85883be 100644
--- a/libutil/login_cap.c
+++ b/libutil/login_cap.c
@@ -193,8 +193,12 @@ login_getclassbyname(char const *name, const struct passwd *pwd)
static char *login_dbarray[] = { NULL, NULL, NULL };
- /* Switch to user mode before checking/reading its ~/.login_conf */
- /* - some NFSes have root read access disabled. */
+ /*
+ * Switch to user mode before checking/reading its ~/.login_conf
+ * - some NFSes have root read access disabled.
+ *
+ * XXX: This fails to configure additional groups.
+ */
if (dir) {
euid = geteuid();
egid = getegid();