* Thu Sep 14 2006 Dan Walsh <dwalsh@redhat.com> 1.30.29-2
- Rebuild
This commit is contained in:
		
							parent
							
								
									6918f70153
								
							
						
					
					
						commit
						f53c7967db
					
				| @ -1,6 +1,6 @@ | |||||||
| diff --exclude-from=exclude --exclude='*.po' -N -u -r nsapolicycoreutils/restorecon/restorecon.8 policycoreutils-1.30.29/restorecon/restorecon.8
 | diff --exclude-from=exclude --exclude='*.po' -N -u -r nsapolicycoreutils/restorecon/restorecon.8 policycoreutils-1.30.29/restorecon/restorecon.8
 | ||||||
| --- nsapolicycoreutils/restorecon/restorecon.8	2006-08-28 16:58:19.000000000 -0400
 | --- nsapolicycoreutils/restorecon/restorecon.8	2006-08-28 16:58:19.000000000 -0400
 | ||||||
| +++ policycoreutils-1.30.29/restorecon/restorecon.8	2006-09-14 08:12:16.000000000 -0400
 | +++ policycoreutils-1.30.29/restorecon/restorecon.8	2006-09-15 09:19:49.000000000 -0400
 | ||||||
| @@ -23,6 +23,9 @@
 | @@ -23,6 +23,9 @@
 | ||||||
|   |   | ||||||
|  .SH "OPTIONS" |  .SH "OPTIONS" | ||||||
| @ -13,7 +13,7 @@ diff --exclude-from=exclude --exclude='*.po' -N -u -r nsapolicycoreutils/restore | |||||||
|  .TP  |  .TP  | ||||||
| diff --exclude-from=exclude --exclude='*.po' -N -u -r nsapolicycoreutils/restorecon/restorecon.c policycoreutils-1.30.29/restorecon/restorecon.c
 | diff --exclude-from=exclude --exclude='*.po' -N -u -r nsapolicycoreutils/restorecon/restorecon.c policycoreutils-1.30.29/restorecon/restorecon.c
 | ||||||
| --- nsapolicycoreutils/restorecon/restorecon.c	2006-09-01 22:32:11.000000000 -0400
 | --- nsapolicycoreutils/restorecon/restorecon.c	2006-09-01 22:32:11.000000000 -0400
 | ||||||
| +++ policycoreutils-1.30.29/restorecon/restorecon.c	2006-09-14 08:17:23.000000000 -0400
 | +++ policycoreutils-1.30.29/restorecon/restorecon.c	2006-09-15 09:19:49.000000000 -0400
 | ||||||
| @@ -11,9 +11,10 @@
 | @@ -11,9 +11,10 @@
 | ||||||
|   * restorecon [-Rnv] pathname... |   * restorecon [-Rnv] pathname... | ||||||
|   *  |   *  | ||||||
| @ -22,7 +22,7 @@ diff --exclude-from=exclude --exclude='*.po' -N -u -r nsapolicycoreutils/restore | |||||||
|   * -n	Do not change any file labels. |   * -n	Do not change any file labels. | ||||||
|   * -v	Show changes in file labels.   |   * -v	Show changes in file labels.   | ||||||
| - * -o filename save list of files with incorrect context
 | - * -o filename save list of files with incorrect context
 | ||||||
| + * -o   filename save list of files with incorrect context
 | + * -o	filename save list of files with incorrect context
 | ||||||
