Bug 1147272
| Summary: | iptables.init fails with /bin/dash as /bin/sh | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Wolfgang Rupprecht <wolfgang.rupprecht> |
| Component: | iptables | Assignee: | Thomas Woerner <twoerner> |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 20 | CC: | jpopelka, psabata, twoerner |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | iptables-1.4.21-13.fc21 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2014-09-29 12:13:09 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
Thanks. iptables-1.4.21-13.fc21 has been submitted as an update for Fedora 21. https://admin.fedoraproject.org/updates/iptables-1.4.21-13.fc21 iptables-1.4.21-13.fc21 has been pushed to the Fedora 21 stable repository. If problems still persist, please make note of it in this bug report. |
Description of problem: iptables.init and ip6tables.init fails when dash is installed as /bin/sh . The problem is that both files require bash to be the shell, but both files start out with #!/bin/sh implying that any posix shell will work. Version-Release number of selected component (if applicable): bash.x86_64 4.2.48-2.fc20 @updates dash.x86_64 0.5.7-8.fc20 @fedora iptables.x86_64 1.4.19.1-1.fc20 @koji-override-0/$releasever iptables-services.x86_64 1.4.19.1-1.fc20 @fedora How reproducible: always Steps to Reproduce: 1. yum install dash 2. cd /bin ; ln -sf dash sh 3. systemd restart iptables ; systemd restart ip6tables Actual results: iptables loading fails Expected results: iptables loading doesn't fail Additional info: diff -c /usr/libexec/iptables/iptables.init\~ /usr/libexec/iptables/iptables.in\ it *** /usr/libexec/iptables/iptables.init~ 2013-07-31 11:39:16.000000000 -\ 0700 --- /usr/libexec/iptables/iptables.init 2014-09-28 03:02:26.693176459 -0700 *************** *** 1,4 **** ! #!/bin/sh # # iptables Start iptables firewall # --- 1,4 ---- ! #!/bin/bash # # iptables Start iptables firewall # Diff finished. Sun Sep 28 11:45:52 2014 diff -c /usr/libexec/iptables/ip6tables.init\~ /usr/libexec/iptables/ip6tables.\ init *** /usr/libexec/iptables/ip6tables.init~ 2013-07-31 11:39:16.000000000 -\ 0700 --- /usr/libexec/iptables/ip6tables.init 2014-09-28 03:04:43.213630168 -\ 0700 *************** *** 1,4 **** ! #!/bin/sh # # ip6tables Start ip6tables firewall # --- 1,4 ---- ! #!/bin/bash # # ip6tables Start ip6tables firewall # Diff finished. Sun Sep 28 11:45:24 2014