search for: cap_name

Displaying 3 results from an estimated 3 matches for "cap_name".

Did you mean: map_name
2011 Aug 03
1
[PATCH v2] kinit: Add drop_capabilities support.
...s/prctl.h> +#include <sys/utsname.h> +#include <errno.h> +#include <stdio.h> +#include <stdlib.h> +#include <string.h> +#include <unistd.h> + +#include "kinit.h" + +#define ARRAY_SIZE(x) (sizeof(x) / sizeof(x[0])) + +#define MAKE_CAP(cap) [cap] = { .cap_name = #cap } + +struct capability { + const char *cap_name; +} capabilities[] = { + MAKE_CAP(CAP_CHOWN), + MAKE_CAP(CAP_DAC_OVERRIDE), + MAKE_CAP(CAP_DAC_READ_SEARCH), + MAKE_CAP(CAP_FOWNER), + MAKE_CAP(CAP_FSETID), + MAKE_CAP(CAP_KILL), + MAKE_CAP(CAP_SETGID), + MAKE_CAP(CAP_SETUID), + MAKE_CAP(CAP_SE...
2011 Jul 19
4
[PATCH v1 0/2] Support dropping of capabilities from early userspace.
This patchset applies to klibc mainline. As is it will probably collide with Maximilian's recent patch to rename run-init to switch_root posted last week. To boot an untrusted environment with certain capabilities locked out, we'd like to be able to drop the capabilities up front from early userspace, before we actually transition onto the root volume. This patchset implements this by
2010 Jul 14
1
Problems with Dovecot + imaptest
...error before "unsigned" client-state.h:103: warning: parameter has incomplete type In file included from checkpoint.c:9: client.h:27: error: `NULL' undeclared here (not in a function) client.h:27: error: initializer element is not constant client.h:27: error: (near initialization for `cap_names[4].name') client.h:27: error: initializer element is not constant client.h:27: error: (near initialization for `cap_names[4]') client.h:42: error: syntax error before "size_t" client.h:42: warning: no semicolon at end of struct or union client.h:54: error: syntax error before &qu...