mirror of
https://github.com/maxkratz/dockerfiles.git
synced 2024-09-08 00:03:50 +00:00
no_new_privs test container
Signed-off-by: Jess Frazelle <acidburn@google.com>
This commit is contained in:
parent
a9b27fbd66
commit
dfb1db2d50
3 changed files with 14 additions and 0 deletions
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 a new issue