|   * -F	Force reset of context to match file_context for customizable files |   * -F	Force reset of context to match file_context for customizable files | ||||||
|   * |   * | ||||||
|   * pathname...	The file(s) to label  |   * pathname...	The file(s) to label  | ||||||
| @ -46,22 +46,20 @@ diff --exclude-from=exclude --exclude='*.po' -N -u -r nsapolicycoreutils/restore | |||||||
|  { |  { | ||||||
|  	fprintf(stderr, |  	fprintf(stderr, | ||||||
| -		"usage:  %s [-FnrRv] [-e excludedir ] [-o filename ] [-f filename | pathname... ]\n",
 | -		"usage:  %s [-FnrRv] [-e excludedir ] [-o filename ] [-f filename | pathname... ]\n",
 | ||||||
| +		"usage:  %s [-iFonrRv] [-e excludedir ] [-o filename ] [-f filename | pathname... ]\n",
 | +		"usage:  %s [-iFnrRv] [-e excludedir ] [-o filename ] [-f filename | pathname... ]\n",
 | ||||||
|  		name); |  		name); | ||||||
|  	exit(1); |  	exit(1); | ||||||
|  } |  } | ||||||
| @@ -160,7 +163,9 @@
 | @@ -160,6 +163,8 @@
 | ||||||
|  	} |  	} | ||||||
|   |   | ||||||
|  	if (lstat(filename, &st) != 0) { |  	if (lstat(filename, &st) != 0) { | ||||||
| -		fprintf(stderr, "lstat(%s) failed: %s\n", filename,
 |  | ||||||
| +		if (!file_exist && errno == ENOENT)
 | +		if (!file_exist && errno == ENOENT)
 | ||||||
| +			return 0;
 | +			return 0;
 | ||||||
| +		fprintf(outfile, "lstat(%s) failed: %s\n", filename,
 |  		fprintf(stderr, "lstat(%s) failed: %s\n", filename, | ||||||
|  			strerror(errno)); |  			strerror(errno)); | ||||||
|  		return 1; |  		return 1; | ||||||
|  	} | @@ -249,7 +254,10 @@
 | ||||||
| @@ -249,9 +251,12 @@
 |  | ||||||
|  						freecon(scontext); |  						freecon(scontext); | ||||||
|  						return 1; |  						return 1; | ||||||
|  					} |  					} | ||||||
| @ -71,21 +69,9 @@ diff --exclude-from=exclude --exclude='*.po' -N -u -r nsapolicycoreutils/restore | |||||||
| +					change_ctr++;
 | +					change_ctr++;
 | ||||||
| +
 | +
 | ||||||
