Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 1445835 Details for
Bug 1583735
Permission denied reading authorized_keys when setting AuthorizedKeysCommand
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
proposed patch
file_1583735.txt (text/plain), 1.01 KB, created by
Jakub Jelen
on 2018-05-30 12:59:43 UTC
(
hide
)
Description:
proposed patch
Filename:
MIME Type:
Creator:
Jakub Jelen
Created:
2018-05-30 12:59:43 UTC
Size:
1.01 KB
patch
obsolete
>diff --git a/uidswap.c b/uidswap.c >index 8bf6b244..179fbcce 100644 >--- a/uidswap.c >+++ b/uidswap.c >@@ -51,6 +51,7 @@ static int privileged = 0; > static int temporarily_use_uid_effective = 0; > static gid_t *saved_egroups = NULL, *user_groups = NULL; > static int saved_egroupslen = -1, user_groupslen = -1; >+static int user_groups_uid = -1; > > /* > * Temporarily changes to the given uid. If the effective user >@@ -95,7 +96,7 @@ temporarily_use_uid(struct passwd *pw) > } > > /* set and save the user's groups */ >- if (user_groupslen == -1) { >+ if (user_groupslen == -1 || user_groups_uid != pw->pw_uid) { > if (initgroups(pw->pw_name, pw->pw_gid) < 0) > fatal("initgroups: %s: %.100s", pw->pw_name, > strerror(errno)); >@@ -111,6 +112,7 @@ temporarily_use_uid(struct passwd *pw) > } else { /* user_groupslen == 0 */ > free(user_groups); > } >+ user_groups_uid = pw->pw_uid; > } > /* Set the effective uid to the given (unprivileged) uid. */ > if (setgroups(user_groupslen, user_groups) < 0)
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 1583735
: 1445835