Until we can support existing behaviour with `sudo` disable ambient capabilities in runc build. Add tests that non root user cannot use default capabilities, and that capabilities are working as expected. Test for #27590 Update runc. Signed-off-by: Justin Cormack <justin.cormack@docker.com> Upstream-commit: c5251f7116e3d9095a7169fc31bd170dff997c2e Component: engine
15 lines
228 B
C
15 lines
228 B
C
#include <stdio.h>
|
|
#include <unistd.h>
|
|
#include <sys/socket.h>
|
|
#include <netinet/ip.h>
|
|
#include <netinet/udp.h>
|
|
|
|
int main() {
|
|
if (socket(PF_INET, SOCK_RAW, IPPROTO_UDP) == -1) {
|
|
perror("socket");
|
|
return 1;
|
|
}
|
|
|
|
return 0;
|
|
}
|