Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Description of problem:
Moments after obtaining a TGT, it disappears from the system.
Version-Release number of selected component (if applicable):
gssproxy-0.4.1-13.el7.x86_64
How reproducible:
Everytime
Steps to Reproduce:
1. kinit admin
2. klist
3. klist
Actual results:
TGT is no longer there
Expected results:
TGT is no longer there
This is ultimately an rpc.gssd issue.
rpc.gssd is running as root but it is not setting a custom ccache.
So it ends up clobbering root's ccaches whenever it needs machine credentials.
rpc.gssd needs to be given an env var argument so that it uses a different ccache by default.
It is OK to make it use a FILE ccache as it doesn't need anything fancy, however it should store the cache prefereably under /run in a custom rpc.gssd directory.
/etc/sysconfig.nfs should have a new variable like this:
KRB5CCNAME=FILE:/run/rcp.gssd/machine_ccache
And the nfs package should add a systemd tmpfiles configuration to create /run/rpc.gssd at boot with permissions 0700
Steve, let me know if anything is unclear.
(In reply to Simo Sorce from comment #24)
> This is ultimately an rpc.gssd issue.
> rpc.gssd is running as root but it is not setting a custom ccache.
> So it ends up clobbering root's ccaches whenever it needs machine
> credentials.
>
> rpc.gssd needs to be given an env var argument so that it uses a different
> ccache by default.
> It is OK to make it use a FILE ccache as it doesn't need anything fancy,
> however it should store the cache prefereably under /run in a custom
> rpc.gssd directory.
>
> /etc/sysconfig.nfs should have a new variable like this:
> KRB5CCNAME=FILE:/run/rcp.gssd/machine_ccache
>
> And the nfs package should add a systemd tmpfiles configuration to create
> /run/rpc.gssd at boot with permissions 0700
>
>
> Steve, let me know if anything is unclear.
What has changed where rpcgssd needs to set the ccache?
Note that nfs-utils_env.sh is quite limited and doesn;t just copy all env vars from /etc/sysconfig/nfs, but only the ones it knows about, this is very suboptimal and should be changed as well, it makes little sense to have to hack unit files just to add environment variables. the env util should copy them all (or we should stop using this env util and directly point at /etc/sysconfig/nfs ...)
Steve,
btw please sync with me before doing this, there may be an interaction with the new way rpc.gssd used threads setting fsuid that may cause issues finding uses ccaches via gssapi if we set a variable :/
Simo, just FYI...
In my limited testing, creating a separate keytab for rpc.gssd does allow a machine to mount a sec=krb5 mount, but gssproxy still fails to get the TGT for a non-root user/client using gssproxy to access the contents within the mount.
My simple scenario is a non-root user "mythtv" with a keytab stored in /var/lib/gssproxy/clients/<mythtv-uid>.keytab which had been using gssproxy in F26 to access a sec=krb5i mount upon systemd.automount. While the machine correctly mounts the filesystem, the "mythtv" user only gets permission denied.
This may be what you were referring to when you stated "there may be an interaction with the new way rpc.gssd used threads setting fsuid that may cause issues finding uses ccaches via gssapi if we set a variable."
Yes, if the variable is set then gssproxy impersonation will not work.
We are retiring that suggest as a viable workaround and working on an alternative solution.
Comment 47Red Hat Bugzilla
2023-09-15 00:04:12 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 500 days