__test_metadata
static int call_clone3_set_tid(struct __test_metadata *_metadata,
static int test_clone3_set_tid(struct __test_metadata *_metadata,
struct __test_metadata *const _metadata,
struct __test_metadata;
struct __test_metadata *_metadata,
static void att_inval_addr_test(__u64 *addr, struct __test_metadata *_metadata,
static void fill_exec_fd(struct __test_metadata *_metadata, const int fd_out)
static void fill_exec_path(struct __test_metadata *_metadata,
static void test_exec_fd(struct __test_metadata *_metadata, const int fd,
static void test_exec_path(struct __test_metadata *_metadata,
static void drop_privileges(struct __test_metadata *const _metadata)
void setup_fifo(struct __test_metadata *_metadata,
void rm(struct __test_metadata *_metadata, const char *pathname,
void (*setup)(struct __test_metadata *_metadata,
void setup_link(struct __test_metadata *_metadata,
void setup_dir(struct __test_metadata *_metadata,
void setup_node(struct __test_metadata *_metadata,
static void change_userns(struct __test_metadata *_metadata, int syncfds[2])
static void change_idmaps(struct __test_metadata *_metadata, int syncfds[2], pid_t pid)
struct __test_metadata *_thread_metadata;
struct __test_metadata *_metadata = _thread_metadata;
static void change_mountns(struct __test_metadata *_metadata)
static int __do_binderfs_test(struct __test_metadata *_metadata)
static void write_file(struct __test_metadata *const _metadata,
static uint64_t expect_notify(struct __test_metadata *const _metadata,
static void expect_notify_n(struct __test_metadata *const _metadata,
static uint64_t expect_notify_mask(struct __test_metadata *const _metadata,
static void expect_notify_mask_n(struct __test_metadata *const _metadata,
static void verify_mount_ids(struct __test_metadata *const _metadata,
static void check_mounted(struct __test_metadata *const _metadata,
static void setup_mount_tree(struct __test_metadata *const _metadata,
static uint64_t expect_notify(struct __test_metadata *const _metadata,
static void expect_notify_n(struct __test_metadata *const _metadata,
static uint64_t expect_notify_mask(struct __test_metadata *const _metadata,
static void expect_notify_mask_n(struct __test_metadata *const _metadata,
static void verify_mount_ids(struct __test_metadata *const _metadata,
static void check_mounted(struct __test_metadata *const _metadata,
static void setup_mount_tree(struct __test_metadata *const _metadata,
static void log_mount(struct __test_metadata *_metadata, struct statmount *sm)
static void dump_mounts(struct __test_metadata *_metadata, uint64_t mnt_ns_id)
struct __test_metadata *_metadata,
static int uhid_write(struct __test_metadata *_metadata, int fd, const struct uhid_event *ev)
static int uhid_create(struct __test_metadata *_metadata, int fd, int rand_nb,
static void uhid_destroy(struct __test_metadata *_metadata, struct uhid_device *hid)
static int uhid_event(struct __test_metadata *_metadata, int fd)
struct __test_metadata *_metadata;
struct __test_metadata *_metadata = args->_metadata;
static int uhid_start_listener(struct __test_metadata *_metadata, pthread_t *tid, int uhid_fd)
static int uhid_send_event(struct __test_metadata *_metadata, struct uhid_device *hid,
static int setup_uhid(struct __test_metadata *_metadata, struct uhid_device *hid,
static void check_access_rw(struct __test_metadata *_metadata, int fd,
test_basic_mmap(struct __test_metadata *_metadata,
test_basic_file(struct __test_metadata *_metadata,
static void drop_cap_ipc_lock(struct __test_metadata *_metadata)
static void check_vfio_info_cap_chain(struct __test_metadata *_metadata,
static bool fail_nth_next(struct __test_metadata *_metadata,
void __fail_nth_enable(struct __test_metadata *_metadata,
static int test_nth_##name(struct __test_metadata *_metadata, \
struct __test_metadata __attribute__((unused)) *_metadata, \
static void fail_nth_first(struct __test_metadata *_metadata,
struct __test_metadata *_metadata)
static void teardown_iommufd(int fd, struct __test_metadata *_metadata)
struct __test_metadata *t;
struct __test_metadata *t)
struct __test_metadata *t)
struct __test_metadata *t;
static void test_name(struct __test_metadata *_metadata); \
struct __test_metadata *_metadata, \
static struct __test_metadata _##test_name##_object = \
struct __test_metadata __attribute__((unused)) *_metadata)
struct __test_metadata __attribute__((unused)) *_metadata, \
struct __test_metadata __attribute__((unused)) *_metadata, \
struct __test_metadata *_metadata, \
struct __test_metadata *_metadata, \
bool in_parent, struct __test_metadata *_metadata, \
static struct __test_metadata *_##fixture_name##_##test_name##_object; \
struct __test_metadata *object = mmap(NULL, sizeof(*object), \
struct __test_metadata __attribute__((unused)) *_metadata, \
struct __test_metadata;
struct __test_metadata *tests;
struct __test_metadata *test;
void (*fn)(struct __test_metadata *,
void (*teardown_fn)(bool in_parent, struct __test_metadata *_metadata,
struct __test_metadata *prev, *next;
static inline bool __test_passed(struct __test_metadata *metadata)
static inline void __register_test(struct __test_metadata *t)
static inline int __bail(int for_realz, struct __test_metadata *t)
static void __wait_for_test(struct __test_metadata *t)
static void test_helper(struct __test_metadata *_metadata)
static int matches_log_signal(struct __test_metadata *const _metadata,
static void __maybe_unused clear_cap(struct __test_metadata *const _metadata,
set_ambient_cap(struct __test_metadata *const _metadata, const cap_value_t cap)
struct __test_metadata *const _metadata, const cap_value_t cap)
enforce_ruleset(struct __test_metadata *const _metadata, const int ruleset_fd)
drop_access_rights(struct __test_metadata *const _metadata,
static void _init_caps(struct __test_metadata *const _metadata, bool drop_all)
static void __maybe_unused disable_caps(struct __test_metadata *const _metadata)
static void __maybe_unused drop_caps(struct __test_metadata *const _metadata)
static void _change_cap(struct __test_metadata *const _metadata,
static void __maybe_unused set_cap(struct __test_metadata *const _metadata,
static void test_relative_path(struct __test_metadata *const _metadata,
static void mkdir_parents(struct __test_metadata *const _metadata,
static void copy_file(struct __test_metadata *const _metadata,
static void test_execute(struct __test_metadata *const _metadata, const int err,
static void test_check_exec(struct __test_metadata *const _metadata,
static void create_directory(struct __test_metadata *const _metadata,
static void create_file(struct __test_metadata *const _metadata,
static void refer_denied_by_default(struct __test_metadata *const _metadata,
reparent_exdev_layers_enforce1(struct __test_metadata *const _metadata)
reparent_exdev_layers_enforce2(struct __test_metadata *const _metadata)
static void prepare_layout_opt(struct __test_metadata *const _metadata,
static void prepare_layout(struct __test_metadata *const _metadata)
static void cleanup_layout(struct __test_metadata *const _metadata)
static void test_make_file(struct __test_metadata *const _metadata,
static int open_proc_fd(struct __test_metadata *const _metadata, const int fd,
static void create_layout1(struct __test_metadata *const _metadata)
static void remove_layout1(struct __test_metadata *const _metadata)
static int ioctl_error(struct __test_metadata *const _metadata, int fd,
static void layer3_fs_tag_inode(struct __test_metadata *const _metadata,
static int matches_log_fs_extra(struct __test_metadata *const _metadata,
static int matches_log_fs(struct __test_metadata *const _metadata, int audit_fd,
static void add_path_beneath(struct __test_metadata *const _metadata,
static int create_ruleset(struct __test_metadata *const _metadata,
static void test_bind_and_connect(struct __test_metadata *const _metadata,
static void setup_loopback(struct __test_metadata *const _metadata)
static void create_domain(struct __test_metadata *const _metadata)
static int matches_log_ptrace(struct __test_metadata *const _metadata,
static void create_fs_domain(struct __test_metadata *const _metadata)
static void create_scoped_domain(struct __test_metadata *const _metadata,
static int create_ruleset(struct __test_metadata *const _metadata)
static void prepare(struct __test_metadata *_metadata, FIXTURE_DATA(memory_failure) * self,
static void check(struct __test_metadata *_metadata, FIXTURE_DATA(memory_failure) * self,
static void cleanup(struct __test_metadata *_metadata, FIXTURE_DATA(memory_failure) * self,
static void prctl_thp_disable_except_madvise_test(struct __test_metadata *const _metadata,
static void prctl_thp_disable_completely_test(struct __test_metadata *const _metadata,
void propagate_children(struct __test_metadata *_metadata, struct global_data *data)
void render_response(struct __test_metadata *_metadata,
void receive_response(struct __test_metadata *_metadata,
int send_request(struct __test_metadata *_metadata,
static void setup_epollpri(struct __test_metadata *_metadata,
static void __epollpair(struct __test_metadata *_metadata,
static void __sendpair(struct __test_metadata *_metadata,
static void __recvpair(struct __test_metadata *_metadata,
static void __setinlinepair(struct __test_metadata *_metadata,
static void __siocatmarkpair(struct __test_metadata *_metadata,
static void __resetpair(struct __test_metadata *_metadata,
static void create_unix_socketpair(struct __test_metadata *_metadata,
static void create_tcp_socketpair(struct __test_metadata *_metadata,
static void setup_sigurg(struct __test_metadata *_metadata,
static void send_chunks(struct __test_metadata *_metadata,
static void recv_chunks(struct __test_metadata *_metadata,
static int count_sockets(struct __test_metadata *_metadata,
static void create_listeners(struct __test_metadata *_metadata,
static void create_socketpairs(struct __test_metadata *_metadata,
static void __create_sockets(struct __test_metadata *_metadata,
static void __close_sockets(struct __test_metadata *_metadata,
void __send_fd(struct __test_metadata *_metadata,
void create_timewait_socket(struct __test_metadata *_metadata,
void bind_socket(struct __test_metadata *_metadata,
check_rfc4884_offset(struct __test_metadata *_metadata, int sock,
int bind_port(struct __test_metadata *_metadata, int reuseaddr, int reuseport)
void set_so_incoming_cpu(struct __test_metadata *_metadata, int fd, int cpu)
int create_server(struct __test_metadata *_metadata,
void create_servers(struct __test_metadata *_metadata,
void create_clients(struct __test_metadata *_metadata,
void verify_incoming_cpu(struct __test_metadata *_metadata,
static void write_sysctl(struct __test_metadata *_metadata,
static void setup_netns(struct __test_metadata *_metadata)
static void ulp_sock_pair(struct __test_metadata *_metadata,
test_mutliproc(struct __test_metadata *_metadata, struct _test_data_tls *self,
static void tls_send_keyupdate(struct __test_metadata *_metadata, int fd)
static void tls_recv_keyupdate(struct __test_metadata *_metadata, int fd, int flags)
static int __tls_recv_cmsg(struct __test_metadata *_metadata,
static int tls_recv_cmsg(struct __test_metadata *_metadata,
static size_t parse_tls_records(struct __test_metadata *_metadata,
static void chunked_sendfile(struct __test_metadata *_metadata,
static void run_test_threads(struct __test_metadata *_metadata,
check_psi_exit(struct __test_metadata *_metadata,
check_psi_entry(struct __test_metadata *_metadata,
typedef void tracer_func_t(struct __test_metadata *_metadata,
void start_tracer(struct __test_metadata *_metadata, int fd, pid_t tracee,
pid_t setup_trace_fixture(struct __test_metadata *_metadata,
void teardown_trace_fixture(struct __test_metadata *_metadata,
void tracer_poke(struct __test_metadata *_metadata, pid_t tracee, int status,
int get_syscall(struct __test_metadata *_metadata, pid_t tracee)
void __change_syscall(struct __test_metadata *_metadata,
void change_syscall_nr(struct __test_metadata *_metadata,
void change_syscall_ret(struct __test_metadata *_metadata,
void tracer_seccomp(struct __test_metadata *_metadata, pid_t tracee,
void tracer_ptrace(struct __test_metadata *_metadata, pid_t tracee,
struct __test_metadata *metadata;
static ssize_t get_nth(struct __test_metadata *_metadata, const char *path,
static char get_proc_stat(struct __test_metadata *_metadata, pid_t pid)
static long get_proc_syscall(struct __test_metadata *_metadata, int pid)
void kill_thread_or_group(struct __test_metadata *_metadata,
struct __test_metadata *_metadata)
static void test_range(struct __test_metadata *_metadata,
static void prctl_valid(struct __test_metadata *_metadata,
static void prctl_invalid(struct __test_metadata *_metadata,
static inline bool drop_all_privs(struct __test_metadata *_metadata)
static inline int get_legacy_tiocsti_setting(struct __test_metadata *_metadata)
static inline bool set_legacy_tiocsti_setting(struct __test_metadata *_metadata,
static inline int test_tiocsti_injection(struct __test_metadata *_metadata,
static void run_basic_tiocsti_test(struct __test_metadata *_metadata,
static void run_fdpass_tiocsti_test(struct __test_metadata *_metadata,