projects
/
powerpc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Forbid user to change file flags on quota files
[powerpc.git]
/
fs
/
jfs
/
ioctl.c
diff --git
a/fs/jfs/ioctl.c
b/fs/jfs/ioctl.c
index
3c8663b
..
dfda12a
100644
(file)
--- a/
fs/jfs/ioctl.c
+++ b/
fs/jfs/ioctl.c
@@
-79,6
+79,9
@@
int jfs_ioctl(struct inode * inode, struct file * filp, unsigned int cmd,
if (!S_ISDIR(inode->i_mode))
flags &= ~JFS_DIRSYNC_FL;
+ /* Is it quota file? Do not allow user to mess with it */
+ if (IS_NOQUOTA(inode))
+ return -EPERM;
jfs_get_inode_flags(jfs_inode);
oldflags = jfs_inode->mode2;