diff options
author | Andrew Perepechko <andrew.perepechko@sun.com> | 2008-04-28 02:14:31 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-28 08:58:32 -0700 |
commit | 338bf9afda91ec005a1e9a0de4af0271cc167d56 (patch) | |
tree | e60edf0441efbe8215cdeb08bf05c1b6afff58a1 /include/linux/quota.h | |
parent | 3b0cb4caefeca6fe6b05c6c5a76e9c633b44c58f (diff) | |
download | kernel-crypto-338bf9afda91ec005a1e9a0de4af0271cc167d56.tar.gz kernel-crypto-338bf9afda91ec005a1e9a0de4af0271cc167d56.tar.xz kernel-crypto-338bf9afda91ec005a1e9a0de4af0271cc167d56.zip |
quota: do not allow setting of quota limits to too high values
We should check whether quota limits set via Q_SETQUOTA are not exceeding
limits which quota format is able to handle.
Signed-off-by: Andrew Perepechko <andrew.perepechko@sun.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/quota.h')
-rw-r--r-- | include/linux/quota.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/quota.h b/include/linux/quota.h index eb560d031ac..326cb80e386 100644 --- a/include/linux/quota.h +++ b/include/linux/quota.h @@ -206,6 +206,8 @@ struct mem_dqinfo { unsigned long dqi_flags; unsigned int dqi_bgrace; unsigned int dqi_igrace; + qsize_t dqi_maxblimit; + qsize_t dqi_maxilimit; union { struct v1_mem_dqinfo v1_i; struct v2_mem_dqinfo v2_i; |