Permalink
Switch branches/tags
Nothing to show
Commits on Oct 5, 2017
  1. Merge pull request #1 from tyhicks/actlog-mvo-fork

    mvo5 committed Oct 5, 2017
    golang: Add support for SCMP_ACT_LOG
Commits on Oct 3, 2017
  1. golang: Add support for SCMP_ACT_LOG

    tyhicks committed Sep 21, 2017
    Represent libseccomp's SCMP_ACT_LOG action with ActLog. This action logs
    before allowing the syscall.
    
    Signed-off-by: Tyler Hicks <tyhicks@canonical.com>
Commits on Jun 14, 2017
  1. add support to build with 2.1.1

    mvo5 committed Jun 14, 2017
Commits on Apr 24, 2017
  1. golang: Fix compile error on Debian

    mheon committed Apr 20, 2017
    It appears the CGo did not like the use of preprocessor
    constants in return. Assign them to variables before using
    them to fix this.
    
    Also fixes tab size in some CGo code
    
    Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
  2. golang: Resolve bug with handling of multiple argument rules

    mheon committed Apr 19, 2017
    In the upstream library, when added with a single API call,
    multiple syscall argument rules should be matched with AND
    logic - if all of them match, the rule matches.
    
    At present, the Golang bindings apply OR logic to this case.
    This commit resolves this and reverts to the behavior of the
    main library.
    
    Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
  3. golang: Remove TSync functions, and set unconditionally

    mheon committed Apr 18, 2017
    Go's extensive use of threading makes installing Seccomp filters
    without TSync set have strong potential for unexpected
    behavior. Setting TSync unconditionally ensures expected behavior.
    This commit bumps the minimum supported library version to v2.2.0
    to ensure support for TSync.
    
    Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
Commits on Apr 7, 2017
  1. golang: Use `seccomp_version` API to obtain library version

    dvusboy committed with mheon Mar 11, 2017
    * add three C functions to retrieve the major, minor and micro
      version values from `seccomp_version()` when that's available
      under v2.3.x or newer
    * has to change type from `int` to `uint` as that's the type
      used in `struct scmp_version`
    
    Signed-off-by: K.C. Wong <kcwong@verseon.com>
    [MH: Tweaked commit message]
    Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
Commits on Jan 5, 2017
  1. all: version v0.9.0

    pcmoore committed Jan 5, 2017
    Signed-off-by: Paul Moore <paul@paul-moore.com>
Commits on Dec 17, 2016
  1. doc: add an initial CHANGELOG

    pcmoore committed Dec 17, 2016
    Signed-off-by: Paul Moore <paul@paul-moore.com>
  2. doc: add an initial SUBMITTING_PATCHES file

    pcmoore committed Dec 17, 2016
    Signed-off-by: Paul Moore <paul@paul-moore.com>
Commits on Dec 16, 2016
  1. doc: document some minimal dependency versions

    pcmoore committed Dec 16, 2016
    See GH issue #2 for more information:
    
     * seccomp#2
    
    Suggested-by: Thordur Bjornsson <thorduri@secnorth.net>
    Signed-off-by: Paul Moore <paul@paul-moore.com>
  2. doc: minor README tweak

    pcmoore committed Dec 16, 2016
    I missed this earlier.
    
    Signed-off-by: Paul Moore <paul@paul-moore.com>
  3. doc: README formatting changes

    pcmoore committed Dec 16, 2016
    Another nit picky commit.
    
    Signed-off-by: Paul Moore <paul@paul-moore.com>
  4. build: normalize the Makefile format

    pcmoore committed Dec 16, 2016
    I'm nit picky about these things.
    
    Signed-off-by: Paul Moore <paul@paul-moore.com>
  5. build: create an initial Makefile

    thorduri committed with pcmoore Nov 22, 2016
    Recipes are loosely based on the libseccomp project,
    e.g. `check`, `check-build`, `check-syntax` are present.
    Additonally `fix-syntax`, `vet` and `lint` are provided.
    
    Add documentation blurbs to the README, again loosely
    based on the libseccomp project README.
    
    Addresses GH issue #1.
    
    Signed-off-by: Thordur Bjornsson <thorduri@secnorth.net>
    [PM: tweaked subject line, made GH references more clear]
    Signed-off-by: Paul Moore <paul@paul-moore.com>
  6. git: create an initial gitignore

    thorduri committed with pcmoore Nov 22, 2016
    Signed-off-by: Thordur Bjornsson <thorduri@secnorth.net>
    Signed-off-by: Paul Moore <paul@paul-moore.com>
  7. golang: remove init time version check and error/exit

    thorduri committed with pcmoore Nov 23, 2016
    Introduce `ensureSupportedVersion()`, and call it in the exported
    API functions where appropriate before attempting operations, and
    return a `VersionError` if the system libseccomp is to old.
    
    Use `VersionError` in a few other appropriate places as well.
    
    Fixes GH issue #11, supersedes GH PR #6.
    
    Signed-off-by: Thordur Bjornsson thorduri@secnorth.net
    [PM: fixed up patch subject line, made GH reference more clear]
    Signed-off-by: Paul Moore <paul@paul-moore.com>
