Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ SOURCES_ALL = \

EXTRA_DIST = \
arch-syscall-validate arch-syscall-check \
arch-gperf-generate syscalls.csv syscalls.perf.template
arch-gperf-generate syscalls.csv syscalls.perf.template \
libseccomp.map

TESTS = arch-syscall-check

Expand All @@ -65,6 +66,7 @@ libseccomp_la_CFLAGS = ${AM_CFLAGS} ${CODE_COVERAGE_CFLAGS} ${CFLAGS} \
-fPIC -DPIC -fvisibility=hidden
libseccomp_la_LDFLAGS = ${AM_LDFLAGS} ${CODE_COVERAGE_LDFLAGS} ${LDFLAGS} \
-version-number ${VERSION_MAJOR}:${VERSION_MINOR}:${VERSION_MICRO}
libseccomp_la_LDFLAGS += -Wl,--version-script=$(srcdir)/libseccomp.map

EXTRA_DIST += syscalls.perf.c syscalls.perf
CLEANFILES = syscalls.perf.c syscalls.perf
Expand Down
43 changes: 43 additions & 0 deletions src/libseccomp.map
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
/* Avoid modifying a symbol set after it has been released
When adding features in a new release, add a new set
Removing features is a breaking change */
LIBSECCOMP_1.0 {
global:
seccomp_api_get;
seccomp_api_set;
seccomp_arch_add;
seccomp_arch_exist;
seccomp_arch_native;
seccomp_arch_remove;
seccomp_arch_resolve_name;
seccomp_attr_get;
seccomp_attr_set;
seccomp_export_bpf;
seccomp_export_bpf_mem;
seccomp_export_pfc;
seccomp_init;
seccomp_load;
seccomp_merge;
seccomp_notify_alloc;
seccomp_notify_fd;
seccomp_notify_free;
seccomp_notify_id_valid;
seccomp_notify_receive;
seccomp_notify_respond;
seccomp_precompute;
seccomp_release;
seccomp_reset;
seccomp_rule_add;
seccomp_rule_add_array;
seccomp_rule_add_exact;
seccomp_rule_add_exact_array;
seccomp_syscall_priority;
seccomp_syscall_resolve_name;
seccomp_syscall_resolve_name_arch;
seccomp_syscall_resolve_name_rewrite;
seccomp_syscall_resolve_num_arch;
seccomp_transaction_commit;
seccomp_transaction_reject;
seccomp_transaction_start;
seccomp_version;
};