unikraft / run-app-elfloader

Run Unikraft ELF Loader app on Linux executables
13 stars 11 forks source link

Only run qemu-system-x86_64 as root when necessary #8

Closed ThijsRay closed 1 year ago

ThijsRay commented 1 year ago

It is not always necessary to run qemu as the root user. If the user is added to the kvm group, then it generally has access to /dev/kvm/ already. In case the user doesn't have access to /dev/kvm, then qemu is run as sudo with the -runas flag, which drops root privileges before guest execution is started.

razvand commented 1 year ago

Hackathon points: 60 (three contributions - update script to /bin/sh, the use of print_available_apps() function, and the update to the use of KVM.