]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/basic/path-util.h
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)
committerLennart Poettering <lennart@poettering.net>
Wed, 12 Oct 2016 09:12:11 +0000 (11:12 +0200)
commit3ccb886283a1a98b549f44b6d33edeecc3768f1f
tree6efe6e9c2b5ea9d229f05ae58f2cd0aa858a4dfc
parent9f1008d5131806a390d697f2e1e994ea1e9bf83d
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
src/core/load-fragment.c
src/shared/bus-unit-util.c