|
Bugzilla – Full Text Bug Listing |
| Summary: | inconsistent PAM_USER value | ||
|---|---|---|---|
| Product: | Sudo | Reporter: | Bdale Garbee <bdale> |
| Component: | Sudo | Assignee: | Todd C. Miller <Todd.Miller> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | low | ||
| Version: | 1.8.2 | ||
| Hardware: | PC | ||
| OS: | Linux | ||
|
Description
Bdale Garbee
2011-09-27 00:06:52 MDT
The problem here is that in the case of a user authenticating, the pam handle is opened before the sudo monitoring process forks. If no authentication is required, the pam handle is not created until resource limits need to be set, which is after the monitor process has started. Since the monitor process is the one calling pam_close_session, there is no pam handle if the user didn't authenticate, which explains the missing close session in this case. Also, since PAM_USER is updated right before resource limits are set this change is not reflected in the monitor, which explains the PAM_USER mismatch. This will be fixed in sudo 1.8.3. Sudo 1.8.3 is out now which has this fixed. |