-/* Version 3 of vsh. Basically a wrapper around 'lxcsu -n -m <slicename>' - Sapan */
+/* Version 3 of vsh. Basically a wrapper around 'lxcsu-internal -n -m <slicename>' - Sapan */
#include <unistd.h>
#include <pwd.h>
#define PATH_MAX 4096
#endif
-#define LXCSU_PATH "/usr/sbin/lxcsu"
+#define LXCSU_PATH "/usr/sbin/lxcsu-internal"
char* get_current_username (unsigned int uid)
{
return argv2;
}
-#define NUM_LXCSU_EXEC_ARGS 1
+#define NUM_LXCSU_EXEC_ARGS 2
int main(int argc, char **argv, char **envp)
{
snprintf(slice_id_str, 255, "%u", slice_xid);
argv2[0] = strdup(LXCSU_PATH);
argv2[1] = strdup(slice_name);
+ argv2[2] = strdup("--");
if (setuid(geteuid())) goto out_exception;