mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-23 03:21:28 +01:00
no_new_privs test container
Signed-off-by: Jess Frazelle <acidburn@google.com>
This commit is contained in:
parent
a9b27fbd66
commit
dfb1db2d50
6
no_new_privs/Dockerfile
Normal file
6
no_new_privs/Dockerfile
Normal file
|
@ -0,0 +1,6 @@
|
|||
FROM alpine:latest
|
||||
|
||||
COPY nnp /usr/local/bin/nnp
|
||||
RUN chmod +s /usr/local/bin/nnp
|
||||
|
||||
CMD ["/usr/local/bin/nnp"]
|
BIN
no_new_privs/nnp
Executable file
BIN
no_new_privs/nnp
Executable file
Binary file not shown.
8
no_new_privs/nnp.c
Normal file
8
no_new_privs/nnp.c
Normal file
|
@ -0,0 +1,8 @@
|
|||
#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
int main(int argc, char *argv[]){
|
||||
printf("Effective uid: %d\n", geteuid());
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue
Block a user