From: Greg Kroah-Hartman Date: Tue, 20 Sep 2022 17:12:52 +0000 (+0200) Subject: selinux: use "grep -E" instead of "egrep" X-Git-Tag: v5.15.79~885 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b7af9b8be89171f5bd842d8813eddeb846433ff3;p=platform%2Fkernel%2Flinux-rpi.git selinux: use "grep -E" instead of "egrep" 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 --- diff --git a/scripts/selinux/install_policy.sh b/scripts/selinux/install_policy.sh index 2dccf14..20af56c 100755 --- 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