[PATCH RFC 1/4] filter_qualify: export trace_set set

Paul Chaignon paul.chaignon at gmail.com
Sat Jul 13 10:23:30 UTC 2019


From: Chen Jingpiao <chenjingpiao at gmail.com>

In preparation for seccomp-assisted syscall filtering, export trace_set
set, which will be used to derive the BPF program.

* filter_qualify.c (trace_set): Remove static qualifier.
* number_set.h (trace_set): New declaration.
---
 filter_qualify.c | 2 +-
 number_set.h     | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/filter_qualify.c b/filter_qualify.c
index 9e240c09..52652e61 100644
--- a/filter_qualify.c
+++ b/filter_qualify.c
@@ -18,11 +18,11 @@ struct number_set *read_set;
 struct number_set *write_set;
 struct number_set *signal_set;
 struct number_set *status_set;
+struct number_set *trace_set;
 
 static struct number_set *abbrev_set;
 static struct number_set *inject_set;
 static struct number_set *raw_set;
-static struct number_set *trace_set;
 static struct number_set *verbose_set;
 
 /* Only syscall numbers are personality-specific so far.  */
diff --git a/number_set.h b/number_set.h
index 78175428..4011f50e 100644
--- a/number_set.h
+++ b/number_set.h
@@ -56,5 +56,6 @@ extern struct number_set *read_set;
 extern struct number_set *write_set;
 extern struct number_set *signal_set;
 extern struct number_set *status_set;
+extern struct number_set *trace_set;
 
 #endif /* !STRACE_NUMBER_SET_H */
-- 
2.17.1



More information about the Strace-devel mailing list