]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
5.10-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 16 Oct 2022 20:08:29 +0000 (22:08 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 16 Oct 2022 20:08:29 +0000 (22:08 +0200)
added patches:
selinux-use-grep-e-instead-of-egrep.patch

queue-5.10/selinux-use-grep-e-instead-of-egrep.patch [new file with mode: 0644]
queue-5.10/series

diff --git a/queue-5.10/selinux-use-grep-e-instead-of-egrep.patch b/queue-5.10/selinux-use-grep-e-instead-of-egrep.patch
new file mode 100644 (file)
index 0000000..d4dfa6d
--- /dev/null
@@ -0,0 +1,37 @@
+From c969bb8dbaf2f3628927eae73e7c579a74cf1b6e Mon Sep 17 00:00:00 2001
+From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+Date: Tue, 20 Sep 2022 19:12:52 +0200
+Subject: selinux: use "grep -E" instead of "egrep"
+
+From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+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 <paul@paul-moore.com>
+Cc: Stephen Smalley <stephen.smalley.work@gmail.com>
+Cc: Eric Paris <eparis@parisplace.org>
+Cc: selinux@vger.kernel.org
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+[PM: tweak to remove vdso reference, cleanup subj line]
+Signed-off-by: Paul Moore <paul@paul-moore.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+---
+ 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
index bfc4b14152ab05e1c4ed7d4a3fd4b2e85f338ed7..404377fdf4c408e3e2b1e8ed0965f6b395481490 100644 (file)
@@ -88,3 +88,4 @@ drm-nouveau-fix-a-use-after-free-in-nouveau_gem_prime_import_sg_table.patch
 drm-i915-fix-watermark-calculations-for-gen12-rc-ccs-modifier.patch
 drm-i915-fix-watermark-calculations-for-gen12-mc-ccs-modifier.patch
 smb3-must-initialize-two-acl-struct-fields-to-zero.patch
+selinux-use-grep-e-instead-of-egrep.patch