[lxc-devel] [lxc/lxc] f858dd: seccomp: re-add action parse error handling

GitHub noreply at github.com
Fri May 25 10:43:54 UTC 2018


  Branch: refs/heads/master
  Home:   https://github.com/lxc/lxc
  Commit: f858dd50cff72855f4fe305c150eeb02387f8fb5
      https://github.com/lxc/lxc/commit/f858dd50cff72855f4fe305c150eeb02387f8fb5
  Author: Wolfgang Bumiller <w.bumiller at proxmox.com>
  Date:   2018-05-25 (Fri, 25 May 2018)

  Changed paths:
    M src/lxc/seccomp.c

  Log Message:
  -----------
  seccomp: re-add action parse error handling

This can happen when the 'errno' action can't parse its
supplied number.

Signed-off-by: Wolfgang Bumiller <w.bumiller at proxmox.com>
Fixes: f67c94d00a0d ("seccomp: parse_v2_rules()")


  Commit: 9dbd8ff383804094dc4059cc052d56b504ad3121
      https://github.com/lxc/lxc/commit/9dbd8ff383804094dc4059cc052d56b504ad3121
  Author: Wolfgang Bumiller <w.bumiller at proxmox.com>
  Date:   2018-05-25 (Fri, 25 May 2018)

  Changed paths:
    M src/lxc/seccomp.c

  Log Message:
  -----------
  seccomp: refactor line handling of parse_config

Moving parse_config_v2 to use getline accidentally parsed
the wrong buffer. Since both _v1 and _v2 now use getline it
seems to be simpler to also use getline() for the first line
before entering the version specific parsers and pass along
the pointer and size so they can reuse them.

Signed-off-by: Wolfgang Bumiller <w.bumiller at proxmox.com>
Fixes: 9c3798eba41c ("seccomp: parse_config_v2()")


  Commit: 7474b5b33f15e7769608df2a36f7f86274028c01
      https://github.com/lxc/lxc/commit/7474b5b33f15e7769608df2a36f7f86274028c01
  Author: Wolfgang Bumiller <w.bumiller at proxmox.com>
  Date:   2018-05-25 (Fri, 25 May 2018)

  Changed paths:
    M src/lxc/seccomp.c

  Log Message:
  -----------
  seccomp: error on unrecognized actions

Be more strict about unrecognized actions. Previously the
parser would happily accept lines with typos like:

  kexec_load errrno 1

(note the extra 'r')

Signed-off-by: Wolfgang Bumiller <w.bumiller at proxmox.com>


  Commit: 1ddc138272df2b40353628593f531e2c69918f62
      https://github.com/lxc/lxc/commit/1ddc138272df2b40353628593f531e2c69918f62
  Author: Christian Brauner <christian at brauner.io>
  Date:   2018-05-25 (Fri, 25 May 2018)

  Changed paths:
    M src/lxc/seccomp.c

  Log Message:
  -----------
  Merge pull request #2351 from Blub/seccomp-fixup-2

Seccomp fixup part 2


Compare: https://github.com/lxc/lxc/compare/8cd059dfdcaa...1ddc138272df
      **NOTE:** This service been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

      Functionality will be removed from GitHub.com on January 31st, 2019.


More information about the lxc-devel mailing list