]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
seccomp: use lxc_log_get_fd()
authorChristian Brauner <christian.brauner@ubuntu.com>
Sat, 30 Jan 2021 10:09:45 +0000 (11:09 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Sat, 30 Jan 2021 11:02:09 +0000 (12:02 +0100)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/seccomp.c

index ba6811d9032bdfb98fa0493043e1c42931ac660d..9ea0ba9abb795618a5b0ea0a8707b42a82d61f26 100644 (file)
@@ -1262,7 +1262,7 @@ int lxc_seccomp_load(struct lxc_conf *conf)
 #if HAVE_SCMP_FILTER_CTX
        if ((lxc_log_get_level() <= LXC_LOG_LEVEL_TRACE ||
             conf->loglevel <= LXC_LOG_LEVEL_TRACE) &&
-           lxc_log_fd >= 0) {
+            lxc_log_get_fd() >= 0) {
                ret = seccomp_export_pfc(conf->seccomp.seccomp_ctx, lxc_log_fd);
                /* Just give an warning when export error */
                if (ret < 0) {