selinux: drop mac_selinux_unit_access_check_strv()
authorDavid Herrmann <dh.herrmann@gmail.com>
Thu, 27 Aug 2015 14:23:47 +0000 (16:23 +0200)
committerDavid Herrmann <dh.herrmann@gmail.com>
Thu, 27 Aug 2015 14:29:01 +0000 (16:29 +0200)
commit8faae625dc9b6322db452937f54176e56e65265a
tree6d8bb83e521173ce69453e465858415b253a038e
parent19bee5c3674cda184443509b49b9415f599349ab
selinux: drop mac_selinux_unit_access_check_strv()

It is not acceptable to load unit files during enable/disable operations
just to figure out the selinux labels. systemd implements lazy loading
for units, so the selinux hooks need to follow it.

This drops the mac_selinux_unit_access_check_strv() helper which
implements a non-acceptable policy check. If anyone cares for that
functionality, you really should pass a callback+userdata to the helpers
in src/shared/install.c which does policy checks on each touched file.

See #1050 on github for more.
src/core/dbus-manager.c
src/core/selinux-access.c
src/core/selinux-access.h