From patchwork Sat Oct 22 07:20:55 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 7224 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4242:0:0:0:0:0 with SMTP id s2csp1090465wrr; Sat, 22 Oct 2022 00:47:14 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5subS9xrJtJONhJZwzJHNwfVU5yDMS0DbqLXgxP/sNp64U+woNcJUiNSBqNgoofzhDNXbJ X-Received: by 2002:a17:902:b907:b0:178:9d11:c978 with SMTP id bf7-20020a170902b90700b001789d11c978mr23178933plb.90.1666424833860; Sat, 22 Oct 2022 00:47:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666424833; cv=none; d=google.com; s=arc-20160816; b=swn/+5t9He3j1tSPwJWMLtTB8AbR3MriKaibrWm06inKRqjyH1wfMkr10FKQRcLxpP 8EuWRN5/s+3+ppnJ69b6MH3+LLLtBnrPCZEItV6dgVt3ai/A66VFubjMKWJaSPxtuIZR rM3dDWf2kFbYphVizcLkUx6QGlEGBncw0PrX4n9Kca19H/cjSstiU5soQUjvb6vImP+M uatNB0WO1UW0ZLziVxo2d6QpK7kQgWJQ1TDp0QtabWa+/wYVin5WnVGcMXXHbVW+xml4 Q3sRf4qAGGpZtZNq2rtRE3VWGBUaQCW+QOYNHwHNaV+MRFMD+h2cfRZ8Ie4n9pjS96Tf agrQ== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=YCRKJCfcbu79sBq4qIZn4FIjwAspe2hJvwsrrGU6Z2c=; b=grU/8GaROrYZL/m2Nl73lUr0IcamOMxyJ8PvThjmXFp8epUMeVpGpTLZiTsIoajnbm sGaOvn95PhkB/Yn4dq3K3+QHy5V5yV+hBXALYFp7bGW4tkmmRiYstJORoMSq/JqH5vNy y54x3dsu7+xbk4v2wSrCuJ+djpvrJVoPdCDHRtB3ILV3tch0HMuY+s6XpvRO19JyQwcY DpocTF4Q8B/8+wCch6fQlgEYgy0iwQzrSLcR7VvyjDOtXZppvLxRar46MM1gm3TrtGAZ rMWxAsUP4RasM9M10b+6S30FbciMpE+jnj36HY2vEv8ONcSikjxQYNQpxk5UqKw8RK72 LAUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=kTB7Coq+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w23-20020a17090a8a1700b0020afcf3baeasi8488351pjn.83.2022.10.22.00.47.01; Sat, 22 Oct 2022 00:47:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=@linuxfoundation.org header.s=korg header.b=kTB7Coq+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231479AbiJVHqc (ORCPT + 99 others); Sat, 22 Oct 2022 03:46:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47744 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231534AbiJVHoa (ORCPT ); Sat, 22 Oct 2022 03:44:30 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 599F8253BD0; Sat, 22 Oct 2022 00:43:04 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 3EA85B82DB2; Sat, 22 Oct 2022 07:41:58 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AF17FC433D6; Sat, 22 Oct 2022 07:41:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666424517; bh=QOgwnGXtJ5WnEebGLcaB/JmKLZooNWI4me6Yyig3MGY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kTB7Coq+cCptmTFDhM/lC0tCQ1sogRKv5VKiUe8H2zt7Q/hsDOitOFFb0HEJ0Tfqh Bn/9LauPGNhBFxRmysHUaHlSJA9QNSWcMeggK6wxs23foRq0O0nBk5F2SYpG1DEzn9 sbmZKtKevVLcorh6EjagJJqYP3GCqv1530x5htC0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Paul Moore , Stephen Smalley , Eric Paris , selinux@vger.kernel.org Subject: [PATCH 5.19 176/717] selinux: use "grep -E" instead of "egrep" Date: Sat, 22 Oct 2022 09:20:55 +0200 Message-Id: <20221022072446.704393717@linuxfoundation.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221022072415.034382448@linuxfoundation.org> References: <20221022072415.034382448@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747373086783940398?= X-GMAIL-MSGID: =?utf-8?q?1747373086783940398?= From: Greg Kroah-Hartman commit c969bb8dbaf2f3628927eae73e7c579a74cf1b6e upstream. The latest version of grep claims that egrep is now obsolete so the build now contains warnings that look like: egrep: warning: egrep is obsolescent; using grep -E fix this by using "grep -E" instead. Cc: Paul Moore Cc: Stephen Smalley Cc: Eric Paris Cc: selinux@vger.kernel.org Signed-off-by: Greg Kroah-Hartman [PM: tweak to remove vdso reference, cleanup subj line] Signed-off-by: Paul Moore Signed-off-by: Greg Kroah-Hartman --- scripts/selinux/install_policy.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/scripts/selinux/install_policy.sh +++ b/scripts/selinux/install_policy.sh @@ -78,7 +78,7 @@ cd /etc/selinux/dummy/contexts/files $SF -F file_contexts / mounts=`cat /proc/$$/mounts | \ - egrep "ext[234]|jfs|xfs|reiserfs|jffs2|gfs2|btrfs|f2fs|ocfs2" | \ + grep -E "ext[234]|jfs|xfs|reiserfs|jffs2|gfs2|btrfs|f2fs|ocfs2" | \ awk '{ print $2 '}` $SF -F file_contexts $mounts