[lxc-devel] [lxc/lxc] a342b1: commands: fix check for seccomp notify support

Christian Brauner noreply at github.com
Fri Jan 22 16:56:09 UTC 2021


  Branch: refs/heads/master
  Home:   https://github.com/lxc/lxc
  Commit: a342b11fedb3010630de4909ca707ebdc0862060
      https://github.com/lxc/lxc/commit/a342b11fedb3010630de4909ca707ebdc0862060
  Author: Eneas U de Queiroz <cotequeiroz at gmail.com>
  Date:   2021-01-16 (Sat, 16 Jan 2021)

  Changed paths:
    M src/lxc/commands.c

  Log Message:
  -----------
  commands: fix check for seccomp notify support

Use HAVE_SECCOMP_NOTIFY instead of HAVE_DECL_SECCOMP_NOTIFY_FD.
Currently the latter will be true if the declaration is found by
configure, even if 'configure --disable-seccomp' is used.

HAVE_SECCOMP_NOTIFY is defined in lxcseccomp.h if both HAVE_SECCOMP and
HAVE_DECL_SECCOMP_NOTIFY_FD are true, which is the correct behavior.

Signed-off-by: Eneas U de Queiroz <cotequeiroz at gmail.com>


  Commit: 67cd8bde2d46983df8fa9f647e9fc0b96370ec29
      https://github.com/lxc/lxc/commit/67cd8bde2d46983df8fa9f647e9fc0b96370ec29
  Author: Eneas U de Queiroz <cotequeiroz at gmail.com>
  Date:   2021-01-16 (Sat, 16 Jan 2021)

  Changed paths:
    M configure.ac

  Log Message:
  -----------
  configure: skip libseccomp tests if it is disabled

Move the block checking for libseccomp api compatibility inside
AM_COND_IF([ENABLE_SECCOMP] ... ).

Signed-off-by: Eneas U de Queiroz <cotequeiroz at gmail.com>


  Commit: 2b6ad639eb94c724209603a39d0c14acaa6826e3
      https://github.com/lxc/lxc/commit/2b6ad639eb94c724209603a39d0c14acaa6826e3
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2021-01-22 (Fri, 22 Jan 2021)

  Changed paths:
    M configure.ac
    M src/lxc/commands.c

  Log Message:
  -----------
  Merge pull request #3623 from cotequeiroz/seccomp

Fix compilation without seccomp when libseccomp is installed


Compare: https://github.com/lxc/lxc/compare/be0fb2f759c1...2b6ad639eb94


More information about the lxc-devel mailing list