From: Christian Brauner Date: Sat, 30 Jan 2021 10:09:45 +0000 (+0100) Subject: seccomp: use lxc_log_get_fd() X-Git-Tag: lxc-5.0.0~312^2~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0464dec30e3f5732ecd8035c4c0db2d2b9644187;p=thirdparty%2Flxc.git seccomp: use lxc_log_get_fd() Signed-off-by: Christian Brauner --- diff --git a/src/lxc/seccomp.c b/src/lxc/seccomp.c index ba6811d90..9ea0ba9ab 100644 --- a/src/lxc/seccomp.c +++ b/src/lxc/seccomp.c @@ -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) {