does little more than mapping command line option to the system call
arguments.
*/
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+#include "compat.h"
+
#include <stdio.h>
#include <unistd.h>
#include <string.h>
if (disconnect == 0 || fork()==0){
int newctx;
if (nbctx == 0) ctxs[nbctx++] = -1;
- newctx = call_new_s_context(nbctx,ctxs,0,flags);
+ newctx = vc_new_s_context(ctxs[0],0,flags);
if (newctx != -1){
if (hostname != NULL){
if (sethostname (hostname,strlen(hostname))==-1){
}
}
remove_cap &= (~add_cap);
- if (remove_cap != 0) call_new_s_context (0,NULL,remove_cap,0);
+ if (remove_cap != 0) vc_new_s_context (-2,remove_cap,0);
if (!silent){
printf ("New security context is %d\n"
,ctxs[0] == -1 ? newctx : ctxs[0]);