Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp7420286rwb; Tue, 6 Dec 2022 05:41:07 -0800 (PST) X-Google-Smtp-Source: AA0mqf4YQcTsI3yj74+zsdii+vMxbniCPNQUHEvuWhMwpkPCEGGbK66VliUY1TmXCYvgBtYDlSw6 X-Received: by 2002:a05:6402:1f0a:b0:459:b29:d896 with SMTP id b10-20020a0564021f0a00b004590b29d896mr75592811edb.9.1670334066976; Tue, 06 Dec 2022 05:41:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670334066; cv=none; d=google.com; s=arc-20160816; b=bEFkxMhddGO+BCHhaIqy9YiZgBSkB9Wnr7effrL03yGz0zBVf0EnivrlBOfpHn9Jht 6vv7FEMX2GI4tVOgpWI72vbuZRH9T08GmeruOAbJCmsAFA8BB8Pls0CoZO4JNVjd4wiu l93YEoZCF9FpYscVfQ9WUtG7v95D6IyIb3atmgS8SL/0Kiml2ruMNQO/0WQS4yyikQfi xAgR/vXWqie4Q/odjqadz/Da0qcOJlLf9Rd5Bu1QeJ8gU76T8apUXhpdCg1fWzFQWFO6 oRgBep9i6nRY4Cpv3qZcMVh/Y++JJzPGisgjIfItpyWxrxzVfAxqXWCooe5/rFXLt3bp igFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=L1nR8Tgkgier7VHLIQPZG2fHeuhK+FbmhRVmq/uyuuc=; b=yH4lXnA1kK/gToffyrQ0z4sm4afAGM5QfIz9FeYS1Gt0oeuR2YIfMjjzorKbnfjo0o 6WoAYiBYMAbi1nQqlJcNmhDswXruLq5tMgzp2jBU66DmZ3EOVAXCkWj0MNFlOHnUn11q ZOyGHw9hEKZP0BYtK83uVMIHcf5wMtLTrceorii47oVcY/WRoK2eh2o1pS8YosKq0fjd YLlp9HB8RWqAHM51qCqT2VLx4Wdl6J1EwSF7l8n7fS9sUbTt6mwmxGDH5LGelRzwZnLE vnKannobpCnfFDk8htMdsrqxZYYzr7sp0q+eXOhrpizt1Y8MUe3SXFmyTTrMI+oVuvfA LI9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=U3vWbS2X; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nc9-20020a1709071c0900b007bc5528a4d7si15809117ejc.47.2022.12.06.05.40.40; Tue, 06 Dec 2022 05:41:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=U3vWbS2X; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S229780AbiLFNdu (ORCPT + 99 others); Tue, 6 Dec 2022 08:33:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35404 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231144AbiLFNdt (ORCPT ); Tue, 6 Dec 2022 08:33:49 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 484B66310 for ; Tue, 6 Dec 2022 05:32:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1670333565; 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=L1nR8Tgkgier7VHLIQPZG2fHeuhK+FbmhRVmq/uyuuc=; b=U3vWbS2XAhIxTQ1PkbCiSuPiQ48QaNUYg6uJXhc9xaaUIACmTeTXQ9BkElULZj89zNzirt cevnmsgabBqSopbu2eesojT6FGK6IjIWoWDgItZTCN/X1phSZ83tA/Lfkw04bKcv+d/JgH HF04FF1qnMNoPL1dsofGWtbl3ScI4u8= Received: from mail-qv1-f69.google.com (mail-qv1-f69.google.com [209.85.219.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-517-Xou79Tj0NvyIcohn-gRt6w-1; Tue, 06 Dec 2022 08:32:44 -0500 X-MC-Unique: Xou79Tj0NvyIcohn-gRt6w-1 Received: by mail-qv1-f69.google.com with SMTP id ng1-20020a0562143bc100b004bb706b3a27so34347783qvb.20 for ; Tue, 06 Dec 2022 05:32:44 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=L1nR8Tgkgier7VHLIQPZG2fHeuhK+FbmhRVmq/uyuuc=; b=K/LxyqcSqff1pvUZB+hgJItHYDRMUS/z63Ye/pqaeEm/O0Ww+65JltaQ2gcZWG3uVd eblNoFdZ7D7EeUnGyRWAE+5nDv1VfmEJAjJV9mHosCS3sE8EbCgWjNRsKW3g8rRXiA0/ BLrkp8lDFAkznhkvfGWnwbVhYQrPVVeW/jR/4LEdrAMF3/QMeoRlqQ79A0Lef4QvUPrA zJIApenx4l5WSbfuo90hKx7h8RENQa4aK+aXLkPQ6JYr4OJEqTnJdxS/BlpE3shT50k+ sNDunrN3YJumqMU2XxVJU6EIXcVKa07Ojggdwk8tBXr/So+/UDquK8Ag7GaFuuEcLSfU bY8g== X-Gm-Message-State: ANoB5pnyfGTuRMaY1/YeeORpqSha0lUDtOXu4uWjLIuRVy8/vNMgTHKI yjyYXVDwLqAQPVhBzIw9/z6AzEcthxcVJ6VuG0tyOKK0TOYP80l/p5QKk8bgRBVzD6Pdt8UClPN O0WSLKXbjgarh97kp8oFb X-Received: by 2002:a05:6214:330a:b0:4c6:c265:9fef with SMTP id mo10-20020a056214330a00b004c6c2659fefmr374618qvb.35.1670333564088; Tue, 06 Dec 2022 05:32:44 -0800 (PST) X-Received: by 2002:a05:6214:330a:b0:4c6:c265:9fef with SMTP id mo10-20020a056214330a00b004c6c2659fefmr374615qvb.35.1670333563698; Tue, 06 Dec 2022 05:32:43 -0800 (PST) Received: from [172.31.1.6] ([70.105.255.216]) by smtp.gmail.com with ESMTPSA id g13-20020a05620a40cd00b006fc7c5d456asm11876310qko.136.2022.12.06.05.32.42 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 06 Dec 2022 05:32:43 -0800 (PST) Message-ID: <3a95b0a2-5833-d517-ff62-a5fa94a7c4ce@redhat.com> Date: Tue, 6 Dec 2022 08:32:42 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.0 Subject: Re: [PATCH] auth-rpcgss-module.service: Don't fail inside linux container. Content-Language: en-US To: Joachim Falk , linux-nfs@vger.kernel.org Cc: NeilBrown , Salvatore Bonaccorso References: <20221126095550.174062-1-joachim.falk@gmx.de> From: Steve Dickson In-Reply-To: <20221126095550.174062-1-joachim.falk@gmx.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On 11/26/22 4:55 AM, Joachim Falk wrote: > Only try to load the auth_rpcgss kernel module if we are not executing > inside a Linux container. Otherwise, the auth-rpcgss-module service will > fail inside a Linux container as the loading of kernel modules is > forbidden for the container. Thus, the "/sbin/modprobe -q auth_rpcgss" > call will fail even if the auth_rpcgss kernel module is already loaded. > This situation occurs when the container host has already loaded the > auth_rpcgss kernel module to enable kerberized NFS service for its > containers. This behavior has been tested with kmod up to version > 30+20220630-3 (current in bookworm as of 2022-09-20). > > Bug-Debian: http://bugs.debian.org/985000 > Discussion-Debian: https://salsa.debian.org/kernel-team/nfs-utils/-/merge_requests/7 > > Signed-off-by: Joachim Falk Committed... (tag: nfs-utils-2-6-3-rc5) steved. > --- > systemd/auth-rpcgss-module.service | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/systemd/auth-rpcgss-module.service b/systemd/auth-rpcgss-module.service > index 45482833..25c9de80 100644 > --- a/systemd/auth-rpcgss-module.service > +++ b/systemd/auth-rpcgss-module.service > @@ -10,6 +10,7 @@ DefaultDependencies=no > Before=gssproxy.service rpc-svcgssd.service rpc-gssd.service > Wants=gssproxy.service rpc-svcgssd.service rpc-gssd.service > ConditionPathExists=/etc/krb5.keytab > +ConditionVirtualization=!container > > [Service] > Type=oneshot > -- > 2.35.1 >