diff --git a/README.md b/README.md index c5c356ea..24c349b5 100644 --- a/README.md +++ b/README.md @@ -128,7 +128,7 @@ Rules are stored as JSON files inside the `-rule-path` folder, in the simplest c | enabled | Use to temporarily disable and enable rules without moving their files. | | action | Can be `deny` or `allow`. | | duration | For rules persisting on disk, this value is default to `always`. | -| operator.type | Can be `simple`, in which case a simple `==` comparision will be performed, or `regexp` if the `data` field is a regular expression to match. | +| operator.type | Can be `simple`, in which case a simple `==` comparison will be performed, or `regexp` if the `data` field is a regular expression to match. | | operator.operand | What element of the connection to compare, can be one of: `true` (will always match), `process.path` (the path of the executable), `process.command` (full command line, including path and arguments), `provess.env.ENV_VAR_NAME` (use the value of an environment variable of the process given its name), `user.id`, `dest.ip`, `dest.host` or `dest.port`. | | operator.data | The data to compare the `operand` to, can be a regular expression if `type` is `regexp`. | diff --git a/make_ads_rules.py b/make_ads_rules.py index cda34b9e..17ef9293 100644 --- a/make_ads_rules.py +++ b/make_ads_rules.py @@ -19,7 +19,7 @@ for url in lists: print "Downloading %s ..." % url r = requests.get(url) if r.status_code != 200: - print "Erorr, status code %d" % r.status_code + print "Error, status code %d" % r.status_code continue for line in r.text.split("\n"): @@ -48,7 +48,7 @@ os.system("mkdir -p rules") idx = 0 for domain, _ in domains.iteritems(): with open("rules/adv-%d.json" % idx, "wt") as fp: - tpl = """ + tpl = """ { "created": "%s", "updated": "%s", diff --git a/ui/opensnitch/service.py b/ui/opensnitch/service.py index 9f98bd05..1a99d004 100644 --- a/ui/opensnitch/service.py +++ b/ui/opensnitch/service.py @@ -44,7 +44,7 @@ class UIService(ui_pb2_grpc.UIServicer, QtWidgets.QGraphicsObject): self._remote_lock = Lock() self._remote_stats = {} - # make sure we save the configuration if it + # make sure we save the configuration if it # does not exist as a file yet if self._cfg.exists == False: self._cfg.save() @@ -57,7 +57,7 @@ class UIService(ui_pb2_grpc.UIServicer, QtWidgets.QGraphicsObject): self.check_thread = Thread(target=self._async_worker) self.check_thread.daemon = True self.check_thread.start() - + # https://gist.github.com/pklaus/289646 def _setup_interfaces(self): max_possible = 128 # arbitrary. raise if needed. @@ -120,7 +120,7 @@ class UIService(ui_pb2_grpc.UIServicer, QtWidgets.QGraphicsObject): if self._version_warning_shown == False: self._msg.setIcon(QtWidgets.QMessageBox.Warning) self._msg.setWindowTitle("OpenSnitch version mismatch!") - self._msg.setText("You are runnig version %s of the daemon, while the UI is at version " + \ + self._msg.setText("You are running version %s of the daemon, while the UI is at version " + \ "%s, they might not be fully compatible." % (daemon_ver, ui_ver)) self._msg.setStandardButtons(QtWidgets.QMessageBox.Ok) self._msg.show()