Commits on May 31, 2016
  1. golang: add missing defines for PPC / S390 goloang bindings

    michael-holzheu committed with pcmoore May 30, 2016
    Signed-off-by: Michael Holzheu <holzheu@linux.vnet.ibm.com>
    Signed-off-by: Paul Moore <paul@paul-moore.com>
Commits on May 24, 2016
  1. golang: Update golang interface with additional architectures

    estesp committed with pcmoore Nov 21, 2015
    Adds the POWER and System z variants that exist in the libseccomp master
    branch to the golang consts/functions.
    
    Signed-off-by: Phil Estes <estesp@linux.vnet.ibm.com>
    Signed-off-by: Paul Moore <paul@paul-moore.com>
  2. golang: use pkg-config for cgo flag generation

    cyphar committed with pcmoore Mar 21, 2016
    Not all distributions package libseccomp in the same way, but pkg-config
    allows the same configuration to work on different distributions. Switch
    to using pkg-config to automatically figure out what the correct
    commandline flags are for libseccomp.
    
    Signed-off-by: Aleksa Sarai <asarai@suse.de>
    Signed-off-by: Paul Moore <paul@paul-moore.com>
  3. golang: fix a typo

    Wang Qilin committed with pcmoore Nov 9, 2015
    Signed-off-by: Wang Qilin wangqilin2@huawei.com
    Signed-off-by: Paul Moore <paul@paul-moore.com>
Commits on Aug 13, 2015
  1. golang: updates to support v2.1.0 and up of libseccomp

    mheon committed with pcmoore Aug 10, 2015
    At present, the bindings require v2.2.1 of libseccomp to build. This patch
    allows the use of earlier versions of the library.
    
    Adds a function to the public API of the Golang bindings to retrieve the
    library version the bindings were built against.
    
    Many comments and error messages throughout receive slight updates to fix
    warnings identified by Golint. In general, all error messages begin with
    lowercase letters and do not end in punctuation, and all comments on exported
    functions and constants begin with the name of the function/variable.
    
    Signed-off-by: Matthew Heon <mheon@redhat.com>
    Signed-off-by: Paul Moore <pmoore@redhat.com>
Commits on Jun 16, 2015
  1. golang: fix typo in unit tests

    mheon committed with pcmoore Jun 15, 2015
    Signed-off-by: Matthew Heon <mheon@redhat.com>
    [PM: tweaked subject line]
    Signed-off-by: Paul Moore <pmoore@redhat.com>
Commits on Jun 12, 2015
  1. golang: Populate repository with initial Golang bindings

    mheon committed with pcmoore Jun 11, 2015
    Signed-off-by: Matthew Heon <mheon@redhat.com>
    [PM: minor style tweaks to the LICENSE file]
    Signed-off-by: Paul Moore <pmoore@redhat.com>
Commits on Jun 10, 2015
  1. doc: create an initial README

    pcmoore committed Jun 10, 2015
    Provide some basics of the libseccomp project and the intent of this
    repository.  I expect the README file to change as this repository
    is populated.
    
    Signed-off-by: Paul Moore <pmoore@redhat.com>
  2. all: respository creation

    pcmoore committed Jun 10, 2015
    Signed-off-by: Paul Moore <pmoore@redhat.com>