char* kwlist[] = {
"command",
"environ",
- "enable_network",
"interactive",
"logging_callback",
"nice",
PyObject* command = NULL;
PyObject* environ = NULL;
- int enable_network = 0;
int interactive = 0;
PyObject* logging_callback = NULL;
int nice = 0;
int return_output = 0;
- if (!PyArg_ParseTupleAndKeywords(args, kwds, "O|OppOip", kwlist, &command, &environ,
- &enable_network, &interactive, &logging_callback, &nice, &return_output))
+ if (!PyArg_ParseTupleAndKeywords(args, kwds, "O|OpOip", kwlist, &command, &environ,
+ &interactive, &logging_callback, &nice, &return_output))
return NULL;
// Check if command is a list
argv[i] = PyUnicode_AsUTF8(item);
}
-#if 0
- // Enable network?
- if (enable_network)
- flags |= PAKFIRE_JAIL_ENABLE_NETWORK;
-#endif
-
// Interactive?
if (interactive)
flags |= PAKFIRE_JAIL_INTERACTIVE;