do_acct_process bypasses vfs_write?

2007-03-14 Thread Michael K. Edwards
do_acct_process (in kernel/acct.c) bypasses vfs_write and calls file->f_op->write directly. It therefore bypasses various sanity checks, some of which appear applicable (notably inode->i_flock && MANDATORY_LOCK(inode)) and others of which do not (oversize request, access_ok, etc.). It also

do_acct_process bypasses vfs_write?

2007-03-14 Thread Michael K. Edwards
do_acct_process (in kernel/acct.c) bypasses vfs_write and calls file-f_op-write directly. It therefore bypasses various sanity checks, some of which appear applicable (notably inode-i_flock MANDATORY_LOCK(inode)) and others of which do not (oversize request, access_ok, etc.). It also neglects