selinuxfs snprintf() misuses
authorAl Viro <viro@zeniv.linux.org.uk>
Mon, 2 Apr 2012 23:40:47 +0000 (19:40 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 30 May 2012 03:28:33 +0000 (23:28 -0400)
commitcc1dad7183e4cb7f5d313b6942f2059fc0eabab6
tree372614e5c981ff868682af2babdd8d0fec356952
parentc862868bb455694704c255481369c40d7185eb25
selinuxfs snprintf() misuses

a) %d does _not_ produce a page worth of output
b) snprintf() doesn't return negatives - it used to in old glibc, but
that's the kernel...

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
security/selinux/selinuxfs.c