X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=fs%2Fext3%2Fioctl.c;h=023a070f55f18fac29cfddafa08557085ad6b2fa;hb=ed5d2cac114202fe2978a9cbcab8f5032796d538;hp=4a2a02c95bf94b98fc4534d870f3546a45442c8e;hpb=b8c638acacfe32c0bde361916467af00691f1965;p=powerpc.git diff --git a/fs/ext3/ioctl.c b/fs/ext3/ioctl.c index 4a2a02c95b..023a070f55 100644 --- a/fs/ext3/ioctl.c +++ b/fs/ext3/ioctl.c @@ -51,6 +51,11 @@ int ext3_ioctl (struct inode * inode, struct file * filp, unsigned int cmd, flags &= ~EXT3_DIRSYNC_FL; mutex_lock(&inode->i_mutex); + /* Is it quota file? Do not allow user to mess with it */ + if (IS_NOQUOTA(inode)) { + mutex_unlock(&inode->i_mutex); + return -EPERM; + } oldflags = ei->i_flags; /* The JOURNAL_DATA flag is modifiable only by root */