Bugzilla – Attachment 3362 Details for
Bug 2900
Supplementary groups not set for AuthorizedKeysCommand
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
set supplementary groups in subprocess
subprocess_groups.diff (text/plain), 557 bytes, created by
Kenny To
on 2020-03-08 12:59:08 AEDT
(
hide
)
Description:
set supplementary groups in subprocess
Filename:
MIME Type:
Creator:
Kenny To
Created:
2020-03-08 12:59:08 AEDT
Size:
557 bytes
patch
obsolete
>diff --git a/auth.c b/auth.c >index 086b8ebb..a04f89d5 100644 >--- a/auth.c >+++ b/auth.c >@@ -946,6 +946,10 @@ subprocess(const char *tag, struct passwd *pw, const char *command, > } > closefrom(STDERR_FILENO + 1); > >+ if (initgroups(pw->pw_name, pw->pw_gid) == -1) { >+ error("%s: initgroups %s %u: %s", tag, pw->pw_name, >+ (u_int)pw->pw_gid, strerror(errno)); >+ } > /* Don't use permanently_set_uid() here to avoid fatal() */ > if (setresgid(pw->pw_gid, pw->pw_gid, pw->pw_gid) == -1) { > error("%s: setresgid %u: %s", tag, (u_int)pw->pw_gid,
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 2900
: 3362