!11 [sync] PR-6: Change permission with web.ss

From: @openeuler-sync-bot 
Reviewed-by: @anonymous_z 
Signed-off-by: @anonymous_z
This commit is contained in:
openeuler-ci-bot 2023-04-17 08:56:27 +00:00 committed by Gitee
commit 89ffbc8899
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 32 additions and 1 deletions

View File

@ -0,0 +1,24 @@
From a35a9fed3612482e0bd6931920fb730bae3a8195 Mon Sep 17 00:00:00 2001
From: sun_hai_10 <sunhai10@huawei.com>
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

View File

@ -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 <sunhai10@huawei.com> - 3.2.0-3
- Type:bugfix
- ID:NA
- SUG:NA
- DES:Change permission with web.ss
* Tue Feb 28 2023 sunhai <sunhai10@huawei.com> - 3.2.0-2
- Type:bugfix
- ID:NA