diff options
Diffstat (limited to 'src/grp-udev/systemd-hwdb')
-rw-r--r-- | src/grp-udev/systemd-hwdb/Makefile | 3 | ||||
-rw-r--r-- | src/grp-udev/systemd-hwdb/hwdb.c | 8 |
2 files changed, 8 insertions, 3 deletions
diff --git a/src/grp-udev/systemd-hwdb/Makefile b/src/grp-udev/systemd-hwdb/Makefile index ef4e5074ae..8636cc3270 100644 --- a/src/grp-udev/systemd-hwdb/Makefile +++ b/src/grp-udev/systemd-hwdb/Makefile @@ -51,7 +51,8 @@ dist_udevhwdb_DATA = \ hwdb/60-evdev.hwdb \ hwdb/60-keyboard.hwdb \ hwdb/70-mouse.hwdb \ - hwdb/70-pointingstick.hwdb + hwdb/70-pointingstick.hwdb \ + hwdb/70-touchpad.hwdb SYSINIT_TARGET_WANTS += \ systemd-hwdb-update.service diff --git a/src/grp-udev/systemd-hwdb/hwdb.c b/src/grp-udev/systemd-hwdb/hwdb.c index 0e96716b0f..2e843249ae 100644 --- a/src/grp-udev/systemd-hwdb/hwdb.c +++ b/src/grp-udev/systemd-hwdb/hwdb.c @@ -27,7 +27,9 @@ #include "basic/fd-util.h" #include "basic/fileio.h" #include "basic/fs-util.h" +#include "basic/label.h" #include "basic/mkdir.h" +#include "basic/selinux-util.h" #include "basic/strbuf.h" #include "basic/string-util.h" #include "basic/strv.h" @@ -643,12 +645,12 @@ static int hwdb_update(int argc, char *argv[], void *userdata) { if (!hwdb_bin) return -ENOMEM; - mkdir_parents(hwdb_bin, 0755); + mkdir_parents_label(hwdb_bin, 0755); r = trie_store(trie, hwdb_bin); if (r < 0) return log_error_errno(r, "Failure writing database %s: %m", hwdb_bin); - return 0; + return label_fix(hwdb_bin, false, false); } static void help(void) { @@ -732,6 +734,8 @@ int main (int argc, char *argv[]) { if (r <= 0) goto finish; + mac_selinux_init(); + r = hwdb_main(argc, argv); finish: |