|  				if (verbose) |  				if (verbose) | ||||||
| -					printf("%s reset %s context %s->%s\n",
 |  					printf("%s reset %s context %s->%s\n", | ||||||
| +					fprintf(stderr, "%s reset %s context %s->%s\n",
 |  | ||||||
|  					       progname, filename, |  					       progname, filename, | ||||||
|  					       (retcontext >= | @@ -322,6 +330,8 @@
 | ||||||
|  						0 ? prev_context : ""), |  | ||||||
| @@ -259,7 +264,7 @@
 |  | ||||||
|  			} |  | ||||||
|  		} |  | ||||||
|  		if (verbose > 1 && !force && customizable > 0) { |  | ||||||
| -			printf("%s: %s not reset customized by admin to %s\n",
 |  | ||||||
| +			fprintf(stderr, "%s: %s not reset customized by admin to %s\n",
 |  | ||||||
|  			       progname, filename, prev_context); |  | ||||||
|  		} |  | ||||||
|   |  | ||||||
| @@ -322,6 +327,8 @@
 |  | ||||||
|  			close(pipe_fds[1]); |  			close(pipe_fds[1]); | ||||||
|  		if (rc == -1 || rc > 0) { |  		if (rc == -1 || rc > 0) { | ||||||
|  			if (nftw(buf, apply_spec, 1024, FTW_PHYS)) { |  			if (nftw(buf, apply_spec, 1024, FTW_PHYS)) { | ||||||
| @ -94,7 +80,7 @@ diff --exclude-from=exclude --exclude='*.po' -N -u -r nsapolicycoreutils/restore | |||||||
|  				fprintf(stderr, |  				fprintf(stderr, | ||||||
|  					"%s:  error while labeling files under %s\n", |  					"%s:  error while labeling files under %s\n", | ||||||
|  					progname, buf); |  					progname, buf); | ||||||
| @@ -353,11 +360,14 @@
 | @@ -353,11 +363,14 @@
 | ||||||
|  		exit(0); |  		exit(0); | ||||||
|  	set_matchpathcon_flags(MATCHPATHCON_NOTRANS); |  	set_matchpathcon_flags(MATCHPATHCON_NOTRANS); | ||||||
|   |   | ||||||
| @ -110,7 +96,7 @@ diff --exclude-from=exclude --exclude='*.po' -N -u -r nsapolicycoreutils/restore | |||||||
|  		case 'r': |  		case 'r': | ||||||
|  		case 'R': |  		case 'R': | ||||||
|  			recurse = 1; |  			recurse = 1; | ||||||
| @@ -370,13 +380,17 @@
 | @@ -370,13 +383,17 @@
 | ||||||
|  				exit(1); |  				exit(1); | ||||||
|  			break; |  			break; | ||||||
|  		case 'o': |  		case 'o': | ||||||
| @ -134,11 +120,7 @@ diff --exclude-from=exclude --exclude='*.po' -N -u -r nsapolicycoreutils/restore | |||||||
|  			break; |  			break; | ||||||
|  		case 'v': |  		case 'v': | ||||||
|  			if (progress) { |  			if (progress) { | ||||||
| @@ -425,8 +439,11 @@
 | @@ -428,5 +445,7 @@
 | ||||||
|  			process(argv[i]); |  | ||||||
|  		} |  | ||||||
|  	} |  | ||||||
| +
 |  | ||||||
|  	if (outfile) |  	if (outfile) | ||||||
|  		fclose(outfile); |  		fclose(outfile); | ||||||
|   |   | ||||||
| @ -148,30 +130,15 @@ diff --exclude-from=exclude --exclude='*.po' -N -u -r nsapolicycoreutils/restore | |||||||
|  } |  } | ||||||
| diff --exclude-from=exclude --exclude='*.po' -N -u -r nsapolicycoreutils/scripts/fixfiles policycoreutils-1.30.29/scripts/fixfiles
 | diff --exclude-from=exclude --exclude='*.po' -N -u -r nsapolicycoreutils/scripts/fixfiles policycoreutils-1.30.29/scripts/fixfiles
 | ||||||
| --- nsapolicycoreutils/scripts/fixfiles	2006-09-01 22:32:11.000000000 -0400
 | --- nsapolicycoreutils/scripts/fixfiles	2006-09-01 22:32:11.000000000 -0400
 | ||||||
| +++ policycoreutils-1.30.29/scripts/fixfiles	2006-09-14 08:12:16.000000000 -0400
 | +++ policycoreutils-1.30.29/scripts/fixfiles	2006-09-15 09:20:06.000000000 -0400
 | ||||||
| @@ -117,8 +117,8 @@
 | @@ -117,7 +117,7 @@
 | ||||||
|      exit $? |      exit $? | ||||||
|  fi |  fi | ||||||
|  if [ ! -z "$RPMFILES" ]; then |  if [ ! -z "$RPMFILES" ]; then | ||||||
| -    for i in `echo $RPMFILES | sed 's/,/ /g'`; do
 | -    for i in `echo $RPMFILES | sed 's/,/ /g'`; do
 | ||||||
| -	rpmlist $i | ${RESTORECON} ${OUTFILES} ${FORCEFLAG} -R $* -f - 2>&1 >> $LOGFILE
 |  | ||||||
| +    for i in `echo "$RPMFILES" | sed 's/,/ /g'`; do
 | +    for i in `echo "$RPMFILES" | sed 's/,/ /g'`; do
 | ||||||
| +	rpmlist $i | ${RESTORECON} ${OUTFILES} ${FORCEFLAG} -i $* -f - 2>> $LOGFILE
 |  	rpmlist $i | ${RESTORECON} ${OUTFILES} ${FORCEFLAG} -R $* -f - 2>&1 >> $LOGFILE | ||||||
|      done |      done | ||||||
|      exit $? |  | ||||||
|  fi |  | ||||||
| @@ -126,10 +126,10 @@
 |  | ||||||
|      if [ -x /usr/bin/find ]; then |  | ||||||
|  	for d in ${DIRS} ; do find $d \ |  | ||||||
|  	    ! \( -fstype ext2 -o -fstype ext3 -o -fstype jfs -o -fstype xfs \) -prune  -o -print | \ |  | ||||||
| -	    ${RESTORECON} ${OUTFILES} ${FORCEFLAG} $* -f - 2>&1 >> $LOGFILE
 |  | ||||||
| +	    ${RESTORECON} ${OUTFILES} ${FORCEFLAG} $* -f - 2>> $LOGFILE
 |  | ||||||
|  	done |  | ||||||
|      else |  | ||||||
| -	${RESTORECON} ${OUTFILES} ${FORCEFLAG} -R $* $DIRS 2>&1 >> $LOGFILE
 |  | ||||||
| +	${RESTORECON} ${OUTFILES} ${FORCEFLAG} -R $* $DIRS 2>> $LOGFILE
 |  | ||||||
|      fi |  | ||||||
|   |  | ||||||
|      exit $? |      exit $? | ||||||
| @@ -219,7 +219,7 @@
 | @@ -219,7 +219,7 @@
 | ||||||
|  # check if they specified both DIRS and RPMFILES |  # check if they specified both DIRS and RPMFILES | ||||||
| @ -182,3 +149,11 @@ diff --exclude-from=exclude --exclude='*.po' -N -u -r nsapolicycoreutils/scripts | |||||||
|      if [ $OPTIND -le $# ]; then |      if [ $OPTIND -le $# ]; then | ||||||
|  	    usage |  	    usage | ||||||
|      fi |      fi | ||||||
|  | @@ -236,6 +236,7 @@
 | ||||||
|  |  case "$command" in | ||||||
|  |      restore) restore -p ;; | ||||||
|  |      check) restore -n -v ;; | ||||||
|  | +    verify) restore -n -o -;;
 | ||||||
|  |      relabel) relabel;; | ||||||
|  |      *) | ||||||
|  |      usage | ||||||
|  | |||||||
| @ -5,7 +5,7 @@ | |||||||
| Summary: SELinux policy core utilities. | Summary: SELinux policy core utilities. | ||||||
| Name: policycoreutils | Name: policycoreutils | ||||||
| Version: 1.30.29 | Version: 1.30.29 | ||||||
| Release: 1 | Release: 2 | ||||||
| License: GPL | License: GPL | ||||||
| Group: System Environment/Base | Group: System Environment/Base | ||||||
| Source: http://www.nsa.gov/selinux/archives/policycoreutils-%{version}.tgz | Source: http://www.nsa.gov/selinux/archives/policycoreutils-%{version}.tgz | ||||||
| @ -122,6 +122,9 @@ fi | |||||||
| [ -x /sbin/service ] && /sbin/service restorecond condrestart | [ -x /sbin/service ] && /sbin/service restorecond condrestart | ||||||
| 
 | 
 | ||||||
| %changelog | %changelog | ||||||
|  | * Thu Sep 14 2006 Dan Walsh <dwalsh@redhat.com> 1.30.29-2 | ||||||
|  | - Rebuild | ||||||
|  | 
 | ||||||
| * Thu Sep 14 2006 Dan Walsh <dwalsh@redhat.com> 1.30.29-1 | * Thu Sep 14 2006 Dan Walsh <dwalsh@redhat.com> 1.30.29-1 | ||||||
| - Update to upstream | - Update to upstream | ||||||
| - Change -o to take "-" for stdout | - Change -o to take "-" for stdout | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user