rpms/libselinux/F-13 .cvsignore, 1.192, 1.193 libselinux-rhat.patch, 1.205, 1.206 libselinux.spec, 1.388, 1.389 sources, 1.195, 1.196

Daniel J Walsh dwalsh at fedoraproject.org
Mon Mar 8 14:29:05 UTC 2010


Author: dwalsh

Update of /cvs/extras/rpms/libselinux/F-13
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv25481

Modified Files:
	.cvsignore libselinux-rhat.patch libselinux.spec sources 
Log Message:
* Sun Mar 7 2010 Dan Walsh <dwalsh at redhat.com> - 2.0.92-1
- Update to upstream 
	* Fix from Eric Paris to fix leak on non-selinux systems.
	* regenerate swig wrappers
	* pkgconfig fix to respect LIBDIR from Dan Walsh.



Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/libselinux/F-13/.cvsignore,v
retrieving revision 1.192
retrieving revision 1.193
diff -u -p -r1.192 -r1.193
--- .cvsignore	24 Feb 2010 19:18:34 -0000	1.192
+++ .cvsignore	8 Mar 2010 14:29:02 -0000	1.193
@@ -175,3 +175,4 @@ libselinux-2.0.88.tgz
 libselinux-2.0.89.tgz
 libselinux-2.0.90.tgz
 libselinux-2.0.91.tgz
+libselinux-2.0.92.tgz

libselinux-rhat.patch:
 man/man3/is_selinux_enabled.3 |    3 ++-
 man/man8/selinuxconlist.8     |   18 ++++++++++++++++++
 man/man8/selinuxdefcon.8      |   24 ++++++++++++++++++++++++
 src/callbacks.c               |    1 +
 src/matchpathcon.c            |    3 ++-
 5 files changed, 47 insertions(+), 2 deletions(-)

Index: libselinux-rhat.patch
===================================================================
RCS file: /cvs/extras/rpms/libselinux/F-13/libselinux-rhat.patch,v
retrieving revision 1.205
retrieving revision 1.206
diff -u -p -r1.205 -r1.206
--- libselinux-rhat.patch	22 Feb 2010 16:48:59 -0000	1.205
+++ libselinux-rhat.patch	8 Mar 2010 14:29:03 -0000	1.206
@@ -1,6 +1,23 @@
-diff --exclude-from=exclude -N -u -r nsalibselinux/man/man8/selinuxconlist.8 libselinux-2.0.90/man/man8/selinuxconlist.8
+diff --exclude-from=exclude -N -u -r nsalibselinux/man/man3/is_selinux_enabled.3 libselinux-2.0.92/man/man3/is_selinux_enabled.3
+--- nsalibselinux/man/man3/is_selinux_enabled.3	2009-03-06 14:41:45.000000000 -0500
++++ libselinux-2.0.92/man/man3/is_selinux_enabled.3	2010-03-07 07:40:57.000000000 -0500
+@@ -1,4 +1,4 @@
+-.TH "is_selinux_enabled" "3" "1 January 2004" "russell at coker.com.au" "SELinux API documentation"
++.TH "is_selinux_enabled" "3" "7 Mar 2010" "russell at coker.com.au" "SELinux API documentation"
+ .SH "NAME"
+ is_selinux_enabled \- check whether SELinux is enabled
+ 
+@@ -14,6 +14,7 @@
+ .SH "DESCRIPTION"
+ .B is_selinux_enabled
+ returns 1 if SELinux is running or 0 if it is not. 
++On error, \-1 is returned.
+ 
+ .B is_selinux_mls_enabled
+ returns 1 if SELinux is running in MLS mode or 0 if it is not. 
+diff --exclude-from=exclude -N -u -r nsalibselinux/man/man8/selinuxconlist.8 libselinux-2.0.92/man/man8/selinuxconlist.8
 --- nsalibselinux/man/man8/selinuxconlist.8	1969-12-31 19:00:00.000000000 -0500
-+++ libselinux-2.0.90/man/man8/selinuxconlist.8	2010-01-18 16:52:28.000000000 -0500
++++ libselinux-2.0.92/man/man8/selinuxconlist.8	2010-03-07 07:38:19.000000000 -0500
 @@ -0,0 +1,18 @@
 +.TH "selinuxconlist" "1" "7 May 2008" "dwalsh at redhat.com" "SELinux Command Line documentation"
 +.SH "NAME"
