]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
attach: s/lxc_attach_drop_privs/drop_capabilities/g
authorChristian Brauner <christian.brauner@ubuntu.com>
Thu, 28 Jan 2021 18:13:32 +0000 (19:13 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Thu, 28 Jan 2021 18:18:34 +0000 (19:18 +0100)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/attach.c

index 65007b73a875bebf8f2b9333a67b6f309c90d18b..41af5685054e05cf1f988e50dfc9e89f8e0ebc66 100644 (file)
@@ -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;