Lines Matching refs:capabilities
751 * capabilities while doing so. */
753 if (context->capabilities || context->capability_ambient_set != 0) {
755 /* First step: If we need to keep capabilities but
766 /* Second step: set the capabilities. This will reduce
767 * the capabilities to the minimum we need. */
769 if (context->capabilities) {
776 d = cap_dup(context->capabilities);
793 /* At this point we should have all necessary capabilities but
1896 if (context->capabilities) {
1898 /* The capabilities in ambient set need to be also in the inherited
1900 * set inherited capabilities to the capability set in the context.
1901 * This is needed because if capabilities are set (using "Capabilities="
1904 r = capability_update_inherited_set(context->capabilities, context->capability_ambient_set);
1920 /* Fix the ambient capabilities after user change. */
1927 /* If we were asked to change user and ambient capabilities
1948 if (context->capabilities)
1949 if (cap_set_proc(context->capabilities) < 0) {
2196 if (c->capabilities) {
2197 cap_free(c->capabilities);
2198 c->capabilities = NULL;
2562 if (c->capabilities) {
2565 t = cap_to_text(c->capabilities, NULL);