[libsemanage/f20] Unlink policy.kern when done to save space.
Daniel J Walsh
dwalsh at fedoraproject.org
Fri Sep 6 13:43:08 UTC 2013
commit 8d7036b8b69b00031afc40a021a3352c8bbfe5e4
Author: Dan Walsh <dwalsh at redhat.com>
Date: Fri Sep 6 09:42:57 2013 -0400
Unlink policy.kern when done to save space.
libsemanage-rhat.patch | 12 ++++++++++++
libsemanage.spec | 5 ++++-
2 files changed, 16 insertions(+), 1 deletions(-)
---
diff --git a/libsemanage-rhat.patch b/libsemanage-rhat.patch
index d3bcee6..b2d5ec7 100644
--- a/libsemanage-rhat.patch
+++ b/libsemanage-rhat.patch
@@ -183,6 +183,18 @@ index 3c81d7a..f3b9b5c 100644
} else {
if (semanage_list_push(&homedir_list, path))
goto fail;
+diff --git a/libsemanage/src/semanage_store.c b/libsemanage/src/semanage_store.c
+index 57ef49f..94e2ac5 100644
+--- a/libsemanage/src/semanage_store.c
++++ b/libsemanage/src/semanage_store.c
+@@ -1234,6 +1234,7 @@ static int semanage_install_active(semanage_handle_t * sh)
+
+ retval = 0;
+ cleanup:
++ unlink(active_kernel);
+ free(storepath);
+ return retval;
+ }
diff --git a/libsemanage/src/seusers_local.c b/libsemanage/src/seusers_local.c
index e7cf12c..ed0af21 100644
--- a/libsemanage/src/seusers_local.c
diff --git a/libsemanage.spec b/libsemanage.spec
index b3af7d2..eacee3c 100644
--- a/libsemanage.spec
+++ b/libsemanage.spec
@@ -7,7 +7,7 @@
Summary: SELinux binary policy manipulation library
Name: libsemanage
Version: 2.1.10
-Release: 7%{?dist}
+Release: 8%{?dist}
License: LGPLv2+
Group: System Environment/Libraries
Source: libsemanage-%{version}.tgz
@@ -179,6 +179,9 @@ rm -rf ${RPM_BUILD_ROOT}
%endif # if with_python3
%changelog
+* Fri Sep 6 2013 Dan Walsh <dwalsh at redhat.com> - 2.1.10-8
+- Unlink policy.kern when done to save space.
+
* Fri Jul 26 2013 Dan Walsh <dwalsh at redhat.com> - 2.1.10-7
- Move handling of role audit records into the library
- Patch stops semanage from removing user record while in use
More information about the scm-commits
mailing list