Learn more about these different git repos.
Other Git URLs
sssd returns '/' for emtpy home directories which could create security issues as users might not get trapped in a directory.
Using the following:
#include <stdio.h> #include <sys/types.h> #include <pwd.h> int main(int argc, char *argv[]) { if (argc > 1) { struct passwd *pwd; pwd = getpwnam(argv[1]); if (pwd != NULL) { printf("%s homedir: '%s'\n", pwd->pw_name, pwd->pw_dir); } } return 0; }
$ ./a.out eviluser16798 eviluser16798 homedir: '' $ sssd $ ./a.out eviluser16798 eviluser16798 homedir: '/'
Metadata Update from @jhrozek: - Custom field rhbz adjusted to https://bugzilla.redhat.com/show_bug.cgi?id=1652719
Issue linked to Bugzilla: Bug 1652719
Metadata Update from @jhrozek: - Issue close_status updated to: Fixed - Issue status updated to: Closed (was: Open)
Metadata Update from @jhrozek: - Issue set to the milestone: SSSD 2.1
Metadata Update from @jhrozek: - Custom field rhbz adjusted to https://bugzilla.redhat.com/show_bug.cgi?id=1652719, https://bugzilla.redhat.com/show_bug.cgi?id=1656619 (was: https://bugzilla.redhat.com/show_bug.cgi?id=1652719)
Issue linked to Bugzilla: Bug 1656619
Metadata Update from @jhrozek: - Custom field rhbz adjusted to https://bugzilla.redhat.com/show_bug.cgi?id=1652719, https://bugzilla.redhat.com/show_bug.cgi?id=1656619, https://bugzilla.redhat.com/show_bug.cgi?id=1659843 (was: https://bugzilla.redhat.com/show_bug.cgi?id=1652719, https://bugzilla.redhat.com/show_bug.cgi?id=1656619)
Issue linked to Bugzilla: Bug 1659843
Metadata Update from @jhrozek: - Custom field rhbz adjusted to https://bugzilla.redhat.com/show_bug.cgi?id=1652719, https://bugzilla.redhat.com/show_bug.cgi?id=1656619, https://bugzilla.redhat.com/show_bug.cgi?id=1659843, https://bugzilla.redhat.com/show_bug.cgi?id=1660693 (was: https://bugzilla.redhat.com/show_bug.cgi?id=1652719, https://bugzilla.redhat.com/show_bug.cgi?id=1656619, https://bugzilla.redhat.com/show_bug.cgi?id=1659843)
Issue linked to Bugzilla: Bug 1660693
SSSD is moving from Pagure to Github. This means that new issues and pull requests will be accepted only in SSSD's github repository.
This issue has been cloned to Github and is available here: - https://github.com/SSSD/sssd/issues/4886
If you want to receive further updates on the issue, please navigate to the github issue and click on subscribe button.
subscribe
Thank you for understanding. We apologize for all inconvenience.
Log in to comment on this ticket.