[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

rpms/policycoreutils/devel policycoreutils-rhat.patch, 1.97, 1.98 policycoreutils.spec, 1.133, 1.134



Author: dwalsh

Update of /cvs/dist/rpms/policycoreutils/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv26510

Modified Files:
	policycoreutils-rhat.patch policycoreutils.spec 
Log Message:
* Fri Aug 26 2005 Dan Walsh <dwalsh redhat com> 1.25.7-2
- Change to use *getfilecon_raw functions


policycoreutils-rhat.patch:
 restorecon/restorecon.c |    2 +-
 setfiles/setfiles.c     |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

Index: policycoreutils-rhat.patch
===================================================================
RCS file: /cvs/dist/rpms/policycoreutils/devel/policycoreutils-rhat.patch,v
retrieving revision 1.97
retrieving revision 1.98
diff -u -r1.97 -r1.98
--- policycoreutils-rhat.patch	22 Aug 2005 21:27:16 -0000	1.97
+++ policycoreutils-rhat.patch	26 Aug 2005 18:23:35 -0000	1.98
@@ -1,31 +1,24 @@
-diff --exclude-from=exclude -N -u -r nsapolicycoreutils/scripts/fixfiles policycoreutils-1.25.5/scripts/fixfiles
---- nsapolicycoreutils/scripts/fixfiles	2005-05-20 13:15:12.000000000 -0400
-+++ policycoreutils-1.25.5/scripts/fixfiles	2005-08-22 17:25:15.000000000 -0400
-@@ -62,6 +62,7 @@
- 	TEMPFILE=`mktemp ${FC}.XXXXXXXXXX`
- 	test -z "$TEMPFILE" && exit
- 	/usr/bin/diff $PREFC $FC | grep '^[<>]'|cut -c3-| grep ^/ | \
-+	    egrep -v '(^/home|^/root|^/tmp|^/dev)' |\
- 	sed -r -e 's,[[:blank:]].*,,g' \
-                -e 's|\(([/[:alnum:]]+)\)\?|{\1,}|g' \
- 	       -e 's|([/[:alnum:]])\?|{\1,}|g' \
-@@ -70,7 +71,9 @@
- 	       -e 's|\[.*|*|g' \
-                -e 's|\.\*.*|*|g' \
-                -e 's|\.\+.*|*|g' | \
--	sort -d -u | \
-+	    # These two sorts need to be separate commands \
-+	sort -u | \
-+	sort -d | \
-         while read pattern ; \
- 	    do if ! echo "$pattern" | grep -q -f ${TEMPFILE} 2>/dev/null; then \
-                   echo "$pattern"; \
-@@ -80,7 +83,7 @@
-                fi; \
-             done | \
- 	while read pattern ; do find $pattern \( -fstype ext2 -o -fstype ext3 -o -fstype jfs -o -fstype xfs \) -print; done 2> /dev/null | \
--	 ${RESTORECON} $2 -v -e /root -e /home -e /tmp -e /var/tmp -e /dev -f - 
-+	 ${RESTORECON} $2 -v -f - 
- 	rm -f ${TEMPFILE}
- fi
- }
+diff --exclude-from=exclude -N -u -r nsapolicycoreutils/restorecon/restorecon.c policycoreutils-1.25.7/restorecon/restorecon.c
+--- nsapolicycoreutils/restorecon/restorecon.c	2005-07-27 09:58:39.000000000 -0400
++++ policycoreutils-1.25.7/restorecon/restorecon.c	2005-08-26 14:20:10.000000000 -0400
+@@ -186,7 +186,7 @@
+     freecon(scontext);
+     return 0;
+   }
+-  retcontext=lgetfilecon(filename,&prev_context);
++  retcontext=lgetfilecon_raw(filename,&prev_context);
+   
+   if (retcontext >= 0 || errno == ENODATA) {
+     int customizable=0;
+diff --exclude-from=exclude -N -u -r nsapolicycoreutils/setfiles/setfiles.c policycoreutils-1.25.7/setfiles/setfiles.c
+--- nsapolicycoreutils/setfiles/setfiles.c	2005-04-11 16:00:46.000000000 -0400
++++ policycoreutils-1.25.7/setfiles/setfiles.c	2005-08-26 14:20:28.000000000 -0400
+@@ -285,7 +285,7 @@
+ 	}
+ 
+ 	/* Get the current context of the file. */
+-	ret = lgetfilecon(my_file, &context);
++	ret = lgetfilecon_raw(my_file, &context);
+ 	if (ret < 0) {
+ 		if (errno == ENODATA) {
+ 			context = malloc(10);


Index: policycoreutils.spec
===================================================================
RCS file: /cvs/dist/rpms/policycoreutils/devel/policycoreutils.spec,v
retrieving revision 1.133
retrieving revision 1.134
diff -u -r1.133 -r1.134
--- policycoreutils.spec	25 Aug 2005 20:44:42 -0000	1.133
+++ policycoreutils.spec	26 Aug 2005 18:23:35 -0000	1.134
@@ -1,13 +1,14 @@
-%define libselinuxver 1.23.1-1
+%define libselinuxver 1.25.4-1
 %define libsepolver 1.7.20-1
 %define libsemanagever 1.1.3-1
 Summary: SELinux policy core utilities.
 Name: policycoreutils
 Version: 1.25.7
-Release: 1
+Release: 2
 License: GPL
 Group: System Environment/Base
 Source: http://www.nsa.gov/selinux/archives/policycoreutils-%{version}.tgz
+Patch: policycoreutils-rhat.patch
 
 BuildRequires: libselinux-devel >= %{libselinuxver} pam-devel libsepol-devel >= %{libsepolver} libsemanage-devel >= %{libsemanagever}
 
@@ -34,6 +35,7 @@
 
 %prep
 %setup -q
+%patch -p1 -b .rhat
 
 %build
 make LIBDIR="%{_libdir}" CFLAGS="%{optflags}" all 
@@ -86,6 +88,9 @@
 %config(noreplace) %{_sysconfdir}/sestatus.conf
 
 %changelog
+* Fri Aug 26 2005 Dan Walsh <dwalsh redhat com> 1.25.7-2
+- Change to use *getfilecon_raw functions
+
 * Thu Aug 25 2005 Dan Walsh <dwalsh redhat com> 1.25.7-1
 - Update to match NSA
 	* Merged patch for fixfiles -C from Dan Walsh.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]