[openssh-commits] [openssh] branch master updated: Add _permit_setugid for OpenBSD.

git+noreply at mindrot.org git+noreply at mindrot.org
Wed Nov 18 10:30:32 AEDT 2026


This is an automated email from the git hooks/post-receive script.

dtucker pushed a commit to branch master
in repository openssh.

The following commit(s) were added to refs/heads/master by this push:
     new 0b54e9952 Add _permit_setugid for OpenBSD.
0b54e9952 is described below

commit 0b54e9952f91d421fc4188f947fcf27b554abdbd
Author: Darren Tucker <dtucker at dtucker.net>
AuthorDate: Wed Nov 18 10:28:37 2026 +1100

    Add _permit_setugid for OpenBSD.
    
    OpenBSD now requires this to mark that the binary is allowed to be (in
    this case) setgid, otherwise it'll abort at startup.
---
 ssh-agent.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/ssh-agent.c b/ssh-agent.c
index be0de2a91..3059069a2 100644
--- a/ssh-agent.c
+++ b/ssh-agent.c
@@ -107,6 +107,10 @@
 /* Max length of username constraint */
 #define AGENT_USER_CONSTRAINT_MAX_LEN	256
 
+#ifdef __OpenBSD__
+mode_t _permit_setugid = S_ISGID;
+#endif
+
 /* XXX store hostkey_sid in a refcounted tree */
 
 typedef enum {

-- 
To stop receiving notification emails like this one, please contact
djm at mindrot.org.


More information about the openssh-commits mailing list