delayed permission checks in 2.6

From: Bryan K.
Date: Sun Aug 24 2003 - 08:08:46 EST


While exploring some of the source I found out that some permission checks are made too late. For example the sys_mount function in 2.6-test1: It gets 4 pages to put the type, the path, the dev name and the options. It then locks the kernel, check for magic numbers and other sanity checks, interprets the flags, does the mount point dentry lookup(which might spend some time sleeping) and after all that it checks for CAP_SYS_ADMIN. Is there any serious reason for this delay at the permission checks?

_________________________________________________________________
Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/