Giter Site home page Giter Site logo

genuinetools / contained.af Goto Github PK

View Code? Open in Web Editor NEW
889.0 30.0 61.0 17.9 MB

A stupid game for learning about containers, capabilities, and syscalls.

Home Page: https://contained.af

License: MIT License

Makefile 3.81% JavaScript 63.88% HTML 1.53% Go 14.55% CSS 14.94% Shell 0.97% Dockerfile 0.33%
linux syscalls game containers security apparmor seccomp docker opencontainers

contained.af's People

Contributors

ajdlinux avatar azillion avatar bernerdschaefer avatar davebiffuk avatar davidk avatar fearphage avatar github-actions[bot] avatar imgbot[bot] avatar jessfraz avatar jstoja avatar jvns avatar kensan avatar lpmi-13 avatar marcosps avatar setharnold avatar toc-me[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

contained.af's Issues

Console smiling

Hi, I was playing around with the container and I saw it smiling at me upon reset command:
(B/ #

Anyway, that's minor but I was wondering why this happen?

.terminal wider than #console

It looks like the div.terminal inside #console is wider than the #console.

In Chrome - http://imgur.com/a/AsQBb. It looks like the div#console is 1140x400, the div.terminal inside it is 1340x310

Less pronounced in Firefox: http://imgur.com/a/qCCQo - the div#console is 1140x400, the div.terminal is 1144x324.333.

Running Chrome 56.0.2924.87 and Firefox ESR 45.7.0 on Debian amd64.

If I have time this weekend I'll take a quick look at the CSS...

About binctr

Sorry to open an issue about binctr here.
I am trying to use binctr but I get this error.

`make static
docker pull --disable-content-trust=false alpine
Using default tag: latest
Pull (1 of 1): alpine:latest@sha256:3dcdb92d7432d56604d4545cbd324b14e647b313626d99b889d0626de158f73a
sha256:3dcdb92d7432d56604d4545cbd324b14e647b313626d99b889d0626de158f73a: Pulling from library/alpine
Digest: sha256:3dcdb92d7432d56604d4545cbd324b14e647b313626d99b889d0626de158f73a
Status: Image is up to date for alpine@sha256:3dcdb92d7432d56604d4545cbd324b14e647b313626d99b889d0626de158f73a
Tagging alpine@sha256:3dcdb92d7432d56604d4545cbd324b14e647b313626d99b889d0626de158f73a as alpine:latest
docker export 10f5b1ea95ff5a0196be67a60c425d5642366897efe9c428b3b4aef42918401d > image.tar
GOMAXPROCS=1 go generate

  • static
    CGO_ENABLED=1 go build -tags "seccomp apparmor cgo static_build"
    -ldflags "-w -extldflags -static -X main.GITCOMMIT=e2b7baf-dirty -X main.VERSION=0.1.0 -X main.IMAGE=alpine -X main.IMAGESHA=sha256:4e38e38c8ce0b8d9041a9c4fefe786631d1416225e13b0bfe8cfa2321aec4bba" -o bin/alpine .

    _/home/oneadmin/s6/binctr

    ./spec.go:146: cannot use specs.Linux literal (type specs.Linux) as type specs.Linux in field value
    make: *
    * [static] Error 2`

I appreciate if you could help me to solve it.

Nginx config not included in repo

In prod, contained.af seems to be fronted by nginx (there's server: nginx in the response header).

In the interest of replicating a prod deployment as close as possible, I would find it useful if the nginx config was public or ideally locally reproducible modulo the Lets Encrypt cert.

Is the nanosleep syscall blocked?

This section asks if the nanosleep sycall is being blocked. Sleep can be run without any error messages (example sleep 5s, sleep 30s, ....etc...) That shows that sleep is able to be run, so nanosleep isn't being blocked, however, if I answer "No" to that question it responds with "try to run sleep" indicating the answers wrong. Might want to check that code, sleep is runnable therefore nanosleep isn't blocked.

`nanosleep(2)` is not blocked

The answers expect the nanosleep(2) syscall to be blocked, but it isn't (and the sleep command can successfully be used).

javascript errors

I'm not sure what triggers these errors. It normally takes a little bit for them to pop up. Running Chrome 57 on Windows

contained.min.js:3 Uncaught TypeError: Failed to execute 'getComputedStyle' on 'Window': parameter 1 is not of type 'Element'.
    at Object.t.proposeGeometry (contained.min.js:3)
    at Object.t.fit (contained.min.js:3)
    at r.e.fit (contained.min.js:3)
    at t (contained.min.js:5)
    at window.onresize (contained.min.js:5)

Trying to run contained.af locally on Linux Mint results in "Error response from daemon"

Full error message
docker: Error response from daemon: cannot join network of a non running container: contained-dind.

Steps to reproduce

  1. Clone contained.af repo
  2. run make dev and make dind. Successful. Run make run errors out with above error message.
  3. Checked docker ps, contained-dind is not running.

I should add, that I'm a total n00b so I'm going to duckduckgo a bit to see if I can make it work.

Page jump to top on keypress or click

This happen on windows 7 chrome when you click on the terminal or press a key it jump to the top, it's realy annoying on smaller screen (1330x768 laptop) because you can't see the commad line and you need to scroll down.

terminal error

Hi. I'm getting the following in the logs:
DEBU[0309] received from container websocket: standard_init_linux.go:190: exec user process caused "permission denied"
Every time I reload the page I see that error, "standard_initlinux.go:190..." flash in the terminal box on the page and in the log stream. I'm guessing that this is related to connecting a shell to the terminal window. Any hint on how to debug this would be appreciated. All the other functionality, AFAIK, works fine. This is on ubuntu.
I have minimal docker/container knowledge so I may be doing something obviously wrong.

terminal output

So far Im trying to solve the game but at some point I cannot see the terminal any longer and start seeing these messages on chrome console.

screen shot 2018-08-18 at 00 22 48

Uncaught TypeError: Failed to execute 'getComputedStyle' on 'Window': parameter 1 is not of type 'Element'. at Object.proposeGeometry (contained.min.js:1) at Object.fit (contained.min.js:1) at g.e.fit (contained.min.js:1) at t (contained.min.js:1) at window.onresize (contained.min.js:1) 12contained.min.js:1

old kernel leaks host mount info into container

I was surprised to see in the container:

/ # mount                                                                       
overlay on / type overlay (rw,relatime,lowerdir=/var/lib/docker/165536.165536/overlay/0ba9b7615cd55505fdada24721eb7bb499
16f7ad052b8dac03eaf18a7e358a5a/root,upperdir=/var/lib/docker/165536.165536/overlay/c709c965bb44392aec185327bc480e53dc125
20f2dd02b56fd351ce033344a1e/upper,workdir=/var/lib/docker/165536.165536/overlay/c709c965bb44392aec185327bc480e53dc12520f
2dd02b56fd351ce033344a1e/work)  
.
.
.

I think kernel commit a082c6f680da2 in 4.12 or newer might block this and maybe a 4.4 kernel is currently running?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.