~snappy-dev/snapd/+git/snapd-pawel:preseeding-interface-hooks

Last commit made on 2020-10-29
Get this branch:
git clone -b preseeding-interface-hooks https://git.launchpad.net/~snappy-dev/snapd/+git/snapd-pawel

Branch merges

Branch information

Name:
preseeding-interface-hooks
Repository:
lp:~snappy-dev/snapd/+git/snapd-pawel

Recent commits

8a08240... by Paweł Stołowski

Merge branch 'master' into preseeding-interface-hooks

eee9569... by Paweł Stołowski

Simplify firstTaskAfterBootWhenPreseeding, rename hasHooks variable and clarify comments.

afab8fb... by Ian Johnson

Merge pull request #9542 from zyga/fix/lp-1901489

interfaces: deny connected x11 plugs access to ICE

The ICE protocol allows the application to tell the session manager how
to restart an application from previously saved state, along with the
entire command line to execute. This can be used to craft a sandbox
escape, assuming a compatible session manager is used.

Fixes: https://bugs.launchpad.net/snapd/+bug/1901489

8f420f8... by Ian Johnson

Merge pull request #9489 from anonymouse64/feature/snapd-shutdown-maintenance-json

daemon,client: write and read a maintenance.json file for when snapd is shut down

This is needed for more robustness in the very racy situation of trying to temporarily auto-refreshes for console-conf to run on first-boot, as we may come into the game when snapd is already down, and want to still display a nice message to the user rather than just "error: connection refused" because snapd is not responding to requests.

As such, we write a maintenance.json file when shutting down with details of why snapd is shutting down (i.e. just to restart itself or to wait for a full system reboot), and then check for this file from the client so we can know when this situation happened.

Note that currently, we just set the Maintenance on the client and move on with the request, because this is the least intrusive way to make this change, but ideally I think we should just skip the request entirely if we know for sure that snapd is shut down and won't respond anytime soon (i.e. for a reboot) but this is a bigger change and probably requires adjustments various other places too, so I opted for the safer, less intrusive change here.

This is most useful for #9418

See also https://bugs.launchpad.net/snapd/+bug/1880156

286fa6a... by Claudio Matsuoka

Merge pull request #9549 from cmatsuoka/uc20-secboot-v1-phase1

many: update to secboot v1 (part 1)

088ace9... by Claudio Matsuoka

vendor: use maze.io/x/crypto/afis mirror for trusty

Git in ubuntu 14.04 is unable to connect to git.maze.io using https
(libcurl too old and handshake fails). Use a mirror hosted in github
instead.

Signed-off-by: Claudio Matsuoka <email address hidden>

fdbfc12... by Maciej Borzecki

tests/nested/core20/kernel-reseal: use the repacked test kernel

We cannot use the pc-kernel directly from the store as it may have a version of
snap-bootstrap that will be unable to unseal the keys and unlock the encrypted
volumes. Instead, use the version that kernel snap that was repacked with the
version of snap-boostrap from the current source tree.

Signed-off-by: Maciej Borzecki <email address hidden>

634d1db... by Ian Johnson

Merge pull request #9550 from anonymouse64/bugfix/mockdisk-verifies-consistency

osutil/disks/mockdisk: panic if same mountpoint shows up again with diff opts

We should panic if we are passed a mapping that has the same mountpoint with
different options show up twice, as this is an inconsistent world-view, as one
mountpoint can only have one option set on it. The reason we have this option as
the input and not as a property of the disk itself is so that we can verify the
input, as whether or not to expect a decrypted device is a thing we need to
test, but it does have the unfortunate side effect where you can create
situations like this.

c7d3d69... by Michael Vogt

Merge pull request #9554 from bboozzoo/bboozzoo/uc20-reseal-sanity-checks

tests/nested/core20/gadget,kernel-reseal: add sanity checks to the reseal tests

5396622... by Maciej Borzecki

tests/nested/core20/gadget,kernel-reseal: add sanity checks to the reseal tests

Add sanity checks to make sure we are running/using the right binaries

Signed-off-by: Maciej Borzecki <email address hidden>