selabel_lookup_raw() doesn't find correct context for path with double slashes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

While investigating a bug about systemd/udev not setting the proper context on the hwdb.bin file, Michael Biebl discovered that apparently the selabel_lookup_raw() function is not coping properly with paths with double slashes (like "//lib/udev/hwdb.bin")

Shouldn't the selabel_lookup*() functions be more resilient to this case? Or should application canonicalize (with realpath()?) the path before calling these functions?

Regards,

Laurent Bigonville

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=863854




[Index of Archives]     [Selinux Refpolicy]     [Linux SGX]     [Fedora Users]     [Fedora Desktop]     [Yosemite Photos]     [Yosemite Camping]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux