Compare commits

...
Sign in to create a new pull request.

53 commits

Author SHA1 Message Date
Orion Poplawski
aed96123ed Add upstream patch for CVE-2022-0860 (bz#2066592) 2022-03-23 07:27:16 -06:00
Orion Poplawski
1a1895e5f3 Restore EL7 requires 2022-03-07 10:29:07 -07:00
Orion Poplawski
7ad7c967bc Fix apache group 2022-03-03 08:37:12 -07:00
Orion Poplawski
ad73eb12ce Apply fixes for CVE-2021-45082/3
Drop EL6 support
2022-03-02 21:47:12 -07:00
Orion Poplawski
6c42a12b29 Remove defunct get-loaders command 2021-12-08 20:21:57 -07:00
Orion Poplawski
1adc30aa8a Merge branch 'f30' into epel7 2019-12-29 12:53:54 -07:00
Orion Poplawski
26c83ee708 Udate to 2.8.5 final release 2019-12-29 12:52:50 -07:00
Orion Poplawski
6787b261cf Merge branch 'f30' into epel7 2019-10-14 20:03:52 -06:00
Orion Poplawski
3fffbe1bfc Fix changelog 2019-10-14 20:01:17 -06:00
Orion Poplawski
f922d141fc Merge branch 'f30' into epel7 2019-10-14 19:56:46 -06:00
Orion Poplawski
b3db39dbee Require python2-iptables 2019-10-14 19:53:47 -06:00
Orion Poplawski
cc56685952 Require /sbin/service 2019-10-10 18:22:53 -06:00
Nicolas Chauvet
9aae0020c0 Merge branch 'master' into epel7 2019-08-30 15:40:31 +02:00
Orion Poplawski
d00dfa08d7 Merge branch 'master' into epel7 2018-11-26 11:47:09 -07:00
Orion Poplawski
286422bea9 Merge branch 'master' into epel7 2018-11-25 11:16:53 -07:00
Orion Poplawski
ee45de0efd Merge branch 'master' into epel7
Conflicts:
	.gitignore
	cobbler.spec
	sources
2018-11-24 10:47:36 -07:00
Nicolas Chauvet
14f10e29ce Fix merge for epel7 2018-05-28 14:39:43 +02:00
Nicolas Chauvet
741c25f506 Squashed commit of the following:
commit 61179e935d
Author: Nicolas Chauvet <kwizart@gmail.com>
Date:   Mon May 28 14:18:15 2018 +0200

    Update changelog

commit 38dd02fc84
Author: Nicolas Chauvet <kwizart@gmail.com>
Date:   Mon May 28 14:17:16 2018 +0200

    Restore mergeability with epel7

commit a340d23ce3
Author: Orion Poplawski <orion@nwra.com>
Date:   Wed Feb 21 16:47:14 2018 -0700

    Really fix django requires for Fedora 28+

commit ed3dc22bca
Author: Nicolas Chauvet <kwizart@gmail.com>
Date:   Mon May 28 12:17:42 2018 +0200

    Update to 2.8.3 security bugfix

commit e7675c9ffa
Author: Orion Poplawski <orion@nwra.com>
Date:   Tue Feb 20 14:32:47 2018 -0700

    Fix django requires for Fedora 28+

commit 382b85b7b9
Author: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
Date:   Fri Feb 9 09:04:14 2018 +0100

    Escape macros in %changelog

    Reference: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/Y2ZUKK2B7T2IKXPMODNF6HB2O5T5TS6H/
    Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>

commit 7d7612ed31
Author: Fedora Release Engineering <releng@fedoraproject.org>
Date:   Wed Feb 7 05:17:15 2018 +0000

    - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild

    Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>

commit 7c672d424e
Author: Iryna Shcherbina <shcherbina.iryna@gmail.com>
Date:   Tue Feb 6 22:36:11 2018 +0100

    Update Python 2 dependency declarations to new packaging standards
2018-05-28 14:33:17 +02:00
Nicolas Chauvet
708c34790c Squashed commit of the following:
commit a340d23ce3
Author: Orion Poplawski <orion@nwra.com>
Date:   Wed Feb 21 16:47:14 2018 -0700

    Really fix django requires for Fedora 28+

commit ed3dc22bca
Author: Nicolas Chauvet <kwizart@gmail.com>
Date:   Mon May 28 12:17:42 2018 +0200

    Update to 2.8.3 security bugfix

commit e7675c9ffa
Author: Orion Poplawski <orion@nwra.com>
Date:   Tue Feb 20 14:32:47 2018 -0700

    Fix django requires for Fedora 28+

commit 382b85b7b9
Author: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
Date:   Fri Feb 9 09:04:14 2018 +0100

    Escape macros in %changelog

    Reference: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/Y2ZUKK2B7T2IKXPMODNF6HB2O5T5TS6H/
    Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>

commit 7d7612ed31
Author: Fedora Release Engineering <releng@fedoraproject.org>
Date:   Wed Feb 7 05:17:15 2018 +0000

    - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild

    Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>

commit 7c672d424e
Author: Iryna Shcherbina <shcherbina.iryna@gmail.com>
Date:   Tue Feb 6 22:36:11 2018 +0100

    Update Python 2 dependency declarations to new packaging standards
2018-05-28 12:44:38 +02:00
Orion Poplawski
03b41c9225 Merge branch 'master' into epel7
Conflicts:
	cobbler.spec
2017-09-18 09:14:29 -06:00
Orion Poplawski
64e0c05fd4 Suppress logrotate output 2017-06-21 11:46:25 -06:00
Orion Poplawski
ac71d9b08d Merge branch 'master' into epel7 2017-06-12 11:06:00 -06:00
Orion Poplawski
509b25dbf1 Merge branch 'master' into epel7 2017-05-24 11:40:00 -06:00
Orion Poplawski
c20bb734e1 Merge branch 'master' into epel7 2017-01-31 16:21:57 -07:00
Orion Poplawski
a4875874fa Merge branch 'master' into epel7 2016-07-21 11:57:12 -06:00
Orion Poplawski
524e517078 Merge branch 'master' into epel7 2016-07-21 11:52:39 -06:00
Orion Poplawski
a48483fe26 Clean changelog 2016-07-21 11:22:48 -06:00
Orion Poplawski
9e5faa9450 Merge branch 'master' into epel7 2016-07-21 11:21:40 -06:00
Orion Poplawski
f3bdb77132 Merge branch 'master' into epel7 2016-07-13 13:07:34 -06:00
Orion Poplawski
5e6d9de0d9 Merge branch 'master' into epel7 2016-07-13 12:10:54 -06:00
Orion Poplawski
8b686a7194 Merge branch 'master' into epel7 2016-01-24 07:40:12 -07:00
Orion Poplawski
19002b0af6 Merge branch 'master' into epel7 2015-10-01 11:03:50 -06:00
Orion Poplawski
40cda21513 Cleanup changelog 2015-06-22 12:03:55 -06:00
Orion Poplawski
1ebdebef89 Merge branch 'master' into epel7 2015-06-22 12:02:56 -06:00
Orion Poplawski
5c425960ef Merge branch 'master' into epel7 2015-05-08 19:34:17 -06:00
Orion Poplawski
7376a607d9 Merge branch 'epel7' of ssh://pkgs.fedoraproject.org/cobbler into epel7 2015-04-28 10:46:36 -06:00
Orion Poplawski
abced35faa Merge branch 'master' into epel7 2015-04-28 10:46:12 -06:00
Orion Poplawski
3d4efaa54d Merge branch 'master' into epel7 2014-12-31 09:56:40 -07:00
Orion Poplawski
697366892b Merge branch 'master' into epel7 2014-10-19 23:00:36 -06:00
Orion Poplawski
6b062fec15 Merge branch 'master' into epel7 2014-08-15 15:54:08 -06:00
Orion Poplawski
20dd58ed42 Merge branch 'master' into epel7 2014-08-11 10:20:48 -06:00
Orion Poplawski
9385f062a9 Merge branch 'master' into epel7 2014-07-18 16:55:45 -06:00
Orion Poplawski
bc8f55d58c Merge branch 'master' into epel7 2014-07-17 10:04:53 -06:00
Orion Poplawski
c0fdc52c4d Update to 2.6.1 from master 2014-05-23 16:01:23 -06:00
Orion Poplawski
57917b0e3e Merge branch 'f20' into f19
Update to 2.4.4
2014-04-22 09:22:49 -06:00
Orion Poplawski
874e5f4d4f Update to 2.4.4
- Drop koan patch applied upstream
2014-04-22 09:22:00 -06:00
Orion Poplawski
dc27e3aa9b Update to 2.4.3 from master 2014-04-21 13:49:31 -06:00
James Cammarata
e8cedda572 New upstream release: 2.4.0-1 2013-06-20 00:49:36 -05:00
James Cammarata
e557733e61 Merge branch 'f19' of ssh://pkgs.fedoraproject.org/cobbler into f19
Conflicts:
	cobbler.spec
2013-05-24 16:27:02 -05:00
James Cammarata
7150fb718e New upstream release: 2.4.0-beta6
Conflicts:
	cobbler.spec
2013-05-24 16:15:16 -05:00
Cole Robinson
a0f637a834 python-virtinst is no more, require virt-install (bz #958489) 2013-05-09 20:34:23 -04:00
James Cammarata
9ca878626b New upstream release, 2.4.0-beta5 2013-04-22 10:35:29 -05:00
James Cammarata
41c2a59817 New upstream release - 2.4.0-beta4
Conflicts:
	cobbler.spec
2013-04-03 20:52:27 -05:00
6 changed files with 277 additions and 75 deletions

23
1804.patch Normal file
View file

@ -0,0 +1,23 @@
From 6759cc1b1834eb6b50b6a3c583fc531d8452eaf0 Mon Sep 17 00:00:00 2001
From: Orion Poplawski <orion@cora.nwra.com>
Date: Wed, 21 Jun 2017 11:41:45 -0600
Subject: [PATCH] Suppress "edirecting to /bin/systemctl condrestart
cobblerd.service" messages from logrotate on systemd systems
---
config/cobblerd_rotate | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/config/cobblerd_rotate b/config/cobblerd_rotate
index 2224f6600..17cb10e17 100644
--- a/config/cobblerd_rotate
+++ b/config/cobblerd_rotate
@@ -4,7 +4,7 @@
rotate 4
weekly
postrotate
- /sbin/service cobblerd condrestart > /dev/null
+ /sbin/service cobblerd condrestart > /dev/null 2>&1
endscript
}

View file

@ -0,0 +1,34 @@
commit 267184cc5c8db764847eee2d9ba0f5006879adfe
Author: Alexander Graul <agraul@suse.com>
Date: Wed Feb 16 09:48:40 2022 +0100
Security: Fix incomplete template sanitization
This only affects Cheetah templating.
Without this commit, it is possible to evade the
"cheetah_import_whitelist" and import arbitraty Python code.
Example exploit: #from exploit import pwned
CVE-ID: CVE-2021-45082
diff --git a/cobbler/templar.py b/cobbler/templar.py
index c425908f..b2b99cb2 100644
--- a/cobbler/templar.py
+++ b/cobbler/templar.py
@@ -76,10 +76,10 @@ class Templar:
"""
lines = data.split("\n")
for line in lines:
- if line.find("#import") != -1:
- rest=line.replace("#import","").replace(" ","").strip()
- if self.settings and rest not in self.settings.cheetah_import_whitelist:
- raise CX("potentially insecure import in template: %s" % rest)
+ if "#import" in line or "#from" in line:
+ rest = line.replace("#import", "").replace("#from", "").replace("import", ".").replace(" ", "").strip()
+ if self.settings and rest not in self.settings.cheetah_import_whitelist:
+ raise CX("Potentially insecure import in template: %s" % rest)
def render(self, data_input, search_table, out_path, subject=None, template_type=None):
"""

View file

@ -0,0 +1,25 @@
diff --git a/cobbler/modules/authn_pam.py b/cobbler/modules/authn_pam.py
index 80ac4e7..26981f7 100644
--- a/cobbler/modules/authn_pam.py
+++ b/cobbler/modules/authn_pam.py
@@ -114,6 +114,10 @@ PAM_AUTHENTICATE = LIBPAM.pam_authenticate
PAM_AUTHENTICATE.restype = c_int
PAM_AUTHENTICATE.argtypes = [PamHandle, c_int]
+PAM_ACCT_MGMT = LIBPAM.pam_acct_mgmt
+PAM_ACCT_MGMT.restype = c_int
+PAM_ACCT_MGMT.argtypes = [PamHandle, c_int]
+
def authenticate(api_handle, username, password):
"""
Returns True if the given username and password authenticate for the
@@ -152,5 +156,9 @@ def authenticate(api_handle, username, password):
return False
retval = PAM_AUTHENTICATE(handle, 0)
+
+ if retval == 0:
+ retval = PAM_ACCT_MGMT(handle, 0)
+
return retval == 0

View file

@ -0,0 +1,111 @@
commit fdf493ae4095c3266997e8b9c9cbcb31767b06d6
Author: Orion Poplawski <orion@nwra.com>
Date: Wed Dec 8 20:19:51 2021 -0700
Remove get-loaders
diff --git a/cobbler/action_check.py b/cobbler/action_check.py
index c1980a39..825e666d 100644
--- a/cobbler/action_check.py
+++ b/cobbler/action_check.py
@@ -335,7 +335,7 @@ class BootCheck:
not_found.append(loader_name)
if len(not_found) > 0:
- status.append("Some network boot-loaders are missing from /var/lib/cobbler/loaders, you may run 'cobbler get-loaders' to download them, or, if you only want to handle x86/x86_64 netbooting, you may ensure that you have installed a *recent* version of the syslinux package installed and can ignore this message entirely. Files in this directory, should you want to support all architectures, should include pxelinux.0, menu.c32, elilo.efi, and yaboot. The 'cobbler get-loaders' command is the easiest way to resolve these requirements.")
+ status.append("Some network boot-loaders are missing from /var/lib/cobbler/loaders. If you only want to handle x86/x86_64 netbooting, you may ensure that you have installed a *recent* version of the syslinux package installed and can ignore this message entirely. Files in this directory, should you want to support all architectures, should include pxelinux.0, menu.c32, elilo.efi, and yaboot.")
def check_tftpd_bin(self,status):
"""
diff --git a/cobbler/api.py b/cobbler/api.py
index 77ffc689..30f4b878 100644
--- a/cobbler/api.py
+++ b/cobbler/api.py
@@ -36,7 +36,6 @@ import action_report
import action_power
import action_log
import action_hardlink
-import action_dlcontent
from cexceptions import CX
import kickgen
import yumgen
@@ -723,19 +722,6 @@ class BootAPI:
# ==========================================================================
- def dlcontent(self,force=False,logger=None):
- """
- Downloads bootloader content that may not be avialable in packages
- for the given arch, ex: if installing on PPC, get syslinux. If installing
- on x86_64, get elilo, etc.
- """
- # FIXME: teach code that copies it to grab from the right place
- self.log("dlcontent")
- grabber = action_dlcontent.ContentDownloader(self._config, logger=logger)
- return grabber.run(force)
-
- # ==========================================================================
-
def validateks(self, logger=None):
"""
Use ksvalidator (from pykickstart, if available) to determine
diff --git a/cobbler/cli.py b/cobbler/cli.py
index a1aa815e..71af6853 100755
--- a/cobbler/cli.py
+++ b/cobbler/cli.py
@@ -56,7 +56,7 @@ OBJECT_TYPES = OBJECT_ACTIONS_MAP.keys()
OBJECT_ACTIONS = []
for actions in OBJECT_ACTIONS_MAP.values():
OBJECT_ACTIONS += actions
-DIRECT_ACTIONS = "aclsetup buildiso import list replicate report reposync sync validateks version signature get-loaders hardlink".split()
+DIRECT_ACTIONS = "aclsetup buildiso import list replicate report reposync sync validateks version signature hardlink".split()
####################################################
@@ -501,10 +501,6 @@ class BootCLI:
elif action_name == "validateks":
(options, args) = self.parser.parse_args()
task_id = self.start_task("validateks",options)
- elif action_name == "get-loaders":
- self.parser.add_option("--force", dest="force", action="store_true", help="overwrite any existing content in /var/lib/cobbler/loaders")
- (options, args) = self.parser.parse_args()
- task_id = self.start_task("dlcontent",options)
elif action_name == "import":
self.parser.add_option("--arch", dest="arch", help="OS architecture being imported")
self.parser.add_option("--breed", dest="breed", help="the breed being imported")
diff --git a/cobbler/remote.py b/cobbler/remote.py
index f7b93abc..d2b5d0b5 100644
--- a/cobbler/remote.py
+++ b/cobbler/remote.py
@@ -168,14 +168,6 @@ class CobblerXMLRPCInterface:
)
return self.__start_task(runner, token, "aclsetup", "(CLI) ACL Configuration", options)
- def background_dlcontent(self, options, token):
- """
- Download bootloaders and other support files.
- """
- def runner(self):
- return self.remote.api.dlcontent(self.options.get("force",False), self.logger)
- return self.__start_task(runner, token, "get_loaders", "Download Bootloader Content", options)
-
def background_sync(self, options, token):
def runner(self):
return self.remote.api.sync(self.options.get("verbose",False),logger=self.logger)
diff --git a/docs/appendix.rst b/docs/appendix.rst
index b1945c72..7dc73411 100644
--- a/docs/appendix.rst
+++ b/docs/appendix.rst
@@ -611,12 +611,6 @@ Steps
DBAN 2.2.6
**********
-Retrieve the extra loader parts that DBAN 2.2.6 needs:
-
-.. code-block:: bash
-
- cobbler get-loaders
-
Download DBAN:
.. code-block:: bash

View file

@ -7,18 +7,24 @@
Name: cobbler
Version: 2.8.5
Release: 0.1%{?dist}
Release: 6%{?dist}
Summary: Boot server configurator
URL: http://cobbler.github.io/
License: GPLv2+
Source0: https://github.com/cobbler/cobbler/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source0: https://github.com/cobbler/cobbler/archive/v%{version}/%{name}-%{version}.tar.gz
# Remove get-loaders
Patch0: cobbler-remove-get-loaders.patch
# Fix unsafe cheetah imports
Patch1: cobbler-CVE-2021-45082.patch
# Upstream fix for CVE-2022-0860 (expired accounts)
Patch2: cobbler-CVE-2022-0860.patch
BuildRequires: git
BuildRequires: /usr/bin/pathfix.py
BuildRequires: python2-devel
BuildRequires: python2-pyyaml
BuildRequires: python2-setuptools
%if 0%{?fedora} >= 28 || 0%{?rhel} > 7
%if 0%{?fedora} || 0%{?rhel} >= 8
BuildRequires: python2-cheetah
%else
BuildRequires: python-cheetah
@ -28,16 +34,15 @@ Requires: httpd
Requires: tftp-server
Requires: createrepo
Requires: rsync
Requires: python2-cheetah
Requires: python2-simplejson
Requires: python2-pyyaml
%if 0%{?fedora} >= 28 || 0%{?rhel} > 7
%if 0%{?fedora} || 0%{?rhel} >= 8
Requires: python2-mod_wsgi
Requires: python2-cheetah
Requires: python2-netaddr
Requires: python2-urlgrabber
%else
Requires: mod_wsgi
Requires: python-cheetah
Requires: python-netaddr
Requires: python-urlgrabber
%endif
@ -52,16 +57,12 @@ Requires: dnf-plugins-core
%else
Requires: yum-utils
%endif
%if 0%{?fedora} || 0%{?rhel} >= 7
# https://github.com/cobbler/cobbler/issues/1685
Requires: /sbin/service
BuildRequires: systemd
Requires(post): systemd
Requires(preun): systemd
Requires(postun): systemd
%else
Requires(post): /sbin/chkconfig
Requires(preun): /sbin/chkconfig
Requires(preun): /sbin/service
%endif
%description
Cobbler is a network install server. Cobbler supports PXE, ISO
@ -78,16 +79,17 @@ other applications.
Summary: Web interface for Cobbler
BuildArch: noarch
Requires: cobbler
%if 0%{?fedora} >= 28
%if 0%{?fedora}
Requires: python2-django1.11
Requires: python2-ipaddress
%endif
%if 0%{?el7}
Requires: python2-django
Requires: python-ipaddress
%endif
%if 0%{?fedora} >= 28 || 0%{?rhel} > 7
%if 0%{?fedora} || 0%{?rhel} >= 8
Requires: python2-mod_wsgi
%else
Requires: Django > 1.6
Requires: mod_wsgi
%endif
Requires: mod_ssl
@ -102,13 +104,14 @@ http://server/cobbler_web to configure the install server.
Summary: Helper tool that performs cobbler orders on remote machines
BuildArch: noarch
Requires: python2-simplejson
%if 0%{?fedora} >= 28 || 0%{?rhel} > 7
%if 0%{?fedora} || 0%{?rhel} >= 8
Requires: python2-ethtool
Requires: python2-urlgrabber
%else
Requires: python-ethtool
Requires: python-urlgrabber
%endif
Requires: /sbin/service
Requires: virt-install
%description -n koan
@ -136,18 +139,11 @@ mv $RPM_BUILD_ROOT%{_sysconfdir}/cobbler/cobblerd_rotate $RPM_BUILD_ROOT%{_sysco
# Create data directories in tftp_dir
mkdir -p $RPM_BUILD_ROOT%{tftp_dir}/{boot,etc,grub,images{,2},ppc,pxelinux.cfg,s390x}
%if 0%{?rhel} == 6
# sysvinit
mkdir -p %{_sysconfdir}/init.d
mv $RPM_BUILD_ROOT%{_sysconfdir}/cobbler/cobblerd $RPM_BUILD_ROOT%{_sysconfdir}/init.d/cobblerd
rm $RPM_BUILD_ROOT%{_sysconfdir}/cobbler/cobblerd.service
%else
# systemd
rm $RPM_BUILD_ROOT%{_sysconfdir}/cobbler/cobblerd
rm $RPM_BUILD_ROOT%{_sysconfdir}/init.d/cobblerd
mkdir -p $RPM_BUILD_ROOT%{_unitdir}
mv $RPM_BUILD_ROOT%{_sysconfdir}/cobbler/cobblerd.service $RPM_BUILD_ROOT%{_unitdir}
%endif
# cobbler-web
rm $RPM_BUILD_ROOT%{_sysconfdir}/cobbler/cobbler_web.conf
@ -159,7 +155,7 @@ mkdir -p $RPM_BUILD_ROOT/var/spool/koan
%pre
if (( $1 >= 2 )); then
# package upgrade: backup configuration
DATE=$(date "+%Y%m%d-%H%M%S")
DATE=$(date "+%Y%m%d-%H%M%%S")
if [[ ! -d /var/lib/cobbler/backup/upgrade-${DATE} ]]; then
mkdir -p /var/lib/cobbler/backup/upgrade-${DATE}
fi
@ -174,38 +170,23 @@ if (( $1 >= 2 )); then
fi
%if 0%{?rhel} == 6
%post
# package install
if (( $1 == 1 )); then
/sbin/chkconfig --add cobblerd > /dev/null 2>&1
/etc/init.d/cobblerd start > /dev/null 2>&1
/etc/init.d/httpd restart > /dev/null 2>&1
fi
%preun
# before last package is removed
if (( $1 == 0 )); then
/sbin/chkconfig --del cobblerd > /dev/null 2>&1
/etc/init.d/cobblerd stop > /dev/null 2>&1
fi
%postun
# after last package is removed
if (( $1 == 0 )); then
/etc/init.d/httpd condrestart > /dev/null 2>&1
fi
%endif
%if 0%{?fedora} || 0%{?rhel} >= 7
%post
%systemd_post cobblerd.service
# Fixup permission for world readable settings files
chmod 640 %{_sysconfdir}/cobbler/settings
chmod 600 %{_sysconfdir}/cobbler/mongodb.conf
chmod 600 %{_sysconfdir}/cobbler/modules.conf
chmod 640 %{_sysconfdir}/cobbler/users.conf
chmod 640 %{_sysconfdir}/cobbler/users.digest
chgrp apache %{_sysconfdir}/cobbler/settings
chgrp apache %{_sysconfdir}/cobbler/users.conf
chgrp apache %{_sysconfdir}/cobbler/users.digest
%preun
%systemd_preun cobblerd.service
%postun
%systemd_postun_with_restart cobblerd.service
%endif
%post -n cobbler-web
# Change the SECRET_KEY option in the Django settings.py file
@ -217,7 +198,35 @@ sed -i -e "s/SECRET_KEY = ''/SECRET_KEY = \'$RAND_SECRET\'/" /usr/share/cobbler/
%files
%license COPYING
%doc AUTHORS README.md docs/README.openvz docs/README.mysql
%config(noreplace) %{_sysconfdir}/cobbler
%dir %{_sysconfdir}/cobbler
%config(noreplace) %{_sysconfdir}/cobbler/auth.conf
%config(noreplace) %{_sysconfdir}/cobbler/cheetah_macros
%config(noreplace) %{_sysconfdir}/cobbler/cobbler_bash
%config(noreplace) %{_sysconfdir}/cobbler/completions
%config(noreplace) %{_sysconfdir}/cobbler/dhcp.template
%config(noreplace) %{_sysconfdir}/cobbler/dnsmasq.template
%config(noreplace) %{_sysconfdir}/cobbler/genders.template
%config(noreplace) %{_sysconfdir}/cobbler/import_rsync_whitelist
%dir %{_sysconfdir}/cobbler/iso
%config(noreplace) %{_sysconfdir}/cobbler/iso/buildiso.template
%config(noreplace) %{_sysconfdir}/cobbler/ldap/
%attr(600, root, root) %config(noreplace) %{_sysconfdir}/cobbler/modules.conf
%attr(600, root, root) %config(noreplace) %{_sysconfdir}/cobbler/mongodb.conf
%config(noreplace) %{_sysconfdir}/cobbler/named.template
%config(noreplace) %{_sysconfdir}/cobbler/power/
%config(noreplace) %{_sysconfdir}/cobbler/pxe/
%dir %{_sysconfdir}/cobbler/reporting
%config(noreplace) %{_sysconfdir}/cobbler/reporting/build_report_email.template
%config(noreplace) %{_sysconfdir}/cobbler/rsync.exclude
%config(noreplace) %{_sysconfdir}/cobbler/rsync.template
%config(noreplace) %{_sysconfdir}/cobbler/secondary.template
%attr(640, root, apache) %config(noreplace) %{_sysconfdir}/cobbler/settings
%config(noreplace) %{_sysconfdir}/cobbler/tftpd.template
%attr(640, root, apache) %config(noreplace) %{_sysconfdir}/cobbler/users.conf
%attr(640, root, apache) %config(noreplace) %{_sysconfdir}/cobbler/users.digest
%config(noreplace) %{_sysconfdir}/cobbler/version
%config(noreplace) %{_sysconfdir}/cobbler/zone.template
%dir %{_sysconfdir}/cobbler/zone_templates
%config(noreplace) %{_sysconfdir}/logrotate.d/cobblerd
%config(noreplace) /etc/httpd/conf.d/cobbler.conf
%{_bindir}/cobbler
@ -227,11 +236,7 @@ sed -i -e "s/SECRET_KEY = ''/SECRET_KEY = \'$RAND_SECRET\'/" /usr/share/cobbler/
%{_mandir}/man1/cobbler.1*
%{python2_sitelib}/cobbler/
%{python2_sitelib}/cobbler*.egg-info
%if 0%{?fedora} || 0%{?rhel} >= 7
%{_unitdir}/cobblerd.service
%else
/etc/init.d/cobblerd
%endif
%{tftp_dir}/*
/var/www/cobbler
%config(noreplace) /var/lib/cobbler
@ -264,6 +269,31 @@ sed -i -e "s/SECRET_KEY = ''/SECRET_KEY = \'$RAND_SECRET\'/" /usr/share/cobbler/
%changelog
* Wed Mar 23 2022 Orion Poplawski <orion@nwra.com> - 2.8.5-6
- Add upstream patch for CVE-2022-0860 (bz#2066592)
* Mon Mar 07 2022 Orion Poplawski <orion@cora.nwra.com> - 2.8.5-5
- Restore EL7 requires
* Thu Mar 03 2022 Orion Poplawski <orion@nwra.com> - 2.8.5-4
- Fix apache group
* Thu Mar 03 2022 Orion Poplawski <orion@nwra.com> - 2.8.5-3
- Apply fixes for CVE-2021-45082/3
- Drop EL6 support
* Thu Dec 09 2021 Orion Poplawski <orion@nwra.com> - 2.8.5-2
- Remove defunct get-loaders command
* Sun Dec 29 2019 Orion Poplawski <orion@nwra.com> - 2.8.5-1
- Udate to 2.8.5 final release
* Mon Oct 14 2019 Orion Poplawski <orion@nwra.com> - 2.8.5-0.3
- Require python2-ipaddress
* Thu Oct 10 2019 Orion Poplawski <orion@nwra.com> - 2.8.5-0.2
- Require /sbin/service
* Mon Aug 26 2019 Nicolas Chauvet <kwizart@gmail.com> - 2.8.5-0.1
- Update to 2.8.5 - pre-release
@ -288,9 +318,6 @@ sed -i -e "s/SECRET_KEY = ''/SECRET_KEY = \'$RAND_SECRET\'/" /usr/share/cobbler/
* Sat Nov 24 2018 Orion Poplawski <orion@nwra.com> - 2.8.4-1
- Update to 2.8.4 (Fixes BZ 1613292, 1643860, 1614433, CVE-2018-1000226, CVE-2018-10931)
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.8.3-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Wed May 30 2018 Orion Poplawski <orion@nwra.com> - 2.8.3-3
- koan requires urlgrabber
@ -319,12 +346,6 @@ sed -i -e "s/SECRET_KEY = ''/SECRET_KEY = \'$RAND_SECRET\'/" /usr/share/cobbler/
* Mon Sep 18 2017 Orion Poplawski <orion@cora.nwra.com> - 2.8.2-1
- Update to 2.8.2
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.8.1-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.8.1-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
* Wed Jun 21 2017 Orion Poplawski <orion@cora.nwra.com> - 2.8.1-3
- Suppress logrotate output
@ -365,9 +386,6 @@ sed -i -e "s/SECRET_KEY = ''/SECRET_KEY = \'$RAND_SECRET\'/" /usr/share/cobbler/
* Thu Jul 21 2016 Orion Poplawski <orion@cora.nwra.com> - 2.6.11-8.git5680bf8
- Fix handling unknown os variants with osinfo-query
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.6.11-7.git95749a6
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
* Wed Jul 13 2016 Orion Poplawski <orion@cora.nwra.com> - 2.6.11-6.git95749a6
- Fix typo in koan/app.py
@ -393,12 +411,6 @@ sed -i -e "s/SECRET_KEY = ''/SECRET_KEY = \'$RAND_SECRET\'/" /usr/share/cobbler/
* Mon Jun 22 2015 Orion Poplawski <orion@cora.nwra.com> - 2.6.9-1
- Update to 2.6.9
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.6.8-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
* Tue May 12 2015 Orion Poplawski <orion@cora.nwra.com> - 2.6.8-2
- Support django 1.8 in Fedora 22+
* Fri May 8 2015 Orion Poplawski <orion@cora.nwra.com> - 2.6.8-1
- Update to 2.6.8
- Backport upstream patch to fix centos version detection (bug #1201879)
@ -451,9 +463,6 @@ sed -i -e "s/SECRET_KEY = ''/SECRET_KEY = \'$RAND_SECRET\'/" /usr/share/cobbler/
- Use updated systemd macros (bug #850061)
- Require python-ctypes on EL5 (bug #838884)
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
* Thu Jun 20 2013 James Cammarata <jimi@sngx.net> 2.4.0-1
- Release 2.4.0-1 (jimi@sngx.net)
* Fri May 24 2013 James Cammarata <jimi@sngx.net> 2.4.0-beta6

View file

@ -1 +1 @@
SHA512 (cobbler-2.8.5.tar.gz) = 6097618b6ad394f23f496eee14a74a334162b2d420c39059bf54472a44b4a6a645faf9ee50139f7c169503d34524489282b03a2f7318ca8b276745cc518567a7
SHA512 (cobbler-2.8.5.tar.gz) = 6587308eb9eb49f7a894ddd052e1e3e226b4bcbffcf5c7e909e035b3faba1a8ae00631b96e11f0274d058b41b985b9a53776428b4587708111ef8158dec4e9d1