@@ -20,9 +37,9 @@ diff --exclude-from=exclude -N -u -r nsa
 +
 +.SH "SEE ALSO"
 +secon(8), selinuxdefcon(8)
-diff --exclude-from=exclude -N -u -r nsalibselinux/man/man8/selinuxdefcon.8 libselinux-2.0.90/man/man8/selinuxdefcon.8
+diff --exclude-from=exclude -N -u -r nsalibselinux/man/man8/selinuxdefcon.8 libselinux-2.0.92/man/man8/selinuxdefcon.8
 --- nsalibselinux/man/man8/selinuxdefcon.8	1969-12-31 19:00:00.000000000 -0500
-+++ libselinux-2.0.90/man/man8/selinuxdefcon.8	2010-01-18 16:52:28.000000000 -0500
++++ libselinux-2.0.92/man/man8/selinuxdefcon.8	2010-03-07 07:38:19.000000000 -0500
 @@ -0,0 +1,24 @@
 +.TH "selinuxdefcon" "1" "7 May 2008" "dwalsh at redhat.com" "SELinux Command Line documentation"
 +.SH "NAME"
@@ -48,9 +65,9 @@ diff --exclude-from=exclude -N -u -r nsa
 +
 +.SH "SEE ALSO"
 +secon(8), selinuxconlist(8)
-diff --exclude-from=exclude -N -u -r nsalibselinux/src/callbacks.c libselinux-2.0.90/src/callbacks.c
+diff --exclude-from=exclude -N -u -r nsalibselinux/src/callbacks.c libselinux-2.0.92/src/callbacks.c
 --- nsalibselinux/src/callbacks.c	2009-04-08 09:06:23.000000000 -0400
-+++ libselinux-2.0.90/src/callbacks.c	2010-01-18 16:52:28.000000000 -0500
++++ libselinux-2.0.92/src/callbacks.c	2010-03-07 07:38:19.000000000 -0500
 @@ -16,6 +16,7 @@
  {
  	int rc;
@@ -59,97 +76,9 @@ diff --exclude-from=exclude -N -u -r nsa
  	va_start(ap, fmt);
  	rc = vfprintf(stderr, fmt, ap);
  	va_end(ap);
-diff --exclude-from=exclude -N -u -r nsalibselinux/src/init.c libselinux-2.0.90/src/init.c
---- nsalibselinux/src/init.c	2009-07-14 11:16:03.000000000 -0400
-+++ libselinux-2.0.90/src/init.c	2010-02-22 11:04:16.000000000 -0500
-@@ -23,7 +23,7 @@
- static void init_selinuxmnt(void)
- {
- 	char *buf=NULL, *p;
--	FILE *fp;
-+	FILE *fp=NULL;
- 	struct statfs sfbuf;
- 	int rc;
- 	size_t len;
-@@ -57,16 +57,17 @@
- 			break;
- 		}
- 	}
--	fclose(fp);
- 
--	if (!exists)
--		return;
-+	if (!exists) 
-+		goto out;
-+
-+	fclose(fp);
- 
- 	/* At this point, the usual spot doesn't have an selinuxfs so
- 	 * we look around for it */
- 	fp = fopen("/proc/mounts", "r");
- 	if (!fp)
--		return;
-+		goto out;
- 
- 	__fsetlocking(fp, FSETLOCKING_BYCALLER);
- 	while ((num = getline(&buf, &len, fp)) != -1) {
-@@ -90,7 +91,8 @@
- 
-       out:
- 	free(buf);
--	fclose(fp);
-+	if (fp)
-+		fclose(fp);
- 	return;
- }
- 
-diff --exclude-from=exclude -N -u -r nsalibselinux/src/label_file.c libselinux-2.0.90/src/label_file.c
---- nsalibselinux/src/label_file.c	2009-05-18 13:53:14.000000000 -0400
-+++ libselinux-2.0.90/src/label_file.c	2010-01-18 16:53:54.000000000 -0500
-@@ -20,6 +20,9 @@
- #include "callbacks.h"
- #include "label_internal.h"
- 
-+#include <sys/types.h>
-+#include <sys/stat.h>
-+
- /*
-  * Internals, mostly moved over from matchpathcon.c
-  */
-diff --exclude-from=exclude -N -u -r nsalibselinux/src/libselinux.pc.in libselinux-2.0.90/src/libselinux.pc.in
---- nsalibselinux/src/libselinux.pc.in	2009-11-02 12:58:30.000000000 -0500
-+++ libselinux-2.0.90/src/libselinux.pc.in	2010-02-18 10:02:46.000000000 -0500
-@@ -1,6 +1,6 @@
- prefix=@prefix@
- exec_prefix=${prefix}
--libdir=${exec_prefix}/lib
-+libdir=${exec_prefix}/@libdir@
- includedir=@includedir@
- 
- Name: libselinux
-diff --exclude-from=exclude -N -u -r nsalibselinux/src/Makefile libselinux-2.0.90/src/Makefile
---- nsalibselinux/src/Makefile	2009-12-01 15:46:50.000000000 -0500
-+++ libselinux-2.0.90/src/Makefile	2010-02-18 10:20:27.000000000 -0500
-@@ -11,6 +11,7 @@
- RUBYPLATFORM ?= $(shell ruby -e 'print RUBY_PLATFORM')
- RUBYINC ?= $(LIBDIR)/ruby/$(RUBYLIBVER)/$(RUBYPLATFORM)
- RUBYINSTALL ?= $(LIBDIR)/ruby/site_ruby/$(RUBYLIBVER)/$(RUBYPLATFORM)
-+LIBBASE=$(shell basename $(LIBDIR))
- 
- VERSION = $(shell cat ../VERSION)
- LIBVERSION = 1
-@@ -85,7 +86,7 @@
- 	ln -sf $@ $(TARGET) 
- 
- $(LIBPC): $(LIBPC).in
--	sed -e 's/@VERSION@/$(VERSION)/; s:@prefix@:$(PREFIX):; s:@libdir@:$(LIBDIR):; s:@includedir@:$(INCLUDEDIR):' < $< > $@
-+	sed -e 's/@VERSION@/$(VERSION)/; s:@prefix@:$(PREFIX):; s:@libdir@:$(LIBBASE):; s:@includedir@:$(INCLUDEDIR):' < $< > $@
- 
- selinuxswig_python_exception.i: ../include/selinux/selinux.h
- 	bash exception.sh > $@ 
-diff --exclude-from=exclude -N -u -r nsalibselinux/src/matchpathcon.c libselinux-2.0.90/src/matchpathcon.c
+diff --exclude-from=exclude -N -u -r nsalibselinux/src/matchpathcon.c libselinux-2.0.92/src/matchpathcon.c
 --- nsalibselinux/src/matchpathcon.c	2009-03-06 14:41:45.000000000 -0500
