[openssh-commits] [openssh] 04/04: Add _permit_setugid for OpenBSD.

git+noreply at mindrot.org git+noreply at mindrot.org
Thu Nov 26 19:19:01 AEDT 2026


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

dtucker pushed a commit to branch V_10_6
in repository openssh.

commit e9a3f54de26f88f8b8b9edcdca8a15f0d9b44a39
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 9951345dd..829db2d34 100644
--- a/ssh-agent.c
+++ b/ssh-agent.c
@@ -105,6 +105,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