Bug#851933: udev: /lib/udev/hwdb.bin gets wrong SE Linux label
Michael Biebl
biebl at debian.org
Wed May 31 23:53:11 BST 2017
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 could stick a
path_kill_slashes(hwdb_bin);
after the strjoin like in the attached patch.
But...
> Afaics, this looks like a libselinux bug to me. It should properly deal
> with paths that have double //.
I think this still applies. libselinux/the selinux policy should deal
with that fact that a path with double slashes is passed on.
Regards,
Michael
--
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hwdb.diff
Type: text/x-patch
Size: 649 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20170601/fea3fd9d/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20170601/fea3fd9d/attachment-0002.sig>
More information about the Pkg-systemd-maintainers
mailing list