Skip to content

Commit

Permalink
seccomp: use lxc_log_get_fd()
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
  • Loading branch information
Christian Brauner committed Feb 8, 2021
1 parent 7491f5a commit cc486b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lxc/seccomp.c
Expand Up @@ -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) {
Expand Down

0 comments on commit cc486b1

Please sign in to comment.