It turns out that it is fairly common for people to use SCMP_SYS() as
a constant/initializer so the change to have it point at a function
breaks a few things.

Signed-off-by: Paul Moore <[email protected]>
---
 include/seccomp.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/seccomp.h b/include/seccomp.h
index 806ce38..8a70a72 100644
--- a/include/seccomp.h
+++ b/include/seccomp.h
@@ -103,7 +103,7 @@ struct scmp_arg_cmp {
  * Convert a syscall name into the associated syscall number
  * @param x the syscall name
  */
-#define SCMP_SYS(x)            (seccomp_syscall_resolve_name(#x))
+#define SCMP_SYS(x)            (__NR_##x)
 
 /**
  * Specify an argument comparison struct for use in declaring rules


------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
_______________________________________________
libseccomp-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libseccomp-discuss

Reply via email to