From: Christian Brauner Date: Thu, 28 Jan 2021 18:13:32 +0000 (+0100) Subject: attach: s/lxc_attach_drop_privs/drop_capabilities/g X-Git-Tag: lxc-5.0.0~313^2~23 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=677e1d27690bc76baba43c01e4878567c8762ad0;p=thirdparty%2Flxc.git attach: s/lxc_attach_drop_privs/drop_capabilities/g Signed-off-by: Christian Brauner --- diff --git a/src/lxc/attach.c b/src/lxc/attach.c index 65007b73a..41af56850 100644 --- a/src/lxc/attach.c +++ b/src/lxc/attach.c @@ -302,7 +302,7 @@ int lxc_attach_remount_sys_proc(void) return 0; } -static int lxc_attach_drop_privs(struct attach_context *ctx) +static int drop_capabilities(struct attach_context *ctx) { int last_cap; @@ -760,7 +760,7 @@ __noreturn static void do_attach(struct attach_clone_payload *payload) #endif if (options->attach_flags & LXC_ATTACH_DROP_CAPABILITIES) { - ret = lxc_attach_drop_privs(ctx); + ret = drop_capabilities(ctx); if (ret < 0) goto on_error;