-+++ libselinux-2.0.90/src/matchpathcon.c	2010-01-18 16:52:28.000000000 -0500
++++ libselinux-2.0.92/src/matchpathcon.c	2010-03-07 07:38:19.000000000 -0500
 @@ -2,6 +2,7 @@
  #include <string.h>
  #include <errno.h>


Index: libselinux.spec
===================================================================
RCS file: /cvs/extras/rpms/libselinux/F-13/libselinux.spec,v
retrieving revision 1.388
retrieving revision 1.389
diff -u -p -r1.388 -r1.389
--- libselinux.spec	24 Feb 2010 19:18:34 -0000	1.388
+++ libselinux.spec	8 Mar 2010 14:29:04 -0000	1.389
@@ -4,7 +4,7 @@
 
 Summary: SELinux library and simple utilities
 Name: libselinux
-Version: 2.0.91
+Version: 2.0.92
 Release: 1%{?dist}
 License: Public Domain
 Group: System Environment/Libraries
@@ -166,6 +166,12 @@ exit 0
 %{ruby_sitearch}/selinux.so
 
 %changelog
+* Sun Mar 7 2010 Dan Walsh <dwalsh at redhat.com> - 2.0.92-1
+- Update to upstream 
+	* Fix from Eric Paris to fix leak on non-selinux systems.
+	* regenerate swig wrappers
+	* pkgconfig fix to respect LIBDIR from Dan Walsh.
+
 * Wed Feb 24 2010 Dan Walsh <dwalsh at redhat.com> - 2.0.91-1
 - Update to upstream 
 	* Change the AVC to only audit the permissions specified by the


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/libselinux/F-13/sources,v
retrieving revision 1.195
retrieving revision 1.196
diff -u -p -r1.195 -r1.196
--- sources	24 Feb 2010 19:18:34 -0000	1.195
+++ sources	8 Mar 2010 14:29:04 -0000	1.196
@@ -1 +1 @@
-17f7d791eba17ded16177dcb710ac7b9  libselinux-2.0.91.tgz
+8650382d4d4a7c6ad2a27220815bc624  libselinux-2.0.92.tgz



More information about the scm-commits mailing list