tags 328141 +patch
thanks

On Wed, Sep 14, 2005 at 06:22:00AM +1000, Paul Szabo wrote:
> [ .. umount -r drops flags ]
>   http://www.securityfocus.com/archive/1/410333

The attached patch is extracted from 2.12r-pre1, it simply
disallows user r/o remounts.

cheers,
Max
--- /home/max/deb/loop-aes-utils/trunk/mount/umount.c   2005-08-27 
12:24:13.000000000 +0200
+++ util-linux-2.12r-pre1/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"));
        }
 

Reply via email to