[lxc-devel] [lxc/lxc] 3a2cd4: seccomp: fix off-by-one error in array allocation ...

GitHub noreply at github.com
Thu May 24 09:30:32 UTC 2018


  Branch: refs/heads/master
  Home:   https://github.com/lxc/lxc
  Commit: 3a2cd4b95836130ca4a8bec9157eea52daaeba41
      https://github.com/lxc/lxc/commit/3a2cd4b95836130ca4a8bec9157eea52daaeba41
  Author: Felix Abecassis <fabecassis at nvidia.com>
  Date:   2018-05-23 (Wed, 23 May 2018)

  Changed paths:
    M src/lxc/seccomp.c

  Log Message:
  -----------
  seccomp: fix off-by-one error in array allocation for sscanf

The maximum field width does not include the null terminator.

Signed-off-by: Felix Abecassis <fabecassis at nvidia.com>


  Commit: 9c7423ce2f9e96e8f62c3c529855a2b361406e8b
      https://github.com/lxc/lxc/commit/9c7423ce2f9e96e8f62c3c529855a2b361406e8b
  Author: Felix Abecassis <fabecassis at nvidia.com>
  Date:   2018-05-23 (Wed, 23 May 2018)

  Changed paths:
    M src/lxc/seccomp.c

  Log Message:
  -----------
  seccomp: remove confusing comment line

Signed-off-by: Felix Abecassis <fabecassis at nvidia.com>


  Commit: 30adf868bf08b8c2d3197b67fe61159514ff76b6
      https://github.com/lxc/lxc/commit/30adf868bf08b8c2d3197b67fe61159514ff76b6
  Author: Felix Abecassis <fabecassis at nvidia.com>
  Date:   2018-05-23 (Wed, 23 May 2018)

  Changed paths:
    M src/lxc/seccomp.c

  Log Message:
  -----------
  seccomp: remove unnecessary memset

Signed-off-by: Felix Abecassis <fabecassis at nvidia.com>


  Commit: eacebcc3cb8cf5d29556c85fe826096723475242
      https://github.com/lxc/lxc/commit/eacebcc3cb8cf5d29556c85fe826096723475242
  Author: Felix Abecassis <fabecassis at nvidia.com>
  Date:   2018-05-23 (Wed, 23 May 2018)

  Changed paths:
    M src/lxc/seccomp.c
    M src/lxc/utils.c
    M src/lxc/utils.h

  Log Message:
  -----------
  seccomp: fix type mismatch when parsing syscall arguments filters

Specifier %lli was insufficient for the type uint64_t, all values
between 2^63-1 and 2^64-1 were silently converted to 2^63-1.

We can't use %llu since it doesn't handle hexadecimal. Instead, we
parse the values as strings and then use strtoull(3).

Signed-off-by: Felix Abecassis <fabecassis at nvidia.com>


  Commit: 73b5b70eb7f02e17dd48ffa118a323f705c341a3
      https://github.com/lxc/lxc/commit/73b5b70eb7f02e17dd48ffa118a323f705c341a3
  Author: Christian Brauner <christian at brauner.io>
  Date:   2018-05-24 (Thu, 24 May 2018)

  Changed paths:
    M src/lxc/seccomp.c
    M src/lxc/utils.c
    M src/lxc/utils.h

  Log Message:
  -----------
  Merge pull request #2345 from flx42/seccomp-fixes

Seccomp fixes


Compare: https://github.com/lxc/lxc/compare/f217dcd039bc...73b5b70eb7f0
      **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