Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Dec 2025 09:19:07 +0000
From:      Olivier Certner <olce@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: f15270ef49f9 - stable/14 - sys/rpc: Define AUTH_SYS_MAX_{GROUPS,HOSTNAME}
Message-ID:  <6945188b.3eaa2.5a8cc480@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch stable/14 has been updated by olce:

URL: https://cgit.FreeBSD.org/src/commit/?id=f15270ef49f93cb949c2d8bcc65caf44f2d36295

commit f15270ef49f93cb949c2d8bcc65caf44f2d36295
Author:     Olivier Certner <olce@FreeBSD.org>
AuthorDate: 2025-10-07 07:51:23 +0000
Commit:     Olivier Certner <olce@FreeBSD.org>
CommitDate: 2025-12-19 09:16:44 +0000

    sys/rpc: Define AUTH_SYS_MAX_{GROUPS,HOSTNAME}
    
    As, respectively, the maximum number of "supplementary" groups and the
    maximum hostname size allowed in the credentials structure for AUTH_SYS
    (aka, AUTH_UNIX).
    
    Will be used in subsequent commits.
    
    Reviewed by:    rmacklem
    MFC after:      2 days
    Sponsored by:   The FreeBSD Foundation
    Differential Revision:  https://reviews.freebsd.org/D52961
    
    (cherry picked from commit f7c4f800cc0b4fac1c99cda8e22d46b67592f9fa)
---
 sys/rpc/auth.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/sys/rpc/auth.h b/sys/rpc/auth.h
index e431be847628..6a2ae64e2b89 100644
--- a/sys/rpc/auth.h
+++ b/sys/rpc/auth.h
@@ -358,6 +358,10 @@ __END_DECLS
 #define RPCSEC_GSS	6		/* RPCSEC_GSS */
 #define	AUTH_TLS	7		/* Initiate RPC-over-TLS */
 
+/* RFC 5531's prescribed limits for variable-lenth arrays. */
+#define AUTH_SYS_MAX_HOSTNAME	255
+#define AUTH_SYS_MAX_GROUPS	16	/* Supplementary groups. */
+
 /*
  * Pseudo auth flavors for RPCSEC_GSS.
  */


help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6945188b.3eaa2.5a8cc480>