HAMMER VFS - Fix improper cred checks for utimes()
authorMatthew Dillon <dillon@apollo.backplane.com>
Sat, 28 Feb 2009 23:30:30 +0000 (15:30 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Mon, 4 May 2009 06:21:53 +0000 (23:21 -0700)
commit778963124b94d3f75cd6ace4556026708b1006b7
tree6345f10843f98ce17275eb04660656fe462593a0
parent0c06bce2ed775d9cb533090af30a71fe8023cb2f
HAMMER VFS - Fix improper cred checks for utimes()

Adjust the kern_utimes() code in the kernel to check for write permissions
prior to diving into the VFS.  UFS checks for write perms but HAMMER doesn't.
Generally speaking we want (at least for now) the kernel to do as much of
these checks as possible.

Reported-by: YONETANI Tomokazu <qhwt+dfly@les.ath.cx>
sys/kern/vfs_syscalls.c