selinuxfs: switch to memdup_user_nul()
authorAl Viro <viro@zeniv.linux.org.uk>
Thu, 24 Dec 2015 05:08:06 +0000 (00:08 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 4 Jan 2016 15:27:39 +0000 (10:27 -0500)
commit8365a71946bb1075f5e0e6357fe0f0b92404d966
tree028855ad2ce851dea90f1d9a58137f0a00db2929
parent16e5c1fc36040e592128a164499bc25eb138a80f
selinuxfs: switch to memdup_user_nul()

Nothing in there gives a damn about the buffer alignment - it
just parses its contents.  So the use of get_zeroed_page()
doesn't buy us anything - might as well had been kmalloc(),
which makes that code equivalent to open-coded memdup_user_nul()

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