rpms/udev/devel udev-056-selinux.patch, NONE, 1.1 udev.spec, 1.79, 1.80

fedora-cvs-commits at redhat.com fedora-cvs-commits at redhat.com
Fri Apr 15 20:33:02 UTC 2005


Update of /cvs/dist/rpms/udev/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv23800

Modified Files:
	udev.spec 
Added Files:
	udev-056-selinux.patch 
Log Message:
* Fri Apr 15 2004 Dan Walsh <dwalsh at redhat.com> - 056-2
- Fix SELinux during creation of Symlinks


udev-056-selinux.patch:
 udev_add.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

--- NEW FILE udev-056-selinux.patch ---
--- udev-056/udev_add.c~	2005-03-19 02:39:30.000000000 -0500
+++ udev-056/udev_add.c	2005-04-15 16:23:01.000000000 -0400
@@ -221,7 +221,7 @@
 		dbg("symlink(%s, %s)", linktarget, filename);
 		if (!udev->test_run) {
 			unlink(filename);
-			selinux_setfscreatecon(filename, udev->kernel_name, S_IFLNK);
+			selinux_setfscreatecon(filename, NULL, S_IFLNK);
 			retval = symlink(linktarget, filename);
 			selinux_resetfscreatecon();
 			if (retval != 0)


Index: udev.spec
===================================================================
RCS file: /cvs/dist/rpms/udev/devel/udev.spec,v
retrieving revision 1.79
retrieving revision 1.80
diff -u -r1.79 -r1.80
--- udev.spec	11 Apr 2005 13:03:51 -0000	1.79
+++ udev.spec	15 Apr 2005 20:33:00 -0000	1.80
@@ -7,7 +7,7 @@
 Summary: A userspace implementation of devfs
 Name: udev
 Version: 056
-Release: 1
+Release: 2
 License: GPL
 Group: System Environment/Base
 %if !%{with_persistent}
@@ -39,7 +39,7 @@
 Source23: udevpermconv.sh
 
 Patch1: udev-039-static.patch
-Patch4: udev-048-selinux.patch
+Patch4: udev-056-selinux.patch
 
 ExclusiveOS: Linux
 URL: http://kernel.org/pub/linux/utils/kernel/hotplug/
@@ -76,7 +76,7 @@
 %setup -q  
 
 #%patch1 -p1 -b .glibcstatic
-#%patch4 -p1 -b .selinux
+%patch4 -p1 -b .selinux
 
 touch etc/init.d/udev.debian
 
@@ -287,6 +287,9 @@
 %endif
 
 %changelog
+* Fri Apr 15 2004 Dan Walsh <dwalsh at redhat.com> - 056-2
+- Fix SELinux during creation of Symlinks
+
 * Mon Apr 11 2005 Harald Hoyer <harald at redhat.com> - 056-1
 - updated to version 056
 - merged permissions in the rules file




More information about the fedora-cvs-commits mailing list