Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 661709 Details for
Bug 885807
firewalld accidentally made mandatory; needs to be optional for f18 and f19
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
revert to lokkit patch
0001-return-to-using-lokkit-for-firewall-setup-885807.patch (text/plain), 4.12 KB, created by
Brian Lane
on 2012-12-11 22:09:18 UTC
(
hide
)
Description:
revert to lokkit patch
Filename:
MIME Type:
Creator:
Brian Lane
Created:
2012-12-11 22:09:18 UTC
Size:
4.12 KB
patch
obsolete
>From 105877934ffc799a589308aa0bb3ad7777ba6431 Mon Sep 17 00:00:00 2001 >From: "Brian C. Lane" <bcl@redhat.com> >Date: Tue, 11 Dec 2012 09:51:35 -0800 >Subject: [f18-branch/master] return to using lokkit for firewall setup (#885807) > >firewalld has some issues, especially with minimal installs and dragging >in a bunch of X dependencies. > >This returns to using lokkit for firewall. The differences from before are: > - require lokkit instead of system-config-firewall-base so that maybe > something else could provide lokkit with the same cmdline args. > - don't use -f which would override the selinux setting which we are > still setting directly. >--- > anaconda.spec.in | 3 +-- > pyanaconda/install.py | 2 +- > pyanaconda/kickstart.py | 24 ++++++++++++++++-------- > 3 files changed, 18 insertions(+), 11 deletions(-) > >diff --git a/anaconda.spec.in b/anaconda.spec.in >index 9637c6f..a665b59 100644 >--- a/anaconda.spec.in >+++ b/anaconda.spec.in >@@ -43,7 +43,6 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) > %define sckeyboardver 1.3.1 > %define libblkidver 2.17.1-1 > %define fcoeutilsver 1.0.12-3.20100323git >-%define firewalldver 0.2.9-1 > %define pythonurlgrabberver 3.9.1-5 > %define utillinuxver 2.15.1 > %define syslinuxver 3.73 >@@ -121,7 +120,7 @@ Requires: dmidecode > Requires: python-pyblock >= %{pythonpyblockver} > Requires: libuser-python > Requires: authconfig >-Requires: firewalld >= %{firewalldver} >+Requires: lokkit > Requires: cryptsetup-luks > Requires: python-cryptsetup >= %{pythoncryptsetupver} > Requires: mdadm >diff --git a/pyanaconda/install.py b/pyanaconda/install.py >index 6754a0a..54defc9 100644 >--- a/pyanaconda/install.py >+++ b/pyanaconda/install.py >@@ -120,7 +120,7 @@ def doInstall(storage, payload, ksdata, instClass): > # anaconda requires storage packages in order to make sure the target > # system is bootable and configurable, and some other packages in order > # to finish setting up the system. >- packages = storage.packages + ["authconfig", "firewalld"] >+ packages = storage.packages + ["authconfig", "lokkit"] > payload.preInstall(packages=packages, groups=payload.languageGroups(ksdata.lang.lang)) > payload.install() > >diff --git a/pyanaconda/kickstart.py b/pyanaconda/kickstart.py >index 1ec294a..6ef1e77 100644 >--- a/pyanaconda/kickstart.py >+++ b/pyanaconda/kickstart.py >@@ -457,7 +457,7 @@ class Fcoe(commands.fcoe.F13_Fcoe): > > class Firewall(commands.firewall.F14_Firewall): > def execute(self, storage, ksdata, instClass): >- args = [] >+ args = ["--quiet", "--nostart"] > # enabled is None if neither --enable or --disable is passed > # default to enabled if nothing has been set. > if self.enabled == False: >@@ -477,14 +477,22 @@ class Firewall(commands.firewall.F14_Firewall): > for service in self.services: > args += [ "--service=%s" % (service,) ] > >- cmd = "/usr/bin/firewall-offline-cmd" >- if not os.path.exists(ROOT_PATH+cmd): >- msg = _("%s is missing. Cannot setup firewall.") % (cmd,) >- raise KickstartError(msg) >+ cmd = "/usr/sbin/lokkit" >+ try: >+ if not os.path.exists(ROOT_PATH + "/etc/sysconfig/iptables"): >+ iutil.execWithRedirect(cmd, args, >+ stdout="/dev/tty5", stderr="/dev/tty5", >+ root=ROOT_PATH) >+ else: >+ log.error("/etc/sysconfig/iptables exists, skipping lokkit. " >+ "Would have run %s", args) >+ except (RuntimeError, OSError) as msg: >+ log.error ("lokkit run failed: %s", msg) > else: >- iutil.execWithRedirect(cmd, args, >- stdout="/dev/tty5", stderr="/dev/tty5", >- root=ROOT_PATH) >+ with open(ROOT_PATH + "/etc/sysconfig/system-config-firewall", "w") as f: >+ f.write("# system-config-firewall config written out by anaconda\n\n") >+ for arg in args[2:]: >+ f.write("%s\n" %(arg,)) > > class Firstboot(commands.firstboot.FC3_Firstboot): > def execute(self, *args): >-- >1.8.0 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 885807
: 661709