aboutsummaryrefslogtreecommitdiffstats
path: root/fs/9p/vfs_dir.c
diff options
context:
space:
mode:
authorHarsh Prateek Bora <harsh@linux.vnet.ibm.com>2010-08-03 11:55:40 +0000
committerEric Van Hensbergen <ericvh@gmail.com>2010-10-28 09:08:44 -0500
commit3834b12a18d51d6c535ea52e16355d75806ffe38 (patch)
treed3ccd5ac5e0610ca7b1e5a937eeaf827db548786 /fs/9p/vfs_dir.c
parent9p: remove unneeded checks (diff)
downloadlinux-dev-3834b12a18d51d6c535ea52e16355d75806ffe38.tar.xz
linux-dev-3834b12a18d51d6c535ea52e16355d75806ffe38.zip
fs/9p: setrlimit fix for 9p write
Current 9p client file write code does not check for RLIMIT_FSIZE resource. This bug was found by running LTP test case for setrlimit. This bug is fixed by calling generic_write_checks before sending the write request to the server. Without this patch: the write function is allowed to write above the RLIMIT_FSIZE set by user. With this patch: the write function checks for RLIMIT_SIZE and writes upto the size limit. Signed-off-by: Harsh Prateek Bora <harsh@linux.vnet.ibm.com> Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
Diffstat (limited to 'fs/9p/vfs_dir.c')
0 files changed, 0 insertions, 0 deletions