SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
|
@ -0,0 +1,36 @@
|
|||
Disable Linux specific firewall checks.
|
||||
|
||||
Index: firewallsettings.py
|
||||
--- firewallsettings.py.orig
|
||||
+++ firewallsettings.py
|
||||
@@ -227,27 +227,13 @@ class SystemConfigFirewall:
|
||||
debugprint ("Exception: %r" % exc)
|
||||
|
||||
def write (self):
|
||||
- try:
|
||||
- self._fw.write (json.dumps (self._fw_data[0]))
|
||||
- except:
|
||||
- pass
|
||||
+ pass
|
||||
|
||||
def _check_any_allowed (self, search):
|
||||
- (args, filename) = self._get_fw_data ()
|
||||
- if filename is None: return True
|
||||
- isect = set (search).intersection (set (args))
|
||||
- return len (isect) != 0
|
||||
+ return True
|
||||
|
||||
-
|
||||
def add_service (self, service):
|
||||
- try:
|
||||
- (args, filename) = self._fw_data
|
||||
- except AttributeError:
|
||||
- (args, filename) = self._get_fw_data ()
|
||||
- if filename is None: return
|
||||
-
|
||||
- args.append ("--service=" + service)
|
||||
- self._fw_data = (args, filename)
|
||||
+ pass
|
||||
|
||||
def check_ipp_client_allowed (self):
|
||||
return self._check_any_allowed (set(["--port=%s:%s" %
|
Loading…
Add table
Add a link
Reference in a new issue