use QUOTACTL (merged from 0.23.94)
authorEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Thu, 30 Oct 2003 17:35:07 +0000 (17:35 +0000)
committerEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Thu, 30 Oct 2003 17:35:07 +0000 (17:35 +0000)
git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@344 94cd875c-1c1d-0410-91d2-eb244daf1a30

util-vserver/src/reducecap.c

index 14b3177..265e6de 100644 (file)
 #include "vserver.h"
 #include "linuxcaps.h"
 
+#ifndef CAP_QUOTACTL
+#  define CAP_QUOTACTL         VC_CAP_QUOTACTL
+#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 *);
 
@@ -94,7 +98,8 @@ int main (int argc, char *argv[])
                |(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];
@@ -158,6 +163,7 @@ int main (int argc, char *argv[])
                                {"--SYS_RESOURCE",CAP_SYS_RESOURCE},
                                {"--SYS_TIME",  CAP_SYS_TIME},
                                {"--MKNOD",             CAP_MKNOD},
+                               {"--QUOTACTL",          CAP_QUOTACTL},
                                {NULL,0}
                        };
                        int j;