Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3486718pxj; Mon, 24 May 2021 07:51:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzK0GidN28Ursh/fCmJZzBZHPbjhPSgksg9fhtiBJF9yQrJCTkZ1pxNRWKc6fYIi7NFrlSq X-Received: by 2002:a5e:a912:: with SMTP id c18mr8269771iod.74.1621867869345; Mon, 24 May 2021 07:51:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621867869; cv=none; d=google.com; s=arc-20160816; b=eDybF4/sUFtco2rlV8ZX9p2pSW+jk5YReSwZddonB2fvtZm/32D+AoIOr8WJGADNEX DUWIRTIT7q0OLEAa1bf8Lj0vfVnhiKNTFj8ygctjvJHQcZq/Fj2y9Kdp8o9qMJ7uXz/u xoTKkYsKJLVOS+PFGcNqPdch+NsVlmZOeMs0yLEl04mup9bxqfC++OEZVXCZXhW19OB0 qeIMSLwQUo7yV3lPWnyPGpON9pZmCQflzm055Ub+s1CLcr8rEdOU245W5vSLhdd6JL7e TH9c86+Q1283DB/5RwOHW2JOMiBlc+39URU4Zb+D2PSxYCwdjI9+9NsYkF6xkqaFD9vD b2qw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=FuwT3ctKk4xVdw6+dePmYKxpmod0OzT4Muotu5Xq2YQ=; b=hmJskvIHVgZijVNxFN9c0B5vvBe1qRN/ezIJUrYiFe1SUqm9osOGCgqTe1wVwCMKIj qvr+zt1Z9+jkKCz+mUYDJnvBVvkG+L7kITm7iJwUcfyQhyWgiN7FM2UpjXks969eBAlq Y/1w7+6eZqjwSn+OBF4MCEGFTstNx3a0rQbqMmpe9JKB7k8SMkZnYME9Z55ZUNMd9oZW HbnsI4eoDJVo4Ln4vx418BDrqeo7e/cpE7MIPXGAbjzOFDC/SZ8yngXCTRtRqXLxTYMz xH2SduDgTiDc6L7eiLjoaDjd1uvCXiYu/zdj46e49uy0TvwZE3n1NQ+OZlxlkT+0Yz+Q 7E3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=MGjcFIe6; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u10si14644938jad.109.2021.05.24.07.50.55; Mon, 24 May 2021 07:51:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=MGjcFIe6; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233705AbhEXOwU (ORCPT + 99 others); Mon, 24 May 2021 10:52:20 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:39266 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233824AbhEXOuT (ORCPT ); Mon, 24 May 2021 10:50:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1621867730; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=FuwT3ctKk4xVdw6+dePmYKxpmod0OzT4Muotu5Xq2YQ=; b=MGjcFIe6HQ+CE8ivbPUwD5SDTe1CHz48lNvgOMC45F6KCyfeLrTIgWomVhJq1NSO1l96Ti C+Xm9xOc9thAHRAmcaDXSPmyIfVU5e+mI1HF6x33BPEHwlvr5VcMVcVmG5fmGxm1o9ip+3 +7/KXHvtubdG6WVuoSumU0RrdSmpxbU= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-274-Jn65E5Z_NS-BiEj1r18Qqg-1; Mon, 24 May 2021 10:48:48 -0400 X-MC-Unique: Jn65E5Z_NS-BiEj1r18Qqg-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id DF912180FD6C; Mon, 24 May 2021 14:48:47 +0000 (UTC) Received: from [10.10.66.2] (ovpn-66-2.rdu2.redhat.com [10.10.66.2]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 96CCC5C230; Mon, 24 May 2021 14:48:47 +0000 (UTC) From: "Benjamin Coddington" To: "Jason Keltz" Cc: linux-nfs@vger.kernel.org Subject: Re: ksu problem with sec=krb5 and nfs Date: Mon, 24 May 2021 10:48:46 -0400 Message-ID: <0D324C0D-A00C-4A44-9814-2D717F830DF9@redhat.com> In-Reply-To: References: <7714ABF4-E9CD-424B-BF7F-6F1B91F58C2B@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On 24 May 2021, at 10:44, Jason Keltz wrote: > Hi Benjamin, > > That's exactly it - I definately want ksu to be writing that exact > file.  Any idea why it isn't, and why it matters if the home > directory is using sec=krb5 or not? Because if you're mounting with sec=krb5, then the kernel's going to upcall to rpc.gssd, which is going to try to find the credential cache to establish a context with the NFS server. None of that has to happen with sec=sys. As far as where ksu puts the target cred cache - I don't know the details there. Dig into the ksu source, or docs.. maybe you need to set the krb5cc default cred cache. Ben