Go to file
Eric Paris 12e2a0f9fc libselinux: matchpathcon: bad handling of symlinks in /
The realpath_not_final() function did not properly handle symlinks in
the / directory.  The reason is because when it determined the symlink
was in the root directory it would set the resolved portion of the path
to /, it would then add a / to the end of the resolved portion, and then
append the symlink name.  The fix is to instead set the resolved portion
to "".  Thus when the '/' at the end of the resolved portion is added it
will be correct.

While I am at it, strip extraneous leading / so that //tmp returns /tmp.

Signed-off-by: Eric Paris <eparis@redhat.com>
2012-06-28 11:21:16 -04:00
checkpolicy bump version and changelog for upstream push 2012-03-28 15:44:05 -04:00
libselinux libselinux: matchpathcon: bad handling of symlinks in / 2012-06-28 11:21:16 -04:00
libsemanage libselinux: libsemanage: remove build warning when build swig c files 2012-06-28 11:21:16 -04:00
libsepol libsepol: Android/MacOS X build support 2012-06-28 11:21:15 -04:00
policycoreutils bump version and changelog for upstream push 2012-03-28 15:44:05 -04:00
scripts release script 2009-03-12 01:23:32 -04:00
sepolgen bump version and changelog for upstream push 2012-03-28 15:44:05 -04:00
.gitignore .gitignore: More files to ignore 2011-09-16 11:54:04 -04:00
Makefile global: Makefile: create global 'all' target 2011-08-26 14:27:57 -04:00