Browse Source

filter_qualify: export trace_set set

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.
Chen Jingpiao 1 year ago
parent
commit
1e2137be95
2 changed files with 2 additions and 1 deletions
  1. 1
    1
      filter_qualify.c
  2. 1
    0
      number_set.h

+ 1
- 1
filter_qualify.c View File

@@ -18,11 +18,11 @@ struct number_set *read_set;
18 18
 struct number_set *write_set;
19 19
 struct number_set *signal_set;
20 20
 struct number_set *status_set;
21
+struct number_set *trace_set;
21 22
 
22 23
 static struct number_set *abbrev_set;
23 24
 static struct number_set *inject_set;
24 25
 static struct number_set *raw_set;
25
-static struct number_set *trace_set;
26 26
 static struct number_set *verbose_set;
27 27
 
28 28
 /* Only syscall numbers are personality-specific so far.  */

+ 1
- 0
number_set.h View File

@@ -56,5 +56,6 @@ extern struct number_set *read_set;
56 56
 extern struct number_set *write_set;
57 57
 extern struct number_set *signal_set;
58 58
 extern struct number_set *status_set;
59
+extern struct number_set *trace_set;
59 60
 
60 61
 #endif /* !STRACE_NUMBER_SET_H */

Loading…
Cancel
Save