X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=fs%2Fjfs%2Fioctl.c;h=dfda12a073e1985fb28b798df2e9088a9a996be4;hb=c64768a7d671bcde80bca2aed93f9e07edc069c3;hp=3c8663bea98ca3bf373f3ea83260b33d67548f3a;hpb=dcb76f88683618ed6ef0df66643dba1285881ee5;p=~andy%2Flinux diff --git a/fs/jfs/ioctl.c b/fs/jfs/ioctl.c index 3c8663bea98..dfda12a073e 100644 --- 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;