From: Enrico Scholz Date: Fri, 15 Jul 2005 16:27:37 +0000 (+0000) Subject: removed VC_CAP_QUOTACTL X-Git-Tag: version_0_30_210~133 X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d1f9ed7fbf98eaa682684eb842102a8471c45967;p=util-vserver.git removed VC_CAP_QUOTACTL added VC_CAP_AUDIT* git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2148 94cd875c-1c1d-0410-91d2-eb244daf1a30 --- diff --git a/util-vserver/lib/bcaps-v13.c b/util-vserver/lib/bcaps-v13.c index 6a0a6db..6f9f491 100644 --- a/util-vserver/lib/bcaps-v13.c +++ b/util-vserver/lib/bcaps-v13.c @@ -29,11 +29,15 @@ #include #include -#ifndef CAP_QUOTACTL -# define CAP_QUOTACTL VC_CAP_QUOTACTL +#define DECL(VAL) { #VAL, sizeof(#VAL)-1, 1 << (CAP_ ## VAL) } + +#ifndef CAP_AUDIT_WRITE +# define CAP_AUDIT_WRITE 29 #endif -#define DECL(VAL) { #VAL, sizeof(#VAL)-1, 1 << (CAP_ ## VAL) } +#ifndef CAP_AUDIT_CONTROL +# define CAP_AUDIT_CONTROL 30 +#endif static struct Mapping_uint64 const VALUES[] = { DECL(CHOWN), @@ -65,7 +69,8 @@ static struct Mapping_uint64 const VALUES[] = { DECL(SYS_TTY_CONFIG), DECL(MKNOD), DECL(LEASE), - DECL(QUOTACTL), + DECL(AUDIT_WRITE), + DECL(AUDIT_CONTROL), }; inline static char const *