Home
last modified time | relevance | path

Searched refs:socket_fds (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/tools/testing/selftests/landlock/
H A Dbase_test.c267 int socket_fds[2]; in TEST() local
287 socket_fds)); in TEST()
288 ASSERT_EQ(0, send_fd(socket_fds[0], ruleset_fd_tx)); in TEST()
289 ASSERT_EQ(0, close(socket_fds[0])); in TEST()
295 const int ruleset_fd_rx = recv_fd(socket_fds[1]); in TEST()
298 ASSERT_EQ(0, close(socket_fds[1])); in TEST()
315 ASSERT_EQ(0, close(socket_fds[1])); in TEST()
H A Dfs_test.c3663 int socket_fds[2]; in TEST_F_FORK() local
3666 socket_fds)); in TEST_F_FORK()
3695 ASSERT_EQ(0, send_fd(socket_fds[0], fd)); in TEST_F_FORK()
3699 ASSERT_EQ(0, close(socket_fds[0])); in TEST_F_FORK()
3706 fd = recv_fd(socket_fds[1]); in TEST_F_FORK()
3718 ASSERT_EQ(0, close(socket_fds[0])); in TEST_F_FORK()
3719 ASSERT_EQ(0, close(socket_fds[1])); in TEST_F_FORK()