summaryrefslogtreecommitdiffstats
path: root/security/smack/Makefile
diff options
context:
space:
mode:
authorAhmed S. Darwish <darwish.07@gmail.com>2008-03-13 12:32:34 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2008-03-13 13:11:43 -0700
commitb500ce8d24d1f14426643da5f6fada28c1f60533 (patch)
tree17b6084b29434a968f787e238548a843126e2ec3 /security/smack/Makefile
parent93d74463d018ddf05c169ad399e62e90e0f82fc0 (diff)
downloadop-kernel-dev-b500ce8d24d1f14426643da5f6fada28c1f60533.zip
op-kernel-dev-b500ce8d24d1f14426643da5f6fada28c1f60533.tar.gz
smackfs: do not trust `count' in inodes write()s
Smackfs write() implementation does not put a higher bound on the number of bytes to copy from user-space. This may lead to a DOS attack if a malicious `count' field is given. Assure that given `count' is exactly the length needed for a /smack/load rule. In case of /smack/cipso where the length is relative, assure that `count' does not exceed the size needed for a buffer representing maximum possible number of CIPSO 2.2 categories. Signed-off-by: Ahmed S. Darwish <darwish.07@gmail.com> Acked-by: Casey Schaufler <casey@schaufler-ca.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'security/smack/Makefile')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud