Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Prctl() and ioctl wrapper functions from x/sys/unix #1504

Merged
merged 3 commits into from
Jul 10, 2017
Merged

Use Prctl() and ioctl wrapper functions from x/sys/unix #1504

merged 3 commits into from
Jul 10, 2017

Commits on Jul 10, 2017

  1. vendor: bump golang.org/x/sys to 0e0164865330

    Update golang.org/x/sys to get newly added functions and constants which
    will be used in successive commits.
    
    Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
    tklauser committed Jul 10, 2017
    Configuration menu
    Copy the full SHA
    05ea5e4 View commit details
    Browse the repository at this point in the history
  2. libcontainer: use Prctl() from x/sys/unix

    Use unix.Prctl() instead of manually reimplementing it using
    unix.RawSyscall. Also use unix.SECCOMP_MODE_FILTER instead of locally
    defining it.
    
    Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
    tklauser committed Jul 10, 2017
    Configuration menu
    Copy the full SHA
    a380fae View commit details
    Browse the repository at this point in the history
  3. libcontainer: use ioctl wrappers from x/sys/unix

    Use IoctlGetInt and IoctlGetTermios/IoctlSetTermios instead of manually
    reimplementing them.
    
    Because of unlockpt, the ioctl wrapper is still needed as it needs to
    pass a pointer to a value, which is not supported by any ioctl function
    in x/sys/unix yet.
    
    Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
    tklauser committed Jul 10, 2017
    Configuration menu
    Copy the full SHA
    078e903 View commit details
    Browse the repository at this point in the history