Bug 173681 - [PATCH] pam_krb5 leaks file descriptor
[PATCH] pam_krb5 leaks file descriptor
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: pam_krb5 (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Nalin Dahyabhai
Brian Brock
Depends On:
Blocks: 179130 187538
  Show dependency treegraph
Reported: 2005-11-18 16:32 EST by Daniel Colascione
Modified: 2007-11-30 17:07 EST (History)
0 users

See Also:
Fixed In Version: RHEA-2007-0790
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-11-15 11:12:16 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
Fixes file descriptor leak (511 bytes, patch)
2005-11-18 16:33 EST, Daniel Colascione
no flags Details | Diff

External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2007:0790 normal SHIPPED_LIVE pam_krb5 bug fix and enhancement update 2007-11-14 14:38:54 EST

  None (edit)
Description Daniel Colascione 2005-11-18 16:32:35 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050920 Firefox/1.0.7 SUSE/1.0.7-0.1

Description of problem:
When the 'validate' flag is given to pam_krb5 in the PAM configuration, pam_krb5 leaks a file descriptor.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Enable validate for pam_krb5
2. Use pam_krb5 in a process that doesn't die after using PAM (like saslauthd)
3. Use lsof to verify that the file descriptor is being leaked

Actual Results:  One file descriptor is leaked per authentication.

Expected Results:  No files should be leaked.

Additional info:
Comment 1 Daniel Colascione 2005-11-18 16:33:32 EST
Created attachment 121256 [details]
Fixes file descriptor leak
Comment 2 Nalin Dahyabhai 2005-11-21 17:06:38 EST
Note to self: the file handle is stored in the krb5_keytab structure, and the
call to krb5_verify_init_creds overwrites the one we're using when it creates
its own cursor.
Comment 9 errata-xmlrpc 2007-11-15 11:12:16 EST
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.


Note You need to log in before you can comment on or make changes to this bug.