diff options
author | Tobias Mueller <muelli@cryptobitch.de> | 2021-01-06 10:04:18 +0100 |
---|---|---|
committer | Benjamin Berg <benjamin@sipsolutions.net> | 2021-07-26 15:36:18 +0000 |
commit | 85a8d2430f7134c11b4db08d6c0fae63ded21aec (patch) | |
tree | 10093cc5694037cf6c82d6f8d202ca6f529762a5 /plugins/usb-protection | |
parent | 4a0304731e456359eca67f2958c1aa32eef7072d (diff) | |
download | gnome-settings-daemon-85a8d2430f7134c11b4db08d6c0fae63ded21aec.tar.gz |
usb: debug rule finding and device allowing
This helped me to find a subtle bug in the code.
I hope that it will help me in the future, too.
Diffstat (limited to 'plugins/usb-protection')
-rw-r--r-- | plugins/usb-protection/gsd-usb-protection-manager.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/usb-protection/gsd-usb-protection-manager.c b/plugins/usb-protection/gsd-usb-protection-manager.c index fd4023c0..92e0f097 100644 --- a/plugins/usb-protection/gsd-usb-protection-manager.c +++ b/plugins/usb-protection/gsd-usb-protection-manager.c @@ -209,6 +209,7 @@ is_usbguard_allow_rule_present (GVariant *rules) return TRUE; } } + g_debug ("Rule not present"); return FALSE; } @@ -410,6 +411,7 @@ static void call_usbguard_dbus (GDBusProxy *proxy, if (manager->usb_protection_devices == NULL) { g_warning("Could not call USBGuard, because DBus is missing"); } else { + g_debug ("Calling applyDevicePolicy with device_id %u, target %u and permanent: %i", device_id, target, permanent); GVariant *params = g_variant_new ("(uub)", device_id, target, permanent); g_dbus_proxy_call (manager->usb_protection_devices, APPLY_DEVICE_POLICY, |