From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTPS id AF9F13858C54 for ; Wed, 15 Jun 2022 07:07:55 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org AF9F13858C54 Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-256-hNP2QX_dMxO-VuDiJypgng-1; Wed, 15 Jun 2022 03:07:51 -0400 X-MC-Unique: hNP2QX_dMxO-VuDiJypgng-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id A93D63C025CD; Wed, 15 Jun 2022 07:07:51 +0000 (UTC) Received: from oldenburg.str.redhat.com (unknown [10.39.192.90]) by smtp.corp.redhat.com (Postfix) with ESMTPS id D1F36400F3FF; Wed, 15 Jun 2022 07:07:50 +0000 (UTC) From: Florian Weimer To: Pranjal Goswami Cc: Pranjal Goswami via Libc-help Subject: Re: Need help with adding a new service to nsswitch.conf References: <87r13qqxs7.fsf@oldenburg.str.redhat.com> Date: Wed, 15 Jun 2022 09:07:48 +0200 In-Reply-To: (Pranjal Goswami's message of "Wed, 15 Jun 2022 12:33:27 +0530") Message-ID: <87fsk6qu9n.fsf@oldenburg.str.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.11.54.2 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-6.1 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_LOW, SPF_HELO_NONE, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-help@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-help mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Jun 2022 07:07:58 -0000 * Pranjal Goswami: > I see. So we have an option of building my own NSS module outside the > glibc build system , referencing and using > NSS_DECLARE_MODULE_FUNCTIONS (secmgr) to get to the declarations for > the plug-in functions. So it means that for writing a new module, we > need and NSS_DECLARE_MODULE_FUNCTIONS (secmgr) only. There are > no other changes to be done within the nss folder ? With =E2=80=9Cnss folder=E2=80=9D, do you mean the =E2=80=9Dnss=E2=80=9D su= bdirectory in the glibc source tree? You should not have to deal with the glibc sources at all, you can build your NSS module separately. Thanks, Florian