Messages in this thread | | | Date | Sun, 12 May 2002 18:23:21 +0200 | From | Kasper Dupont <> | Subject | [RFC] ext2 and ext3 block reservations can be bypassed |
| |
Usually the last 5% of the diskspace on ext2 and ext3 filesystems are reserved for root. But I just realized that they can be bypassed by redirecting the output from a suid root program to a file.
This command will keep writing beyond the 95% limit: while true ; do mount ; done >filename
This was tested on a 2.4.19-pre8-ac1 kernel. Does this problem exist on all other kernels as well, and how severe is this problem?
It might be better to only allow write() if the user was also allowed to do that when open() was called.
-- Kasper Dupont -- der bruger for meget tid på usenet. For sending spam use mailto:razor-report@daimi.au.dk - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |