filter_qualify: export trace_set set

Prepare for seccomp-assisted syscall filtering, using trace_set
to initialize seccomp BPF.

* filter_qualify.c (trace_set): Remove static qualifier.
* number_set.h (trace_set): New declaration.
This commit is contained in:
Chen Jingpiao 2018-05-03 20:59:20 +08:00
parent 150655ca3e
commit c72ea097a9
2 changed files with 2 additions and 1 deletions

View File

@ -36,11 +36,11 @@
struct number_set *read_set;
struct number_set *write_set;
struct number_set *signal_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. */

View File

@ -62,5 +62,6 @@ free_number_set_array(struct number_set *, unsigned int nmemb);
extern struct number_set *read_set;
extern struct number_set *write_set;
extern struct number_set *signal_set;
extern struct number_set *trace_set;
#endif /* !STRACE_NUMBER_SET_H */