Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp2804000rda; Wed, 25 Oct 2023 12:48:07 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHMIwMOq97K2yMMhdPKfQAZBqpjHmIwAtTz+FejxgGt6f10sdlcKNGa+8pHv8LiOzaP2kWm X-Received: by 2002:a05:6808:912:b0:3a7:2120:8bb with SMTP id w18-20020a056808091200b003a7212008bbmr16773534oih.17.1698263286654; Wed, 25 Oct 2023 12:48:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698263286; cv=none; d=google.com; s=arc-20160816; b=w+OsN66cQFyG5sBxIiZ3n5FOaHSxJbDyBPxGfnq++0q4/wtg0Ud265/+m/9d2Ajd/6 PX+RmEE3kBPXL0E7rgMmA7cj2+sXvA2xhkRveebdJtjd/x064yEhR6hpRels/Ons2Vql Pp3kFzohSC9UXkPWAndq/sX6A3xxg5Q3dafeN52NOV64eQFCfbKGgxs3v5Ou848uLaLo BIBRirBtnx8uJUtgS8BcFlzpIzOccT1wYtdvWeWniD48lArG0H31z/5I4UW83cmr5ymY z3d9Kqev+grmIPh0Dpc1h/9KGT95ZSIWGdJyzPyt1JjALceQjbada/u3kOuOKMFzdUKD lV9A== 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 :message-id:date:subject:cc:to:from:dkim-signature:dkim-signature; bh=Cd69sKmpa9in4ROzPOz2lH76bRr6sDgrnauTr+fOwsc=; fh=CVjco16l+rn9WuojOAFRrLmIbadgdvLhVt4bh5ADZuU=; b=qxWVc1zpgQ4/77SFff/d9lWWQum6YYRPix2zoLtZBDVpznhoqa5J8IeiYWZTGbPff9 mr7L0YJt4MbNiwd8D/9mqgA6G+zwilC1hD39CiqnJmypWvCauYFzgWAQ56+5g7zRyLv/ lVnxe90nQWYRtOfZFaXa0fJFSIZk85LwEbIVQniYE8rG7JIvKMupLD+x+v29lxSIRfFL UXsiI8X9osObbfmmecXdU/e8QE2j/8+2dGeKqn6uFvQD1MzHt47y9ztzOAgH3wFFBxnK 0jhwGIBvq+rcjlV+xaAq+1lx7DA3w5tOhnMn82VNDSQ5H+C1zIGK3eyyiSHvy+jAyycn bDJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=CaDS2z6m; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=KOmliWoQ; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id w197-20020a25dfce000000b00da05a32525csi4256264ybg.238.2023.10.25.12.47.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 12:48:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=CaDS2z6m; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=KOmliWoQ; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id A07008023A27; Wed, 25 Oct 2023 12:47:49 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229557AbjJYTrj (ORCPT + 99 others); Wed, 25 Oct 2023 15:47:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45126 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229441AbjJYTri (ORCPT ); Wed, 25 Oct 2023 15:47:38 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BB00AE5 for ; Wed, 25 Oct 2023 12:47:36 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 4553F215E6; Wed, 25 Oct 2023 19:47:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1698263249; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=Cd69sKmpa9in4ROzPOz2lH76bRr6sDgrnauTr+fOwsc=; b=CaDS2z6mfGNXDNmowwEMHmu6rOqVq5EvLTD8BkgO2njlLZL9ylZ4BOymGb1LjjZ67fUXrD IOxSPQisfSeJT+NI+ZFvDUuFvH1ILZxqHyhLNIJ6zebgwcFS05q0z3Q+AWKxH52uCMQ/3U eQFzeY35ysqNFeDSu7aBVViV22Rc6Ag= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1698263249; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=Cd69sKmpa9in4ROzPOz2lH76bRr6sDgrnauTr+fOwsc=; b=KOmliWoQTG96qkpAMfqEhZWT69Texf8B3CuHwWAkzFs4SrDYzHTUlrF1ky0IicWBZTnbL3 HBTWr8BFUwlCTRAA== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id D9CDC138E9; Wed, 25 Oct 2023 19:47:28 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id FYrNL9BwOWVwFQAAMHmgww (envelope-from ); Wed, 25 Oct 2023 19:47:28 +0000 From: Petr Vorel To: linux-nfs@vger.kernel.org Cc: Petr Vorel , Richard Weinberger , Steve Dickson Subject: [PATCH 0/3] Add getrandom() fallback, cleanup headers Date: Wed, 25 Oct 2023 21:46:58 +0200 Message-ID: <20231025194701.456031-1-pvorel@suse.cz> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Authentication-Results: smtp-out1.suse.de; none X-Spam-Level: X-Spam-Score: 0.48 X-Spamd-Result: default: False [0.48 / 50.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; R_MISSING_CHARSET(2.50)[]; BROKEN_CONTENT_TYPE(1.50)[]; NEURAL_HAM_LONG(-3.00)[-1.000]; DKIM_SIGNED(0.00)[suse.cz:s=susede2_rsa,suse.cz:s=susede2_ed25519]; NEURAL_HAM_SHORT(-1.00)[-1.000]; MID_CONTAINS_FROM(1.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; BAYES_HAM(-0.42)[78.10%] X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Wed, 25 Oct 2023 12:47:49 -0700 (PDT) Hi, motivation to add this is to allow to compile reexport on systems with older libc. (getrandom() wrapper is supported on glibc 2.25+ and musl 1.1.20+, uclibc-ng does not yet support it). getrandom() syscall is supported Linux 3.17+ (old enough to bother with a check). I also wonder why getrandom() syscall does not called with GRND_NONBLOCK flag. Is it ok/needed to block? Kind regards, Petr Petr Vorel (3): reexport/fsidd.c: Remove unused headers support/reexport.c: Remove unused headers support/backend_sqlite.c: Add getrandom() fallback Makefile.am | 1 + aclocal/getrandom.m4 | 16 ++++++++++++++++ configure.ac | 3 +++ support/reexport/backend_sqlite.c | 18 +++++++++++++++++- support/reexport/fsidd.c | 10 ---------- support/reexport/reexport.c | 7 ------- 6 files changed, 37 insertions(+), 18 deletions(-) create mode 100644 aclocal/getrandom.m4 -- 2.42.0