diff options
author | Paul Moore <pmoore@redhat.com> | 2013-01-25 14:00:24 -0500 |
---|---|---|
committer | Paul Moore <pmoore@redhat.com> | 2013-01-25 14:00:24 -0500 |
commit | 05807bd29232bb811f3d8cd6b73de1f2e3047457 (patch) | |
tree | c149cf83ca43b3ce86ac050846d15ca146fdbfa7 | |
parent | 92edc180e0405835ec319edf9212a0e44cd49479 (diff) | |
download | libseccomp-05807bd29232bb811f3d8cd6b73de1f2e3047457.tar.gz |
api: revert the change to the SCMP_SYS() macro
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 <pmoore@redhat.com>
-rw-r--r-- | include/seccomp.h | 2 |
1 files changed, 1 insertions, 1 deletions
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 |