Skip to contentSkip to conversation

require root?

autotest Gerd Hoffmann 2 participants 2 messages Aug 5, 2009 KVM

lore
Share & tools
lore
#0 lore raw

Hi,

What is the point in requiring running as root? It seems to work just fine as user too after adapting a few permissions (/dev/kvm, /var/log/messages). Except the hugepages test because it wants mount hugetlbfs itself, which could easily be fixed too I think.

I've also noticed it complains it can't symlink a init script:

11:26:46 ERROR| ln: creating symbolic link `/etc/init.d/autotest': Permission denied 11:26:46 WARNI| Linking init scripts failed

Which it shouldn't try in the first place IMO.

cheers,
Gerd

#1 lore raw

I used to run the KVM test as a user all the time until I started working with TAP networking. TAP requires running qemu as root, unless you create the TAP devices manually and set proper permissions for them.

Quoted 23 lines · ----- "Gerd Hoffmann

Hi,

What is the point in requiring running as root? It seems to work just

fine as user too after adapting a few permissions (/dev/kvm, /var/log/messages). Except the hugepages test because it wants mount

hugetlbfs itself, which could easily be fixed too I think.

I've also noticed it complains it can't symlink a init script:

11:26:46 ERROR| ln: creating symbolic link `/etc/init.d/autotest':
Permission denied
11:26:46 WARNI| Linking init scripts failed

Which it shouldn't try in the first place IMO.

cheers,
Gerd
--
To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html