From 41f5e470f2831abe055b9e1d73d9942ebcf259f3 Mon Sep 17 00:00:00 2001 From: wangyuhang Date: Wed, 20 Nov 2024 17:54:35 +0800 Subject: [PATCH] remove the log message for failing to open cmdline, and reset errno to 0 --- bash.spec | 5 ++++- only-scripts-verified-by-execveat-are-allowed-to-run.patch | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/bash.spec b/bash.spec index 3a2b511..c1feecd 100644 --- a/bash.spec +++ b/bash.spec @@ -2,7 +2,7 @@ Name: bash Version: 5.2.15 -Release: 11 +Release: 13 Summary: It is the Bourne Again Shell License: GPLv3 URL: https://www.gnu.org/software/bash @@ -168,6 +168,9 @@ make check %exclude %{_infodir}/dir %changelog +* Wed Nov 20 2024 wangyuhang -5.2.15-12 +- remove the log message for failing to open cmdline, and reset errno to 0 + * Fri Nov 15 2024 wangyuhang -5.2.15-11 - the mayexec function no longer checks cmdline each time that verifies whether a script are allowed to run diff --git a/only-scripts-verified-by-execveat-are-allowed-to-run.patch b/only-scripts-verified-by-execveat-are-allowed-to-run.patch index 903b39c..9d53bbf 100644 --- a/only-scripts-verified-by-execveat-are-allowed-to-run.patch +++ b/only-scripts-verified-by-execveat-are-allowed-to-run.patch @@ -59,7 +59,7 @@ index 19b00c4..287e6da 100644 + + file = fopen("/proc/cmdline", "r"); + if (!file) { -+ perror("Error opening /proc/cmdline"); ++ errno = 0; + return 0; + } + -- Gitee