#include "linuxcaps.h"
#include "vserver.h"
+#ifndef CAP_QUOTACTL
+# define CAP_QUOTACTL 29
+#endif
+
static void usage()
{
fprintf (stderr,"chcontext version %s\n",VERSION);
|(1<<CAP_SYS_NICE)
|(1<<CAP_SYS_RESOURCE)
|(1<<CAP_SYS_TIME)
- |(1<<CAP_MKNOD);
+ |(1<<CAP_MKNOD)
+ |(1<<CAP_QUOTACTL);
const char *hostname=NULL, *domainname=NULL;
for (i=1; i<argc; i++){
{"CAP_SYS_RESOURCE",CAP_SYS_RESOURCE},
{"CAP_SYS_TIME", CAP_SYS_TIME},
{"CAP_MKNOD", CAP_MKNOD},
+ {"CAP_QUOTACTL", CAP_QUOTACTL},
{NULL,0}
};
int j;
#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;