| Summary: | sshd doesn't need to call setproject() when configured to use PAM on Solaris | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | Portable OpenSSH | Reporter: | brent.paulson | ||||||
| Component: | sshd | Assignee: | Darren Tucker <dtucker> | ||||||
| Status: | CLOSED FIXED | ||||||||
| Severity: | minor | CC: | dtucker | ||||||
| Priority: | P5 | ||||||||
| Version: | 6.9p1 | ||||||||
| Hardware: | SPARC | ||||||||
| OS: | Solaris | ||||||||
| Bug Depends on: | |||||||||
| Bug Blocks: | 2543 | ||||||||
| Attachments: |
|
||||||||
|
Description
brent.paulson
2015-07-07 07:06:19 AEST
Comment on attachment 2661 [details] patch to limit setproject(3PROJECT) calls to non-PAM configurations >-#ifdef USE_SOLARIS_PROJECTS >+#ifdef USE_SOLARIS_PROJECTS && !defined(USE_PAM) This part isn't correct: USE_PAM is a compile time flag but PAM can be enabled and disabled at runtime. > /* if solaris projects were detected, set the default now */ > if (getuid() == 0 || geteuid() == 0) > solaris_set_default_project(pw); I think that should be something like if ((getuid() == 0 || geteuid() == 0) && !options.use_pam) solaris_set_default_project(pw); Created attachment 2742 [details]
Check PAM at runtime before setting Solaris project
Could you please confirm that this diff works as expected? Thanks.
We haven't received confirmation that this works so pushing to next release. > Could you please confirm that this diff works as expected? Thanks.
Yes, I've confirmed the patch works as expected. Thanks!
Thanks, applied. Bulk mark issues CLOSED in 7.3 release |