!17 remove the executable permission of non root users from hook scripts
From: @zhangqiumiao Reviewed-by: @t_feng Signed-off-by: @t_feng
This commit is contained in:
commit
83e630a3c4
@ -0,0 +1,26 @@
|
|||||||
|
From 2aa0a7ccd957307f098b4a36e4e55a37d512204a Mon Sep 17 00:00:00 2001
|
||||||
|
From: Qiumiao Zhang <zhangqiumiao1@huawei.com>
|
||||||
|
Date: Mon, 19 Dec 2022 10:43:12 +0800
|
||||||
|
Subject: [PATCH] remove the executable permission of non root users from hook
|
||||||
|
scripts
|
||||||
|
|
||||||
|
Signed-off-by: Qiumiao Zhang <zhangqiumiao1@huawei.com>
|
||||||
|
---
|
||||||
|
usr/Euler/project/util/CommonFunction | 1 +
|
||||||
|
1 file changed, 1 insertion(+)
|
||||||
|
|
||||||
|
diff --git a/usr/Euler/project/util/CommonFunction b/usr/Euler/project/util/CommonFunction
|
||||||
|
index b10dc7e..3527af6 100644
|
||||||
|
--- a/usr/Euler/project/util/CommonFunction
|
||||||
|
+++ b/usr/Euler/project/util/CommonFunction
|
||||||
|
@@ -75,6 +75,7 @@ function INIT_Execute_Hook()
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
+ chmod g-x,o-x ${hookdir}/S* > /dev/null 2>&1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "x${installbreak}" == "x${hookbase}" ]; then
|
||||||
|
--
|
||||||
|
2.27.0
|
||||||
|
|
||||||
@ -3,7 +3,7 @@ Summary: scripts for system installation
|
|||||||
Group: Applications/System
|
Group: Applications/System
|
||||||
License: MulanPSL-2.0
|
License: MulanPSL-2.0
|
||||||
Version: 1.2
|
Version: 1.2
|
||||||
Release: 4
|
Release: 5
|
||||||
SOURCE0: %{name}-%{version}.tar.gz
|
SOURCE0: %{name}-%{version}.tar.gz
|
||||||
|
|
||||||
Patch0001: 0001-add-support-for-nvme-disk.patch
|
Patch0001: 0001-add-support-for-nvme-disk.patch
|
||||||
@ -102,7 +102,14 @@ rm -rf %{_tmppath}/%{name}-%{version}
|
|||||||
rm -rf $RPM_BUILD_DIR/%{name}-%{version}
|
rm -rf $RPM_BUILD_DIR/%{name}-%{version}
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Sat Oct 5 2022 zhangqiumiao <zhangqiumiao1@huawei.com> - 1.2-4
|
* Mon Dec 19 2022 zhangqiumiao <zhangqiumiao1@huawei.com> - 1.2-5
|
||||||
|
- Type:bugfix
|
||||||
|
- CVE:NA
|
||||||
|
- SUG:NA
|
||||||
|
- DESC:after executing hook scripts, remove their executable permission
|
||||||
|
of non root users
|
||||||
|
|
||||||
|
* Sat Nov 5 2022 zhangqiumiao <zhangqiumiao1@huawei.com> - 1.2-4
|
||||||
- Type:requirement
|
- Type:requirement
|
||||||
- CVE:NA
|
- CVE:NA
|
||||||
- SUG:NA
|
- SUG:NA
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user