mirror of
https://github.com/evilsocket/opensnitch.git
synced 2025-03-04 00:24:40 +01:00
Misc. typos
Found via `codespell -q 3`
This commit is contained in:
parent
980876e517
commit
996c9ae9a7
3 changed files with 6 additions and 6 deletions
|
@ -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. |
|
| enabled | Use to temporarily disable and enable rules without moving their files. |
|
||||||
| action | Can be `deny` or `allow`. |
|
| action | Can be `deny` or `allow`. |
|
||||||
| duration | For rules persisting on disk, this value is default to `always`. |
|
| 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.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`. |
|
| operator.data | The data to compare the `operand` to, can be a regular expression if `type` is `regexp`. |
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,7 @@ for url in lists:
|
||||||
print "Downloading %s ..." % url
|
print "Downloading %s ..." % url
|
||||||
r = requests.get(url)
|
r = requests.get(url)
|
||||||
if r.status_code != 200:
|
if r.status_code != 200:
|
||||||
print "Erorr, status code %d" % r.status_code
|
print "Error, status code %d" % r.status_code
|
||||||
continue
|
continue
|
||||||
|
|
||||||
for line in r.text.split("\n"):
|
for line in r.text.split("\n"):
|
||||||
|
@ -48,7 +48,7 @@ os.system("mkdir -p rules")
|
||||||
idx = 0
|
idx = 0
|
||||||
for domain, _ in domains.iteritems():
|
for domain, _ in domains.iteritems():
|
||||||
with open("rules/adv-%d.json" % idx, "wt") as fp:
|
with open("rules/adv-%d.json" % idx, "wt") as fp:
|
||||||
tpl = """
|
tpl = """
|
||||||
{
|
{
|
||||||
"created": "%s",
|
"created": "%s",
|
||||||
"updated": "%s",
|
"updated": "%s",
|
||||||
|
|
|
@ -44,7 +44,7 @@ class UIService(ui_pb2_grpc.UIServicer, QtWidgets.QGraphicsObject):
|
||||||
self._remote_lock = Lock()
|
self._remote_lock = Lock()
|
||||||
self._remote_stats = {}
|
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
|
# does not exist as a file yet
|
||||||
if self._cfg.exists == False:
|
if self._cfg.exists == False:
|
||||||
self._cfg.save()
|
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 = Thread(target=self._async_worker)
|
||||||
self.check_thread.daemon = True
|
self.check_thread.daemon = True
|
||||||
self.check_thread.start()
|
self.check_thread.start()
|
||||||
|
|
||||||
# https://gist.github.com/pklaus/289646
|
# https://gist.github.com/pklaus/289646
|
||||||
def _setup_interfaces(self):
|
def _setup_interfaces(self):
|
||||||
max_possible = 128 # arbitrary. raise if needed.
|
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:
|
if self._version_warning_shown == False:
|
||||||
self._msg.setIcon(QtWidgets.QMessageBox.Warning)
|
self._msg.setIcon(QtWidgets.QMessageBox.Warning)
|
||||||
self._msg.setWindowTitle("OpenSnitch version mismatch!")
|
self._msg.setWindowTitle("OpenSnitch version mismatch!")
|
||||||
self._msg.setText("You are runnig version <b>%s</b> of the daemon, while the UI is at version " + \
|
self._msg.setText("You are running version <b>%s</b> of the daemon, while the UI is at version " + \
|
||||||
"<b>%s</b>, they might not be fully compatible." % (daemon_ver, ui_ver))
|
"<b>%s</b>, they might not be fully compatible." % (daemon_ver, ui_ver))
|
||||||
self._msg.setStandardButtons(QtWidgets.QMessageBox.Ok)
|
self._msg.setStandardButtons(QtWidgets.QMessageBox.Ok)
|
||||||
self._msg.show()
|
self._msg.show()
|
||||||
|
|
Loading…
Add table
Reference in a new issue