From d9d06ed5bed4187efb36744d9b62c2d90962f6b0 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Apr 10 2018 05:38:40 +0000 Subject: import libselinux-2.5-12.el7 --- diff --git a/SOURCES/libselinux-rhel.patch b/SOURCES/libselinux-rhel.patch index 05d713d..90f8144 100644 --- a/SOURCES/libselinux-rhel.patch +++ b/SOURCES/libselinux-rhel.patch @@ -554,6 +554,22 @@ index 7353952..3e9fca8 100644 .I errno is set appropriately. +diff --git libselinux-2.5/man/man3/getfilecon.3 libselinux-2.5/man/man3/getfilecon.3 +index 5bb575b..ec02866 100644 +--- libselinux-2.5/man/man3/getfilecon.3 ++++ libselinux-2.5/man/man3/getfilecon.3 +@@ -20,7 +20,10 @@ getfilecon, fgetfilecon, lgetfilecon \- get SELinux security context of a file + .SH "DESCRIPTION" + .BR getfilecon () + retrieves the context associated with the given path in the file system, the +-length of the context is returned. ++length of the context is returned. The context should not be used in ++selinux_access_check as this function can return a cached value, which is not ++suitable for access checking. It should only be used to print translated value ++to the user. + + .BR lgetfilecon () + is identical to diff --git libselinux-2.5/man/man3/is_selinux_enabled.3 libselinux-2.5/man/man3/is_selinux_enabled.3 index f02052c..df62c22 100644 --- libselinux-2.5/man/man3/is_selinux_enabled.3 diff --git a/SPECS/libselinux.spec b/SPECS/libselinux.spec index 44da960..20ccda8 100644 --- a/SPECS/libselinux.spec +++ b/SPECS/libselinux.spec @@ -10,7 +10,7 @@ Summary: SELinux library and simple utilities Name: libselinux Version: 2.5 -Release: 11%{?dist} +Release: 12%{?dist} License: Public Domain Group: System Environment/Libraries # https://github.com/SELinuxProject/selinux/wiki/Releases @@ -253,6 +253,9 @@ rm -rf %{buildroot} %{ruby_vendorarchdir}/selinux.so %changelog +* Tue Oct 17 2017 Vit Mojzis - 2.5-12 +- Improve getfilecon man page (#1258513) + * Thu Mar 23 2017 Petr Lautrbach - 2.5-11 - Fix audit2why.init error reporting (#1435139)