chiark / gitweb /
Allow block and char classes in DeviceAllow bus properties (#4353)
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 12 Oct 2016 09:12:11 +0000 (05:12 -0400)
committerSven Eden <yamakuzure@gmx.net>
Wed, 5 Jul 2017 06:50:55 +0000 (08:50 +0200)
commitd96290d8fd01ba77eec7f4a5fb493bc1ff80a98b
tree81ba09b9c01f5f55e0b4094d6832b22c07096e7d
parent6414babd8b4554e19f9ac7826cb7e82ef6b3435c
Allow block and char classes in DeviceAllow bus properties (#4353)

Allowed paths are unified betwen the configuration file parses and the bus
property checker. The biggest change is that the bus code now allows "block-"
and "char-" classes. In addition, path_startswith("/dev") was used in the bus
code, and startswith("/dev") was used in the config file code. It seems
reasonable to use path_startswith() which allows a slightly broader class of
strings.

Fixes #3935.
src/basic/path-util.c
src/basic/path-util.h