Skip to contentSkip to conversation

scripts/selinux: use "grep -E" instead of "egrep"

PATCH In review Greg Kroah-Hartman 2 participants 2 messages Sep 20, 2022 SELinux security module

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 scripts/selinux: use "grep -E" instead of "egrep"

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 up by moving the vdso Makefile to use "grep -E" instead.

---
 scripts/selinux/install_policy.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/selinux/install_policy.sh +1 -1
index 2dccf141241d..20af56ce245c 100755
@@ -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
 
Signature · 1 line
2.37.3
maintainer
#1 lore raw
Quoted 6 lines · Greg Kroah-Hartman

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 up by moving the vdso Makefile to use "grep -E" instead.

Quoted 8 lines
---
 scripts/selinux/install_policy.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Thanks, merged into selinux/next.

Signature · 1 line
paul-moore.com