diff --git a/bugfix-change-permission-with-web.ss.patch b/bugfix-change-permission-with-web.ss.patch new file mode 100644 index 0000000000000000000000000000000000000000..26416301789bdf982457aa181d9b969235b9f9d1 --- /dev/null +++ b/bugfix-change-permission-with-web.ss.patch @@ -0,0 +1,24 @@ +From a35a9fed3612482e0bd6931920fb730bae3a8195 Mon Sep 17 00:00:00 2001 +From: sun_hai_10 +Date: Thu, 9 Mar 2023 14:33:53 +0800 +Subject: [PATCH] change permission with web.ss + +--- + cobbler/cobblerd.py | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/cobbler/cobblerd.py b/cobbler/cobblerd.py +index 34aedf9..9927160 100644 +--- a/cobbler/cobblerd.py ++++ b/cobbler/cobblerd.py +@@ -60,6 +60,7 @@ def regen_ss_file(): + fd = os.open(ssfile, os.O_CREAT | os.O_RDWR, 0o660) + os.write(fd, binascii.hexlify(data)) + os.close(fd) ++ os.chmod(ssfile, 0o660) + + http_user = "apache" + family = utils.get_family() +-- +2.23.0 + diff --git a/cobbler.spec b/cobbler.spec index afb29d8d98ae8a72c7b9a7bb4d82397e06b78425..63ef04627ac9267b112c38f71b2286be3d9fbd3b 100644 --- a/cobbler.spec +++ b/cobbler.spec @@ -4,7 +4,7 @@ Name: cobbler Version: 3.2.0 -Release: 2 +Release: 3 Summary: Boot server configurator URL: https://cobbler.github.io/ License: GPLv2+ @@ -14,6 +14,7 @@ BuildArch: noarch Patch9000: huawei-adapt-vendor.patch Patch9001: huawei-repair-switch-condition-error.patch Patch6000: fix-Give-root-RW-permissions-to-var-lib-cobbler-web.ss.patch +Patch9002: bugfix-change-permission-with-web.ss.patch BuildRequires: system-release BuildRequires: python%{python3_pkgversion}-devel @@ -210,6 +211,12 @@ sed -i -e "s/SECRET_KEY = ''/SECRET_KEY = \'$RAND_SECRET\'/" %{_datadir}/cobbler %attr(-,apache,apache) /var/www/cobbler_webui_content/ %changelog +* Thu Mar 09 2023 sunhai - 3.2.0-3 +- Type:bugfix +- ID:NA +- SUG:NA +- DES:Change permission with web.ss + * Tue Feb 28 2023 sunhai - 3.2.0-2 - Type:bugfix - ID:NA