]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit06e0816e3e33f35839c2a5027ebb4be39c06ce33
tree028855ad2ce851dea90f1d9a58137f0a00db2929
parentcb0a711a04d3e9e16f87bc49f2f87abc08aabfd1
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