Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 748756 - mount.cifs does not use KRB5_CONFIG
mount.cifs does not use KRB5_CONFIG
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: cifs-utils (Show other bugs)
6.2
Unspecified Unspecified
low Severity low
: rc
: ---
Assigned To: Jeff Layton
Jian Li
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2011-10-25 05:46 EDT by Marko Myllynen
Modified: 2014-06-18 03:42 EDT (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
The cifs.upcall utility previously always used the "/etc/krb5.conf" file regardless of whether the user had specified a custom Kerberos configuration file. This update adds the "--krb5conf" option to cifs.upcall allowing thus the administrator to specify an alternate krb5.conf file. Details for option usage can be seen in the cifs.upcall(8) manual page.
Story Points: ---
Clone Of:
Environment:
Last Closed: 2012-06-20 03:27:43 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
patch -- allow admins to specify an alternate krb5.conf location (1.69 KB, patch)
2012-01-04 14:03 EST, Jeff Layton
no flags Details | Diff


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2012:0902 normal SHIPPED_LIVE Low: cifs-utils security, bug fix, and enhancement update 2012-06-19 15:28:35 EDT

  None (edit)
Description Marko Myllynen 2011-10-25 05:46:22 EDT
Description of problem:
Applications using krb5-libs can use a custom (user specific) krb5.conf by defining KRB5_CONFIG but mount.cifs always uses /etc/krb5.conf regardless of KRB5_CONFIG. It would make testing in some cases a bit easier if the system keytab does not need to be modified while testing CIFS mounts with Kerberos authentication.

Version-Release number of selected component (if applicable):
RHEL 6.2
Comment 2 RHEL Product and Program Management 2011-10-29 01:47:11 EDT
Since RHEL 6.2 External Beta has begun, and this bug remains
unresolved, it has been rejected as it is not proposed as
exception or blocker.

Red Hat invites you to ask your support representative to
propose this request, if appropriate and relevant, in the
next release of Red Hat Enterprise Linux.
Comment 3 Jeff Layton 2011-11-08 10:42:43 EST
I don't think we'll be able to reasonably support this feature. While I'm sure it would be convenient, I don't see it as worth the effort.

When the kernel does an upcall it occurs in a different process context than the process that triggered the upcall. In order to do this, we'd need the upcall program to scrape /proc/<pid>/environ for that process and try to divine the various KRB5* functions out of it.

That's a lot of effort to handle this variable, and I think it would likely be problematic. Another possibility is to add a new command-line parm to cifs.upcall that would allow it to use an alternate krb5.conf. Would that be reasonable?
Comment 4 Marko Myllynen 2011-11-08 10:57:41 EST
Thanks for looking into this.

> I don't think we'll be able to reasonably support this feature. While I'm sure
> it would be convenient, I don't see it as worth the effort.

Yes, this is definitely in the nice-to-have category.

> That's a lot of effort to handle this variable, and I think it would likely be
> problematic. Another possibility is to add a new command-line parm to
> cifs.upcall that would allow it to use an alternate krb5.conf. Would that be
> reasonable?

Sure - it might even be better as it would make things perhaps a bit more explicit.

Thanks.
Comment 5 Jeff Layton 2012-01-04 14:03:34 EST
Created attachment 550749 [details]
patch -- allow admins to specify an alternate krb5.conf location

Something like this patch ought to do it. When you get a chance, could you test it and let me know if it works for you?
Comment 8 Jeff Layton 2012-03-02 08:05:42 EST
Fixed in cifs-utils-4.8.1-7.el6.
Comment 10 Jeff Layton 2012-05-01 06:23:46 EDT
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
The cifs.upcall utility previously always used the "/etc/krb5.conf" file regardless of whether the user had specified a custom Kerberos configuration file. This update adds the "--krb5conf" option to cifs.upcall allowing thus the administrator to specify an alternate krb5.conf file. Details for option usage can be seen in the cifs.upcall(8) manual page.
Comment 11 Jian Li 2012-05-14 01:15:28 EDT
This bug is tested on cifs-utils-4.8.1-10.el6, using test case /kernel/filesystems/cifs/multihost/bz805490-krb5-domain_realm, test steps follow comment 7.
Comment 12 errata-xmlrpc 2012-06-20 03:27:43 EDT
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHSA-2012-0902.html

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