Skip to content

Commit f7c4f80

Browse files
committed
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
1 parent 47e9c81 commit f7c4f80

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

sys/rpc/auth.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,10 @@ __END_DECLS
354354
#define RPCSEC_GSS 6 /* RPCSEC_GSS */
355355
#define AUTH_TLS 7 /* Initiate RPC-over-TLS */
356356

357+
/* RFC 5531's prescribed limits for variable-lenth arrays. */
358+
#define AUTH_SYS_MAX_HOSTNAME 255
359+
#define AUTH_SYS_MAX_GROUPS 16 /* Supplementary groups. */
360+
357361
/*
358362
* Pseudo auth flavors for RPCSEC_GSS.
359363
*/

0 commit comments

Comments
 (0)