summaryrefslogtreecommitdiff
path: root/crypto/akcipher.c
diff options
context:
space:
mode:
authorSean Christopherson <sean.j.christopherson@intel.com>2019-02-15 12:48:39 -0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-04-03 06:24:19 +0200
commitc217b3ce14434cf7b71d889d28e8741471063e68 (patch)
tree5291bea10bb585c106e2e522eb25666618d4b847 /crypto/akcipher.c
parent6e9a71475e5e2048434bf7e05959e21833db52c1 (diff)
downloadlinux-rt-c217b3ce14434cf7b71d889d28e8741471063e68.tar.gz
KVM: Reject device ioctls from processes other than the VM's creator
commit ddba91801aeb5c160b660caed1800eb3aef403f8 upstream. KVM's API requires thats ioctls must be issued from the same process that created the VM. In other words, userspace can play games with a VM's file descriptors, e.g. fork(), SCM_RIGHTS, etc..., but only the creator can do anything useful. Explicitly reject device ioctls that are issued by a process other than the VM's creator, and update KVM's API documentation to extend its requirements to device ioctls. Fixes: 852b6d57dc7f ("kvm: add device control API") Cc: <stable@vger.kernel.org> Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'crypto/akcipher.c')
0 files changed, 0 insertions, 0 deletions