selinux/libselinux
Chris PeBenito 9e4480b921 libselinux: Remove trailing slash on selabel_file lookups.
Having a trailing slash on a file lookup, e.g. "/some/path/", can
cause a different result, for example,  when file contexts are written to have
the directory have a different label than the contents.  This is inconsistent
with normal Linux behaviors where trailing slashes are ignored.

Many callers already strip the trailing slash before the lookup or users
revise the file contexts to work around this.  This fixes it comprehensively.

v2: fix length issues

Signed-off-by: Chris PeBenito <chpebeni@linux.microsoft.com>
Acked-by: Stephen Smalley <stephen.smalley.work@gmail.com>
2020-08-26 14:25:45 -04:00
..
include libselinux: mark security_context_t typedef as deprecated 2020-05-01 10:48:19 -05:00
man libselinux: use full argument specifiers for security_check_context in man page 2020-08-26 14:21:54 -04:00
src libselinux: Remove trailing slash on selabel_file lookups. 2020-08-26 14:25:45 -04:00
utils utils: matchpathcon add deprecated warning 2020-04-30 09:13:25 -05:00
LICENSE
Makefile libselinux: fix build order 2020-08-17 11:54:16 -04:00
VERSION Update VERSIONs and Python bindings version to 3.1 for release 2020-07-10 17:17:15 +02:00