lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <1483700160-18885-1-git-send-email-madalin.bucur@nxp.com>
Date:   Fri, 6 Jan 2017 12:56:00 +0200
From:   Madalin Bucur <madalin.bucur@....com>
To:     <linux-kernel@...r.kernel.org>
Subject: [PATCH] samples/seccomp: fix include of seccomp.h

Address compilation issues on arm64:

samples/seccomp/bpf-fancy.c:13:27: error: linux/seccomp.h: No such file or directory
samples/seccomp/bpf-fancy.c: In function 'main':
samples/seccomp/bpf-fancy.c:36: error: invalid use of undefined type 'struct seccomp_data'
samples/seccomp/bpf-fancy.c:37: error: 'SECCOMP_RET_ALLOW' undeclared (first use in this function)

Signed-off-by: Madalin Bucur <madalin.bucur@....com>
---
 samples/seccomp/bpf-fancy.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/samples/seccomp/bpf-fancy.c b/samples/seccomp/bpf-fancy.c
index e8b24f4..05306a1 100644
--- a/samples/seccomp/bpf-fancy.c
+++ b/samples/seccomp/bpf-fancy.c
@@ -10,7 +10,7 @@
  */
 
 #include <linux/filter.h>
-#include <linux/seccomp.h>
+#include <linux/uapi/seccomp.h>
 #include <linux/unistd.h>
 #include <stdio.h>
 #include <string.h>
-- 
2.1.0

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