Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
chanakyavasantha committed Dec 12, 2023
1 parent ac1e3e6 commit 506dff8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/test-linux-commands.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ jobs:
- name: Configure USBGuard
run: |
pip install -r requirements.txt
python3 BackEnd/readtoml.py
9 changes: 8 additions & 1 deletion config/sampleconfig.toml
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
enable = false
[physical-ports]
enable = true
allow-all = false
rules = [
{allow = true, id = "1a2c:4c5e", name = "USB Keyboard", port = "1-2"}, # allow only at that port
{allow = true, id = "04f3:0c00", name = "ELAN:ARM-M4"},
{allow = false, port = "1-3"} # block all devices at that port
]
1 change: 1 addition & 0 deletions tests/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ def test_configuration_file_exists(self):
self.assertTrue(os.path.exists(self.config_file), "Configuration file not found.")

def test_disable_usbguard_if_not_enabled(self):

pass

def test_generate_rules_conf_allow_all(self):
Expand Down

0 comments on commit 506dff8

Please sign in to comment.