Compare commits

...

1 Commits
master ... f26

Author SHA1 Message Date
Petr Lautrbach ad78c23542 libselinux-2.6-7
- Always unmount selinuxfs for SELINUX=disabled
2017-07-31 12:55:50 +02:00
2 changed files with 22 additions and 2 deletions

View File

@ -897,6 +897,23 @@ index 52707d0..0cbe12d 100644
if (rc < 0 && errno == ENOTSUP) {
char * ccontext = NULL;
int err = errno;
diff --git libselinux-2.6/src/load_policy.c libselinux-2.6/src/load_policy.c
index b7e1a6f..6d74a9a 100644
--- libselinux-2.6/src/load_policy.c
+++ libselinux-2.6/src/load_policy.c
@@ -450,8 +450,11 @@ int selinux_init_load_policy(int *enforce)
}
}
- if (seconfig == -1)
+ if (seconfig == -1) {
+ umount(selinux_mnt);
+ fini_selinuxmnt();
goto noload;
+ }
/* Load the policy. */
return selinux_mkload_policy(0);
diff --git libselinux-2.6/src/lsetfilecon.c libselinux-2.6/src/lsetfilecon.c
index 1d3b28a..ea6d70b 100644
--- libselinux-2.6/src/lsetfilecon.c

View File

@ -9,7 +9,7 @@
Summary: SELinux library and simple utilities
Name: libselinux
Version: 2.6
Release: 6%{?dist}
Release: 7%{?dist}
License: Public Domain
Group: System Environment/Libraries
# https://github.com/SELinuxProject/selinux/wiki/Releases
@ -20,7 +20,7 @@ Url: https://github.com/SELinuxProject/selinux/wiki
# download https://raw.githubusercontent.com/fedora-selinux/scripts/master/selinux/make-fedora-selinux-patch.sh
# run:
# $ VERSION=2.6 ./make-fedora-selinux-patch.sh libselinux
# HEAD https://github.com/fedora-selinux/selinux/commit/55c710487a365122fc1c961c7b05620defbfe65a
# HEAD https://github.com/fedora-selinux/selinux/commit/601a1d1363fe4137ff3a2991c546f7a0ccfec4cb
Patch1: libselinux-fedora.patch
%if 0%{?fedora} > 25
BuildRequires: pkgconf-pkg-config
@ -262,6 +262,9 @@ rm -rf %{buildroot}
%{ruby_vendorarchdir}/selinux.so
%changelog
* Mon Jul 31 2017 Petr Lautrbach <plautrba@redhat.com> - 2.6-7
- Always unmount selinuxfs for SELINUX=disabled
* Fri Apr 28 2017 Petr Lautrbach <plautrba@redhat.com> - 2.6-6
- Don't finalize mount state in selinux_set_policy_root()
- Follow upstream and rename _selinux.so to _selinux.cpython-36m-x86_64-linux-gnu.so