diff options
| author | Siba Prasad <sibap@codeaurora.org> | 2017-09-13 20:43:57 +0530 |
|---|---|---|
| committer | Siba Prasad <sibap@codeaurora.org> | 2017-10-13 11:33:27 +0530 |
| commit | bc520b9e3e005be1c5925e058f571a76658bbcd8 (patch) | |
| tree | 4e9ab368a139e80337f596ed08a0ed0564851ee3 /security/selinux/hooks.c | |
| parent | 14f6bfeeebb97c02cbf0c43818f7998e3bdb3cae (diff) | |
mmc: core: Prevent accessing user space buffer directly
In mmc_wr_pack_stats_read(), userspace buffer is directly accessed
which is violating PAN (Privilege Access Never).
So to prevent this, data which needs to be copied to user buffer is
gathered into a local buffer and at the end, this local buffer
contents are copied back to buffer supplied from user space using
copy_to_user().
Change-Id: Id772613fe54c47d64906c18d3d0249eee2f6ac26
Signed-off-by: Siba Prasad <sibap@codeaurora.org>
Diffstat (limited to 'security/selinux/hooks.c')
0 files changed, 0 insertions, 0 deletions
