Commit 918634ee authored by Christian Kellner's avatar Christian Kellner
Browse files

device: validate policy value from udev

parent 7a5d7421
......@@ -499,6 +499,12 @@ bolt_sysfs_security_for_device (struct udev_device *udev)
v = udev_device_get_sysattr_value (parent, "security");
s = bolt_security_from_string (v);
if (!bolt_security_validate (s))
g_warning ("invalid security: %s", v);
return s;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment