Debian Codegraph @

sysdeps/unix/sysv/linux/aarch64/tst-gcs-audit-enforced.c

raw symbols SCIP
1 /* Checks if the audit module without GCS marking is not loaded when GCS is
2 enforced. */
3
4 #define AUDIT_MOD "tst-gcs-audit1.so"
5
6 /* The audit moduled should not load, the function returns the expected
7 value. */
8 #define HANDLE_RESTART TEST_COMPARE (fun (), 0)
9
10 #define GCS_MODE "1"
11
12 #define ALLOW_OUTPUT sc_allow_stdout | sc_allow_stderr
13
14 #define CHECK_STDOUT \
15 TEST_COMPARE_STRING (result.out.buffer, \
16 "GCS enabled\n");
17
18 #define CHECK_STDERR \
19 TEST_COMPARE_STRING (result.err.buffer, \
20 "ERROR: ld.so: object '" AUDIT_MOD "' " \
21 "cannot be loaded as audit interface: " \
22 "not GCS compatible; ignored.\n")
23
24 #include "tst-gcs-audit-skeleton.c"