~snappy-dev/snapd/+git/snapd-pawel:preseed/debug-api

Last commit made on 2020-07-23
Get this branch:
git clone -b preseed/debug-api https://git.launchpad.net/~snappy-dev/snapd/+git/snapd-pawel

Branch merges

Branch information

Name:
preseed/debug-api
Repository:
lp:~snappy-dev/snapd/+git/snapd-pawel

Recent commits

8632ea8... by Ian Johnson

daemon/api_debug: rename aspect=seeding-info to aspect=seeding

Signed-off-by: Ian Johnson <email address hidden>

f4677d1... by Ian Johnson

Merge branch 'master' into preseed/debug-api
Signed-off-by: Ian Johnson <email address hidden>

a11be98... by Ian Johnson

daemon/api_debug_seeding.go: adjust names of fields as per code-review

Also return internal error on key errors

Signed-off-by: Ian Johnson <email address hidden>

5ed6c8b... by Ian Johnson

Merge pull request #9024 from mvo5/feature/cloud-init-restrict-4

sysconfig/cloudinit: add RestrictCloudInit

RestrictCloudInit will implement the cloud-init specific bits of mitigation against CVE-2020-11933, insofar as it will disable importing of cloud-init NoCloud datasources from arbitrary filesystems that an attacker could control and put malicious cloud-init data on as well as always limit the datasource for cloud-init to use on subsequent boots to the detected datasource.

We have to parse the cloud-init status.json file in order to determine what datasource was used because while the cloud-init status does give us the same information, it is in a less useful format that is harder to parse than the JSON here, and the JSON here is in a stable v1 structure that can be relied upon.

This is #3 from the snapd-private repo used to address the cloud-init fix.

Build on top of #9023

21f90bf... by Ian Johnson

Merge pull request #9018 from stolowski/preseed-reset-check-dir

cmd/snap-preseed: check that target path exists and is a directory on --reset

Followup to #9015

The reset logic uses globs to find and remove any preseeding artifacts, but doesn't check that target directory exists. This doesn't cause any errors but may be confusing if wrong path is given by mistake - globs don't match anything and snap-preseed --reset /invalid/path returns silently. This PR fixes this.

252763b... by Claudio Matsuoka

Merge pull request #9038 from zyga/fix/incorrect-pid-checks

tests: check for pids correctly

799d707... by Ian Johnson

cmd/snap-preseed/reset.go: fix import ordering

Signed-off-by: Ian Johnson <email address hidden>

840c6cf... by Ian Johnson

Merge branch 'master' into feature/cloud-init-restrict-4
Signed-off-by: Ian Johnson <email address hidden>

cb15608... by Samuele Pedroni

gadget,gadget/install: refactor partition table update

Merge pull request #8959 from cmatsuoka/uc20-gadget-install-refactor-partition-update

Reorganize partition table updating so that we won't export a field
that's a pointer to an internal type.

6a2029c... by Samuele Pedroni

sysconfig/cloudinit: add CloudInitStatus func + CloudInitState type

Merge pull request #9023 from mvo5/feature/cloud-init-restrict-2

These are used to identify what state cloud-init is in for future manipulations of cloud-init during the running system on Ubuntu Core.

This is #3 from the snapd-private repo used to address the cloud-init fix.