Merge pull request #3943 from brauner/2021-08-19.fixes

seccomp: fix complication when !HAVE_DECL_SECCOMP_NOTIFY_FD
This commit is contained in:
Stéphane Graber 2021-08-19 15:18:07 -04:00 committed by GitHub
commit f1b5286c65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1360,6 +1360,7 @@ static void seccomp_notify_default_answer(int fd, struct seccomp_notif *req,
int seccomp_notify_cleanup_handler(int fd, void *data)
{
#if HAVE_DECL_SECCOMP_NOTIFY_FD
struct lxc_handler *hdlr = data;
struct lxc_conf *conf = hdlr->conf;
@ -1372,6 +1373,7 @@ int seccomp_notify_cleanup_handler(int fd, void *data)
* seccomp notify handler through the command socket (e.g. for attach)
* and so we won't touch the container's config.
*/
#endif
return 0;
}