// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+#include "compat.h"
+
#include <stdio.h>
#include <errno.h>
#include <unistd.h>
#include "linuxcaps.h"
#include "vserver.h"
+#ifndef CAP_QUOTACTL
+# define CAP_QUOTACTL 29
+#endif
+
extern int capget (struct __user_cap_header_struct *, struct __user_cap_data_struct *);
extern int capset (struct __user_cap_header_struct *, struct __user_cap_data_struct *);
"CAP_SYS_TTY_CONFIG",
"CAP_MKNOD",
"CAP_LEASE",
- "CAP_OPENDEV",
+ "CAP_QUOTACTL",
NULL
};
int i;
|(1<<CAP_SYS_NICE)
|(1<<CAP_SYS_RESOURCE)
|(1<<CAP_SYS_TIME)
- |(1<<CAP_MKNOD);
+ |(1<<CAP_MKNOD)
+ |(1<<CAP_QUOTACTL);
int i;
for (i=1; i<argc; i++){
const char *arg = argv[i];
{"--SYS_RESOURCE",CAP_SYS_RESOURCE},
{"--SYS_TIME", CAP_SYS_TIME},
{"--MKNOD", CAP_MKNOD},
+ {"--QUOTACTL", CAP_QUOTACTL},
{NULL,0}
};
int j;
if (show){
reducecap_print (&user);
}
- if (call_new_s_context(0,NULL,remove,flags)==-1){
+ if (vc_new_s_context(-2,remove,flags)==-1){
perror ("new_s_context -2");
}else{
fprintf (stderr,"Executing\n");