SOURCES (RA-branch): util-linux-disallow-umount-r.patch (NEW) - CA...

qboosh qboosh at pld-linux.org
Thu Oct 6 13:32:39 CEST 2005


Author: qboosh                       Date: Thu Oct  6 11:32:39 2005 GMT
Module: SOURCES                       Tag: RA-branch
---- Log message:
- CAN-2005-2876 fix backported from util-linux 2.12r

---- Files affected:
SOURCES:
   util-linux-disallow-umount-r.patch (NONE -> 1.1.2.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/util-linux-disallow-umount-r.patch
diff -u /dev/null SOURCES/util-linux-disallow-umount-r.patch:1.1.2.1
--- /dev/null	Thu Oct  6 13:32:39 2005
+++ SOURCES/util-linux-disallow-umount-r.patch	Thu Oct  6 13:32:34 2005
@@ -0,0 +1,15 @@
+umount: disallow -r option for non-root users
+(backport from 2.12r-pre1, fixes CAN-2005-2876)
+
+diff -Nur util-linux-2.12q/mount/umount.c util-linux-2.12r/mount/umount.c
+--- util-linux-2.12q/mount/umount.c	2004-12-20 23:03:45.000000000 +0100
++++ util-linux-2.12r/mount/umount.c	2005-09-10 20:07:38.000000000 +0200
+@@ -714,7 +714,7 @@
+ 
+ 	if (getuid () != geteuid ()) {
+ 		suid = 1;
+-		if (all || types || nomtab || force)
++		if (all || types || nomtab || force || remount)
+ 			die (2, _("umount: only root can do that"));
+ 	}
+ 
================================================================



More information about the pld-cvs-commit mailing list