[lxc-devel] [lxc/lxc] e0f420: confile: safely clean previous value in set_config...

St├ęphane Graber noreply at github.com
Mon Mar 29 12:13:27 UTC 2021


  Branch: refs/heads/master
  Home:   https://github.com/lxc/lxc
  Commit: e0f420d5ae0f11f5cb538c93ff4aa956202958e0
      https://github.com/lxc/lxc/commit/e0f420d5ae0f11f5cb538c93ff4aa956202958e0
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2021-03-29 (Mon, 29 Mar 2021)

  Changed paths:
    M src/lxc/confile.c

  Log Message:
  -----------
  confile: safely clean previous value in set_config_net_ipv6_gateway()

Link: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=32610
Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>


  Commit: d21e9500594c504934fc217a6688e2748bd105dc
      https://github.com/lxc/lxc/commit/d21e9500594c504934fc217a6688e2748bd105dc
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2021-03-29 (Mon, 29 Mar 2021)

  Changed paths:
    M src/lxc/confile.c

  Log Message:
  -----------
  confile: safely clean previous value in set_config_net_ipv4_gateway()

Link: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=32586
Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>


  Commit: 12babd78e37d58850cf99f6b4e3faf104e0da2cd
      https://github.com/lxc/lxc/commit/12babd78e37d58850cf99f6b4e3faf104e0da2cd
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2021-03-29 (Mon, 29 Mar 2021)

  Changed paths:
    M src/lxc/confile.c
    M src/lxc/confile.h

  Log Message:
  -----------
  confile: vet keys more aggressively

Enforce an exact match for all keys where we now the subkeys must match
exactly.

Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>


  Commit: 8d508eaa9b7df4a9df908649735e4d6b3cb75994
      https://github.com/lxc/lxc/commit/8d508eaa9b7df4a9df908649735e4d6b3cb75994
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2021-03-29 (Mon, 29 Mar 2021)

  Changed paths:
    M src/lxc/confile.c
    M src/lxc/confile_utils.c
    M src/lxc/confile_utils.h

  Log Message:
  -----------
  confile: clear netdev on network type change

Link: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=32584
Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>


  Commit: a8b7aefc156d5e57d5b7b6faa0d7e7e231dba96b
      https://github.com/lxc/lxc/commit/a8b7aefc156d5e57d5b7b6faa0d7e7e231dba96b
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2021-03-29 (Mon, 29 Mar 2021)

  Changed paths:
    M src/lxc/confile.c

  Log Message:
  -----------
  confile: cleanup set_config_net_hwaddr()

Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>


  Commit: 6d0297b9ae653c4f99a4a41988460d96f03053b1
      https://github.com/lxc/lxc/commit/6d0297b9ae653c4f99a4a41988460d96f03053b1
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2021-03-29 (Mon, 29 Mar 2021)

  Changed paths:
    M src/lxc/confile.c

  Log Message:
  -----------
  confile: cleanup set_config_net_mtu()

Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>


  Commit: 040b3e1d24c646d0a90d7f8c1f42368bec93b9ba
      https://github.com/lxc/lxc/commit/040b3e1d24c646d0a90d7f8c1f42368bec93b9ba
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2021-03-29 (Mon, 29 Mar 2021)

  Changed paths:
    M src/lxc/confile.c

  Log Message:
  -----------
  confile: cleanup set_config_net_script_up()

Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>


  Commit: f0383b96e0226e2c6f66b46eb102d41ccdfc0657
      https://github.com/lxc/lxc/commit/f0383b96e0226e2c6f66b46eb102d41ccdfc0657
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2021-03-29 (Mon, 29 Mar 2021)

  Changed paths:
    M src/lxc/confile.c

  Log Message:
  -----------
  confile: cleanup set_config_net_script_down()

Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>


  Commit: cea88c47ac71c320b7a113840092b6cdbc6fe198
      https://github.com/lxc/lxc/commit/cea88c47ac71c320b7a113840092b6cdbc6fe198
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2021-03-29 (Mon, 29 Mar 2021)

  Changed paths:
    M src/tests/parse_config_file.c

  Log Message:
  -----------
  tests: fix two false negatives in parse_config_file()

Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>


  Commit: 2d676c005c1a53086af423ea35631b46d1854f41
      https://github.com/lxc/lxc/commit/2d676c005c1a53086af423ea35631b46d1854f41
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2021-03-29 (Mon, 29 Mar 2021)

  Changed paths:
    M src/tests/parse_config_file.c

  Log Message:
  -----------
  tests: add another test for garbage config key

where a valid key has trailing garbage at the end before the "=".

Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>


  Commit: 52ce85046b4cbb4af431c99f260a8f9aabc57054
      https://github.com/lxc/lxc/commit/52ce85046b4cbb4af431c99f260a8f9aabc57054
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2021-03-29 (Mon, 29 Mar 2021)

  Changed paths:
    M configure.ac
    M src/lxc/compiler.h
    M src/lxc/conf.c
    M src/lxc/conf.h
    M src/lxc/initutils.c

  Log Message:
  -----------
  conf: fix thread_local support detection

Our detection for TLS wasn't working. Fix it.

Fixes: https://github.com/lxc/lxd/issues/8327
Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>


  Commit: ea60ca9565243a34335477ea213ebba897db18b7
      https://github.com/lxc/lxc/commit/ea60ca9565243a34335477ea213ebba897db18b7
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2021-03-29 (Mon, 29 Mar 2021)

  Changed paths:
    M src/lxc/lxccontainer.c

  Log Message:
  -----------
  lxccontainer: ensure second parameter to bsearch is never NULL

Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>


  Commit: be43adcda9795c46aa80d0fdf80b78bbae879f81
      https://github.com/lxc/lxc/commit/be43adcda9795c46aa80d0fdf80b78bbae879f81
  Author: St├ęphane Graber <stgraber at ubuntu.com>
  Date:   2021-03-29 (Mon, 29 Mar 2021)

  Changed paths:
    M configure.ac
    M src/lxc/compiler.h
    M src/lxc/conf.c
    M src/lxc/conf.h
    M src/lxc/confile.c
    M src/lxc/confile.h
    M src/lxc/confile_utils.c
    M src/lxc/confile_utils.h
    M src/lxc/initutils.c
    M src/lxc/lxccontainer.c
    M src/tests/parse_config_file.c

  Log Message:
  -----------
  Merge pull request #3748 from brauner/2021-03-29/fixes

fixes & config key validation


Compare: https://github.com/lxc/lxc/compare/cc19bc540674...be43adcda979


More information about the lxc-devel mailing list