Re: Pass environment variable via execve [message #15998 is a reply to message #15964] |
Fri, 17 August 2007 22:50 |
AngerMCS
Messages: 2 Registered: August 2007
|
Junior Member |
|
|
unfortunately that would require me to modify every single process that we spawn...
Anyone else have any ideas?
Edit: I tried recreating vzctl calls so that I could just use execve as though I were in the vps but that also failed.
syscall(511, 101);
env_create.veid=101;
env_create.flags=VE_ENTER;
fd=open("/dev/vzctl", O_RDWR);
ioctl(fd, VZCTL_ENV_CREATE, &env_create);
close(fd);
The box ended up hardlocking...
[Updated on: Fri, 17 August 2007 23:06] Report message to a moderator
|
|
|