• Filipe Brandenburger's avatar
    Add new e2e-test container to export ipcs from util-linux · c9e5bfbb
    Filipe Brandenburger authored
    This container will be used to exercise the HostIPC functionality in
    e2e-node tests.
    
    The version of `ipcs` shipped in busybox performs operations that get
    blocked by SELinux on hosts where it is enabled. The version of `ipcs`
    in util-linux does not perform those operations, rather it checks
    whether the /proc files it needs are available and proceeds to reading
    from them directly.
    
    Using `ipcs` from util-linux makes these tests pass, even when running
    under SELinux enabled, so let's use them here.
    
    Tested: On a host where Docker with SELinux enabled:
    
    - Checked that `ipcs` from busybox does not work:
    
      $ docker run busybox ipcs -m
      kernel not configured for shared memory
    
    - Checked that the one from this container does work:
    
      $ docker run gcr.io/kubernetes-e2e-test-images/ipc-utils-amd64:1.0 ipcs -m
      ------ Shared Memory Segments --------
      key        shmid      owner      perms      bytes      nattch     status
    c9e5bfbb
Name
Last commit
Last update
..
BASEIMAGE Loading commit data...
Dockerfile Loading commit data...
VERSION Loading commit data...