rpms/yaboot/devel yaboot-1.3.13-dontwritehome.patch, NONE, 1.1 yaboot.spec, 1.37, 1.38

fedora-cvs-commits at redhat.com fedora-cvs-commits at redhat.com
Wed Aug 23 15:43:47 UTC 2006


Author: pnasrat

Update of /cvs/dist/rpms/yaboot/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv23393

Modified Files:
	yaboot.spec 
Added Files:
	yaboot-1.3.13-dontwritehome.patch 
Log Message:
Fix ybin with SELinux (#201414)


yaboot-1.3.13-dontwritehome.patch:
 ybin |    4 ++++
 1 files changed, 4 insertions(+)

--- NEW FILE yaboot-1.3.13-dontwritehome.patch ---
--- yaboot-1.3.13/ybin/ybin.dontwritehome	2006-08-10 14:33:06.000000000 -0400
+++ yaboot-1.3.13/ybin/ybin	2006-08-10 14:33:15.000000000 -0400
@@ -821,6 +821,10 @@
 	    return 1
 	fi
 
+	## N.B.: SELinux does not like bootloader executables writing to 
+	## root's homedir, so we lie about HOME here.
+	export HOME=/boot
+
 	## hmount is really more of a way to make sure we have a valid HFS
 	## filesystem before proceding, and hcopy requires it...
 	hmount "$boot" > /dev/null


Index: yaboot.spec
===================================================================
RCS file: /cvs/dist/rpms/yaboot/devel/yaboot.spec,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -r1.37 -r1.38
--- yaboot.spec	21 Aug 2006 18:47:47 -0000	1.37
+++ yaboot.spec	23 Aug 2006 15:43:44 -0000	1.38
@@ -1,7 +1,7 @@
 Summary: Linux bootloader for Power Macintosh "New World" computers.
 Name: yaboot
 Version: 1.3.13
-Release: 1%{?dist}
+Release: 2%{?dist}
 License: GPL
 Group: System Environment/Base
 Source: http://yaboot.ozlabs.org/releases/yaboot-%{version}.tar.gz
@@ -33,6 +33,7 @@
 Patch26: yaboot-1.3.13-printversion.patch
 Patch27: yaboot-ppc64.patch
 Patch28: yaboot-1.3.13-multisata.patch
+Patch29: yaboot-1.3.13-dontwritehome.patch
 URL: http://yaboot.ozlabs.org/
 BuildRoot: %{_tmppath}/%{name}-root
 Obsoletes: ybin
@@ -75,6 +76,7 @@
 %patch26 -p1 -b .printversion
 %patch27 -p1 -b .ppc64
 %patch28 -p1 -b .multisata
+%patch29 -p1 -b .bootwrite
 
 %build
 make VERSIONEXTRA='\ (Red Hat %version-%release)'
@@ -108,6 +110,9 @@
 %ghost %config(noreplace) %{_sysconfdir}/yaboot.conf
 
 %changelog
+* Wed Aug 23 2006 Paul Nasrat <pnasrat at redhat.com> - 1.3.13-2
+- Fix ybin with SELinux (#201414)
+
 * Mon Aug 21 2006 Paul Nasrat <pnasrat at redhat.com> - 1.3.13-1
 - Fix multi disk G5 patch for all cases
 




More information about the fedora-cvs-commits mailing list