Lines Matching refs:sock
120 int sock; in test_drop_privileges_keep_net_raw() local
122 sock = socket(AF_INET, SOCK_RAW, IPPROTO_UDP); in test_drop_privileges_keep_net_raw()
123 assert_se(sock >= 0); in test_drop_privileges_keep_net_raw()
124 safe_close(sock); in test_drop_privileges_keep_net_raw()
131 sock = socket(AF_INET, SOCK_RAW, IPPROTO_UDP); in test_drop_privileges_keep_net_raw()
132 assert_se(sock >= 0); in test_drop_privileges_keep_net_raw()
133 safe_close(sock); in test_drop_privileges_keep_net_raw()
137 int sock; in test_drop_privileges_dontkeep_net_raw() local
139 sock = socket(AF_INET, SOCK_RAW, IPPROTO_UDP); in test_drop_privileges_dontkeep_net_raw()
140 assert_se(sock >= 0); in test_drop_privileges_dontkeep_net_raw()
141 safe_close(sock); in test_drop_privileges_dontkeep_net_raw()
148 sock = socket(AF_INET, SOCK_RAW, IPPROTO_UDP); in test_drop_privileges_dontkeep_net_raw()
149 assert_se(sock < 0); in test_drop_privileges_dontkeep_net_raw()