OpenVZ Forum


Home » General » Support » "vzctl stop" is taking too much time when called from a setuid binary
"vzctl stop" is taking too much time when called from a setuid binary [message #3352] Tue, 23 May 2006 22:09 Go to previous message
scythe is currently offline  scythe
Messages: 22
Registered: December 2005
Location: Hungary
Junior Member
Hi!

I wrote a simple setuid binary to be able to call "vzctl stop" as a non-root user.
After compiling the binary and making it setuid it takes about 5 minutes for it to run the simple command "vzctl stop VSID". It completes successfully, but only after this delay.
Running the same command from a root shell or with sudo takes less then 10 seconds.

I attached the source of the small program.
If you run it as root it completes at normal time.
If you run it as an other user it takes a few minutes
(at least on my system, which got only 3 vps-es).

Any ideas what may cause this wait?
  • Attachment: vzstop.tgz
    (Size: 0.52KB, Downloaded 283 times)
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Cpanel Requeriements!!!!
Next Topic: Few questions, please help
Goto Forum:
  


Current Time: Thu Aug 08 19:34:25 GMT 2024

Total time taken to generate the page: 0.02686 seconds