rpms/libsemanage/devel .cvsignore, 1.101, 1.102 libsemanage-rhat.patch, 1.52, 1.53 libsemanage.spec, 1.180, 1.181 sources, 1.104, 1.105

Daniel J Walsh dwalsh at fedoraproject.org
Wed Aug 5 19:21:58 UTC 2009


Author: dwalsh

Update of /cvs/extras/rpms/libsemanage/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv13431

Modified Files:
	.cvsignore libsemanage-rhat.patch libsemanage.spec sources 
Log Message:
* Wed Aug 5 2009 Dan Walsh <dwalsh at redhat.com> - 2.0.35-1
	* Revert hard linking of files between tmp/active/previous.
	* Enable configuration of bzip behavior from Stephen Smalley.
	  bzip-blocksize=0 to disable compression and decompression support.
	  bzip-blocksize=1..9 to set the blocksize for compression.
	  bzip-small=true to reduce memory usage for decompression.



Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/libsemanage/devel/.cvsignore,v
retrieving revision 1.101
retrieving revision 1.102
diff -u -p -r1.101 -r1.102
--- .cvsignore	7 Jul 2009 21:09:14 -0000	1.101
+++ .cvsignore	5 Aug 2009 19:21:57 -0000	1.102
@@ -107,3 +107,4 @@ libsemanage-2.0.30.tgz
 libsemanage-2.0.31.tgz
 libsemanage-2.0.32.tgz
 libsemanage-2.0.33.tgz
+libsemanage-2.0.35.tgz

libsemanage-rhat.patch:
 genhomedircon.c |    9 +++++++++
 semanage.conf   |    2 +-
 2 files changed, 10 insertions(+), 1 deletion(-)

Index: libsemanage-rhat.patch
===================================================================
RCS file: /cvs/extras/rpms/libsemanage/devel/libsemanage-rhat.patch,v
retrieving revision 1.52
retrieving revision 1.53
diff -u -p -r1.52 -r1.53
--- libsemanage-rhat.patch	10 Jul 2009 18:46:50 -0000	1.52
+++ libsemanage-rhat.patch	5 Aug 2009 19:21:57 -0000	1.53
@@ -1,7 +1,18 @@
 diff --exclude-from=exclude -N -u -r nsalibsemanage/src/genhomedircon.c libsemanage-2.0.33/src/genhomedircon.c
 --- nsalibsemanage/src/genhomedircon.c	2008-08-28 09:34:24.000000000 -0400
-+++ libsemanage-2.0.33/src/genhomedircon.c	2009-07-10 14:46:05.000000000 -0400
-@@ -794,6 +794,10 @@
++++ libsemanage-2.0.33/src/genhomedircon.c	2009-07-15 10:32:20.000000000 -0400
+@@ -304,6 +304,10 @@
+ 			continue;
+ 		if (!semanage_list_find(shells, pwbuf->pw_shell))
+ 			continue;
++		int len = strlen(pwbuf->pw_dir) -1;
++		for(; len > 0 && pwbuf->pw_dir[len]=='/'; len--) {
++			pwbuf->pw_dir[len]=0;
++		}
+ 		if (strcmp(pwbuf->pw_dir, "/") == 0)
+ 			continue;
+ 		if (semanage_str_count(pwbuf->pw_dir, '/') <= 1)
+@@ -794,6 +798,11 @@
  			 * /root */
  			continue;
  		}
@@ -9,37 +20,16 @@ diff --exclude-from=exclude -N -u -r nsa
 +			/* don't relabel /root*/
 +			continue;
 +		}
++
  		if (push_user_entry(&head, name, seuname,
  				    prefix, pwent->pw_dir) != STATUS_SUCCESS) {
  			*errors = STATUS_ERR;
 diff --exclude-from=exclude -N -u -r nsalibsemanage/src/semanage.conf libsemanage-2.0.33/src/semanage.conf
 --- nsalibsemanage/src/semanage.conf	2008-08-28 09:34:24.000000000 -0400
-+++ libsemanage-2.0.33/src/semanage.conf	2009-07-10 14:45:44.000000000 -0400
++++ libsemanage-2.0.33/src/semanage.conf	2009-07-15 10:30:33.000000000 -0400
 @@ -35,4 +35,4 @@
  # given in <sepol/policydb.h>.  Change this setting if a different
  # version is necessary.
  #policy-version = 19
 -
 +expand-check=0
-diff --exclude-from=exclude -N -u -r nsalibsemanage/src/semanage_store.c libsemanage-2.0.33/src/semanage_store.c
---- nsalibsemanage/src/semanage_store.c	2009-07-07 15:32:32.000000000 -0400
-+++ libsemanage-2.0.33/src/semanage_store.c	2009-07-10 14:45:44.000000000 -0400
-@@ -441,8 +441,6 @@
- 	char tmp[PATH_MAX];
- 	char buf[4192];
- 
--	if (link(src,dst) == 0) return 0;
--
- 	n = snprintf(tmp, PATH_MAX, "%s.tmp", dst);
- 	if (n < 0 || n >= PATH_MAX)
- 		return -1;
-@@ -510,7 +508,8 @@
- 				goto cleanup;
- 			}
- 		} else if (S_ISREG(sb.st_mode)) {
--			if (semanage_copy_file(path, path2, sb.st_mode) == -1) {
-+			if ((link(path,path2) == -1) && 
-+			     (semanage_copy_file(path, path2, sb.st_mode) == -1)) {
- 				goto cleanup;
- 			}
- 		}


Index: libsemanage.spec
===================================================================
RCS file: /cvs/extras/rpms/libsemanage/devel/libsemanage.spec,v
retrieving revision 1.180
retrieving revision 1.181
diff -u -p -r1.180 -r1.181
--- libsemanage.spec	25 Jul 2009 08:35:48 -0000	1.180
+++ libsemanage.spec	5 Aug 2009 19:21:58 -0000	1.181
@@ -2,8 +2,8 @@
 %define libselinuxver 2.0.0-1
 Summary: SELinux binary policy manipulation library 
 Name: libsemanage
-Version: 2.0.33
-Release: 3%{?dist}
+Version: 2.0.35
+Release: 1%{?dist}
 License: LGPLv2+
 Group: System Environment/Libraries
 Source: http://www.nsa.gov/selinux/archives/libsemanage-%{version}.tgz
@@ -91,6 +91,13 @@ rm -rf ${RPM_BUILD_ROOT}
 %{_libdir}/python*/site-packages/*
 
 %changelog
+* Wed Aug 5 2009 Dan Walsh <dwalsh at redhat.com> - 2.0.35-1
+	* Revert hard linking of files between tmp/active/previous.
+	* Enable configuration of bzip behavior from Stephen Smalley.
+	  bzip-blocksize=0 to disable compression and decompression support.
+	  bzip-blocksize=1..9 to set the blocksize for compression.
+	  bzip-small=true to reduce memory usage for decompression.
+
 * Sat Jul 25 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.0.33-3
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
 


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/libsemanage/devel/sources,v
retrieving revision 1.104
retrieving revision 1.105
diff -u -p -r1.104 -r1.105
--- sources	10 Jul 2009 18:46:52 -0000	1.104
+++ sources	5 Aug 2009 19:21:58 -0000	1.105
@@ -1 +1 @@
-3c5af39fda8e81567f0c6d4bf96cfc7f  libsemanage-2.0.33.tgz
+a1592f93fbe653d9c9e1de00597d7df4  libsemanage-2.0.35.tgz




More information about the scm-commits mailing list