Hello community, here is the log from the commit of package libsemanage for openSUSE:Factory checked in at 2012-10-26 07:58:02 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/libsemanage (Old) and /work/SRC/openSUSE:Factory/.libsemanage.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libsemanage", Maintainer is "vci...@suse.com" Changes: -------- --- /work/SRC/openSUSE:Factory/libsemanage/libsemanage.changes 2012-08-28 20:48:25.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.libsemanage.new/libsemanage.changes 2012-10-26 07:58:04.000000000 +0200 @@ -1,0 +2,7 @@ +Wed Oct 24 16:36:25 UTC 2012 - vci...@suse.com + +- when building "standard" (not MCS/MLS) selinux-policies, + libsemanage will crash, because "level" is NULL + (libsemanage-2.1.6-NULL_level_fix.patch) + +------------------------------------------------------------------- --- /work/SRC/openSUSE:Factory/libsemanage/python-semanage.changes 2012-08-10 19:01:56.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.libsemanage.new/python-semanage.changes 2012-10-26 07:58:04.000000000 +0200 @@ -1,0 +2,5 @@ +Tue Oct 23 05:05:03 UTC 2012 - co...@suse.com + +- buildrequire libbz2-devel + +------------------------------------------------------------------- New: ---- libsemanage-2.1.6-NULL_level_fix.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libsemanage.spec ++++++ --- /var/tmp/diff_new_pack.CNJA7Y/_old 2012-10-26 07:58:07.000000000 +0200 +++ /var/tmp/diff_new_pack.CNJA7Y/_new 2012-10-26 07:58:07.000000000 +0200 @@ -32,6 +32,7 @@ Url: http://userspace.selinuxproject.org/ Source: http://userspace.selinuxproject.org/releases/20120216/%{name}-%{version}.tar.gz Source1: baselibs.conf +Patch: libsemanage-2.1.6-NULL_level_fix.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %define debug_package_requires libsemanage1 = %{version}-%{release} @@ -93,6 +94,7 @@ %prep %setup -q +%patch -p2 %build make clean ++++++ python-semanage.spec ++++++ --- /var/tmp/diff_new_pack.CNJA7Y/_old 2012-10-26 07:58:08.000000000 +0200 +++ /var/tmp/diff_new_pack.CNJA7Y/_new 2012-10-26 07:58:08.000000000 +0200 @@ -18,6 +18,7 @@ BuildRequires: bison BuildRequires: flex +BuildRequires: libbz2-devel BuildRequires: libselinux-devel BuildRequires: libsepol-devel BuildRequires: libustr-devel ++++++ libsemanage-2.1.6-NULL_level_fix.patch ++++++ >From 64aff2c80f28280724f64628d6bf4c4722b4f75f Mon Sep 17 00:00:00 2001 From: Xin Ouyang <xinpas...@gmail.com> Date: Thu, 12 Jan 2012 16:58:34 +0800 Subject: [PATCH] libsemanage: Fix segfault for building standard policies. If you are building "standard" policies(not MCS/MLS), libsemanage will crash, which caused by strdup() to "level" NULL pointers. For example, semodule -s refpolicy -b base.pp -i a.pp --- libsemanage/src/genhomedircon.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/libsemanage/src/genhomedircon.c b/libsemanage/src/genhomedircon.c index d2646ae..262a6cd 100644 --- a/libsemanage/src/genhomedircon.c +++ b/libsemanage/src/genhomedircon.c @@ -778,6 +778,8 @@ static int setup_fallback_user(genhomedircon_settings_t * s) { prefix = semanage_user_get_prefix(u); level = semanage_user_get_mlslevel(u); + if (level == NULL) + level = ""; } if (set_fallback_user(s, seuname, prefix, level) != 0) @@ -861,6 +863,8 @@ static genhomedircon_user_entry_t *get_users(genhomedircon_settings_t * s, if (u) { prefix = semanage_user_get_prefix(*u); level = semanage_user_get_mlslevel(*u); + if (level == NULL) + level = ""; } else { prefix = name; level = "s0"; -- 1.7.7.3 -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org