summaryrefslogtreecommitdiffstats
path: root/groupaccess.c
diff options
context:
space:
mode:
authorjca@openbsd.org <jca@openbsd.org>2024-11-04 22:59:15 +0100
committerDamien Miller <djm@mindrot.org>2024-11-07 00:01:05 +0100
commit593a0b65c55c1e06a8c22b084aefc395aedb0127 (patch)
treefdf0926159c96d1bb2b6be04e647c3283c49971f /groupaccess.c
parentAdd git signing key for Tim Rice (diff)
downloadopenssh-593a0b65c55c1e06a8c22b084aefc395aedb0127.tar.xz
openssh-593a0b65c55c1e06a8c22b084aefc395aedb0127.zip
upstream: Ignore extra groups that don't fit in the buffer passed
to getgrouplist(3) Our kernel supports 16 groups (NGROUPS_MAX), but nothing prevents an admin from adding a user to more groups. With that tweak we'll keep on ignoring them instead of potentially reading past the buffer passed to getgrouplist(3). That behavior is explicitely described in initgroups(3). ok millert@ gilles@ OpenBSD-Commit-ID: a959fc45ea3431b36f52eda04faefc58bcde00db
Diffstat (limited to '')
-rw-r--r--groupaccess.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/groupaccess.c b/groupaccess.c
index 80d301915..9d03ded0c 100644
--- a/groupaccess.c
+++ b/groupaccess.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: groupaccess.c,v 1.17 2019/03/06 22:14:23 dtucker Exp $ */
+/* $OpenBSD: groupaccess.c,v 1.18 2024/11/04 21:59:15 jca Exp $ */
/*
* Copyright (c) 2001 Kevin Steves. All rights reserved.
*