![](https://seccdn.libravatar.org/avatar/e2145bc5cf53dda95c308a3c75e8fef3.jpg?s=120&d=mm&r=g)
Hello community, here is the log from the commit of package libsemanage for openSUSE:Factory checked in at 2014-05-22 20:38:33 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/libsemanage (Old) and /work/SRC/openSUSE:Factory/.libsemanage.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "libsemanage" Changes: -------- --- /work/SRC/openSUSE:Factory/libsemanage/libsemanage.changes 2014-02-13 06:51:36.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.libsemanage.new/libsemanage.changes 2014-05-22 20:38:55.000000000 +0200 @@ -1,0 +2,6 @@ +Sun May 18 00:10:55 UTC 2014 - crrodriguez@opensuse.org + +- version 2.3 +* Fix memory leak in semanage_genhomedircon from Thomas Hurd. + +------------------------------------------------------------------- Old: ---- libsemanage-2.2.tar.gz New: ---- libsemanage-2.3.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libsemanage.spec ++++++ --- /var/tmp/diff_new_pack.xrMEMt/_old 2014-05-22 20:38:57.000000000 +0200 +++ /var/tmp/diff_new_pack.xrMEMt/_new 2014-05-22 20:38:57.000000000 +0200 @@ -26,13 +26,13 @@ BuildRequires: libustr-devel Name: libsemanage -Version: 2.2 +Version: 2.3 Release: 0 Summary: SELinux binary policy manipulation library License: LGPL-2.1+ Group: System/Libraries Url: http://userspace.selinuxproject.org/ -Source: http://userspace.selinuxproject.org/releases/20131030/%{name}-%{version}.tar.gz +Source: http://userspace.selinuxproject.org/releases/20140506/%{name}-%{version}.tar.gz Source1: baselibs.conf Source2: semanage.conf BuildRoot: %{_tmppath}/%{name}-%{version}-build ++++++ python-semanage.spec ++++++ --- /var/tmp/diff_new_pack.xrMEMt/_old 2014-05-22 20:38:57.000000000 +0200 +++ /var/tmp/diff_new_pack.xrMEMt/_new 2014-05-22 20:38:57.000000000 +0200 @@ -27,13 +27,13 @@ BuildRequires: swig Name: python-semanage -Version: 2.2 +Version: 2.3 Release: 0 Summary: Python bindings for libsemanage License: LGPL-2.1 Group: Development/Languages/Python Url: http://www.nsa.gov/selinux/ -Source: http://userspace.selinuxproject.org/releases/20131030/libsemanage-%{version}.tar.gz +Source: http://userspace.selinuxproject.org/releases/20140506/libsemanage-%{version}.tar.gz Source1: baselibs.conf BuildRoot: %{_tmppath}/%{name}-%{version}-build Requires: libsemanage1 = %{version} ++++++ libsemanage-2.2.tar.gz -> libsemanage-2.3.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libsemanage-2.2/ChangeLog new/libsemanage-2.3/ChangeLog --- old/libsemanage-2.2/ChangeLog 2013-10-30 17:51:19.000000000 +0100 +++ new/libsemanage-2.3/ChangeLog 2014-05-06 19:30:27.000000000 +0200 @@ -1,3 +1,6 @@ +2.3 2014-05-06 + * Fix memory leak in semanage_genhomedircon from Thomas Hurd. + 2.2 2013-10-30 * Avoid duplicate list entries from Dan Walsh. * Add audit support to libsemanage from Dan Walsh. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libsemanage-2.2/VERSION new/libsemanage-2.3/VERSION --- old/libsemanage-2.2/VERSION 2013-10-30 17:51:19.000000000 +0100 +++ new/libsemanage-2.3/VERSION 2014-05-06 19:30:27.000000000 +0200 @@ -1 +1 @@ -2.2 +2.3 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libsemanage-2.2/src/genhomedircon.c new/libsemanage-2.3/src/genhomedircon.c --- old/libsemanage-2.2/src/genhomedircon.c 2013-10-30 17:51:19.000000000 +0100 +++ new/libsemanage-2.3/src/genhomedircon.c 2014-05-06 19:30:27.000000000 +0200 @@ -1070,8 +1070,10 @@ s.fallback_user = strdup(FALLBACK_USER); s.fallback_user_prefix = strdup(FALLBACK_USER_PREFIX); s.fallback_user_level = strdup(FALLBACK_USER_LEVEL); - if (s.fallback_user == NULL || s.fallback_user_prefix == NULL || s.fallback_user_level == NULL) - return STATUS_ERR; + if (s.fallback_user == NULL || s.fallback_user_prefix == NULL || s.fallback_user_level == NULL) { + retval = STATUS_ERR; + goto done; + } if (ignoredirs) ignore_setup(ignoredirs); @@ -1082,15 +1084,19 @@ if (!(out = fopen(s.fcfilepath, "w"))) { /* couldn't open output file */ ERR(sh, "Could not open the file_context file for writing"); - return STATUS_ERR; + retval = STATUS_ERR; + goto done; } retval = write_context_file(&s, out); - fclose(out); +done: + if (out != NULL) + fclose(out); free(s.fallback_user); free(s.fallback_user_prefix); + free(s.fallback_user_level); ignore_free(); return retval; -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org
participants (1)
-
root@hilbert.suse.de