• Jan Kara's avatar
    quota: Verify flags passed to Q_SETINFO · ca6cb091
    Jan Kara authored
    Currently flags passed via Q_SETINFO were just stored. This makes it
    hard to add new flags since in theory userspace could be just setting /
    clearing random flags. Since currently there is only one userspace
    settable flag and that is somewhat obscure flags only for ancient v1
    quota format, I'm reasonably sure noone operates these flags and
    hopefully we are fine just adding the check that passed flags are sane.
    If we indeed find some userspace program that gets broken by the strict
    check, we can always remove it again.
    Signed-off-by: default avatarJan Kara <jack@suse.cz>
    ca6cb091
dquot.c 73.6 KB