lkml.org 
[lkml]   [2003]   [Aug]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subjectdelayed permission checks in 2.6
Date
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@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:48    [W:0.033 / U:0.068 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site