Skip to content

Commit

Permalink
q-dev: add error message
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrbartman committed Oct 15, 2024
1 parent 4dbf597 commit c91295e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion qubes/ext/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,8 @@ def on_device_attach(
pattern = DeviceInterface(interface)
for devint in device.interfaces:
if pattern.matches(devint):
raise qubes.exc.PermissionDenied()
raise qubes.exc.PermissionDenied(
f"Device exposes a banned interface: {devint}")

@staticmethod
def _load_deny_list(deny: dict, path: str) -> None:
Expand Down

0 comments on commit c91295e

Please sign in to comment.