Bug#851933: udev: /lib/udev/hwdb.bin gets wrong SE Linux label

2017-05-31 Thread Michael Biebl
Control: clone -1 -2 Control: reassign -2 libselinux1 Control: found -2 2.6-3 Control: retitle -2 selabel_lookup_raw() doesn't find correct context for "//lib/udev/hwdb.bin" Am 01.06.2017 um 00:34 schrieb Michael Biebl: > This path is passed to mac_selinux_fix() in >

Bug#851933: udev: /lib/udev/hwdb.bin gets wrong SE Linux label

2017-05-31 Thread Michael Biebl
Am 01.06.2017 um 00:53 schrieb Michael Biebl: > Am 01.06.2017 um 00:34 schrieb Michael Biebl: >> The result is //lib/udev/hwdb.bin, note the double // > > Fwiw, we could stick a > path_kill_slashes(hwdb_bin); > after the strjoin like in the attached patch. Hm, using path_join() might be even

Bug#851933: udev: /lib/udev/hwdb.bin gets wrong SE Linux label

2017-05-31 Thread Michael Biebl
Am 01.06.2017 um 00:34 schrieb Michael Biebl: > https://github.com/systemd/systemd/blob/master/src/hwdb/hwdb.c#L673 > This computes the path to the cache file: > hwdb_bin = strjoin(arg_root, "/", arg_hwdb_bin_dir, "/hwdb.bin"); > > The result is //lib/udev/hwdb.bin, note the double // Fwiw, we

Bug#851933: udev: /lib/udev/hwdb.bin gets wrong SE Linux label

2017-05-31 Thread Michael Biebl
Am 31.05.2017 um 19:32 schrieb Michael Biebl: > The selinux context should be set by label_fix: > https://github.com/systemd/systemd/blob/master/src/hwdb/hwdb.c#L682 > > I haven't debugged yet, why that doesn't work for --usr. I have a better picture now what's going on/wrong:

Bug#851933: udev: /lib/udev/hwdb.bin gets wrong SE Linux label

2017-05-31 Thread Michael Biebl
Control: tags -1 + confirmed On Fri, 20 Jan 2017 15:39:14 +1100 Russell Coker wrote: > Package: udev > Version: 232-12 > Severity: normal > > The command "systemd-hwdb --usr update" as run from > /var/lib/dpkg/info/udev.postinst creates the file /lib/udev/hwdb.bin and >

Bug#851933: udev: /lib/udev/hwdb.bin gets wrong SE Linux label

2017-01-19 Thread Russell Coker
Package: udev Version: 232-12 Severity: normal The command "systemd-hwdb --usr update" as run from /var/lib/dpkg/info/udev.postinst creates the file /lib/udev/hwdb.bin and assigns it the SE Linux context "system_u:object_r:default_t:s0" when it should have "system_u:object_r:bin_t:s0" with the