search for: iptables_perform

Displaying 3 results from an estimated 3 matches for "iptables_perform".

2013 Sep 05
6
[PATCH 1/5] sysprep: remove /var/log/audit/audit.log
audit.log is already included in /var/log/audit/*. Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com> --- sysprep/sysprep_operation_logfiles.ml | 1 - 1 file changed, 1 deletion(-) diff --git a/sysprep/sysprep_operation_logfiles.ml b/sysprep/sysprep_operation_logfiles.ml index 842b855..cdfe8fc 100644 --- a/sysprep/sysprep_operation_logfiles.ml +++
2013 Sep 05
0
[PATCH 5/5] sysprep: remove iptables rules
...ou should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + *) + +open Sysprep_operation +open Common_gettext.Gettext + +module G = Guestfs + +let iptables_perform g root = + let typ = g#inspect_get_type root in + if typ <> "windows" then ( + let path = "/etc/sysconfig/iptables" in + (try g#rm path with G.Error _ -> ()); + [] + ) + else [] + +let op = { + defaults with + name = "iptables"; + enabled_b...
2013 Sep 05
2
Re: [PATCH 5/5] sysprep: remove iptables rules
...Public License along > + * with this program; if not, write to the Free Software Foundation, Inc., > + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. > + *) > + > +open Sysprep_operation > +open Common_gettext.Gettext > + > +module G = Guestfs > + > +let iptables_perform g root = > + let typ = g#inspect_get_type root in > + if typ <> "windows" then ( > + let path = "/etc/sysconfig/iptables" in > + (try g#rm path with G.Error _ -> ()); > + [] > + ) > + else [] > + > +let op = { > + defaults wit...