~ondrak/ondras-snaps/+git/snapd:uc20-edge

Last commit made on 2021-03-22
Get this branch:
git clone -b uc20-edge https://git.launchpad.net/~ondrak/ondras-snaps/+git/snapd

Branch merges

Branch information

Name:
uc20-edge
Repository:
lp:~ondrak/ondras-snaps/+git/snapd

Recent commits

a4daf34... by Ian Johnson

tests/lib/fde-setup-hook: check that fde-setup-request is base64 in the hook

This acts as another real-world test, that the JSON sent over the wire when a
client wants to decode it as a string, they get a valid base64 string that when
decoded results in the same exact byte sequence as if a Go client decodes
directly into a []byte as the test does.

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

18e77f5... by Ian Johnson

o/{device,hook}state: encode fde-setup-request key as base64 string

The spec states that the encryption key in the fde-setup-request JSON structure
that is passed to the hook via `snapctl` should be a string encoded as base64.

We missed the fact that this code was not doing that, since it was refactored
rather late in the cycle, and the existing test (and also the real world hook)
are both written in Go, and thus take advantage of Go's advanced JSON decoding
which handles both the case of

```json
{
   ...
   "key": [96, 34, 56, 54, ... ],
   ...
}
```

```json
{
   ...
   "key": "ABCDE==",
   ...
}
```

the same when decoding. Actually because of this fact, we can in fact change the
request we send to conform to the spec without breaking the existing client and
test.

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

dcd71b4... by Oliver Grawert

interfaces/tee: add TEE/OPTEE interface (#9307)

To access the TEE (Trusted Execution Environment) subsystem in Linux access to /dev/tee0 and /dev/teepriv0 is necessary for client applications. This PR adds a new "tee" interface that grants access to these devices to client applications that have the interface connected (this is for example required for ARM devices using ARM Trusted Firmware with a secure watchdog timer. If the timer does not get triggered on a regular schedule from a secure-wdt user space daemon, the system will hard-reboot after a certain time defined in the bootloader code at build time).

More details and other use-cases of TEE are documented at:
https://www.kernel.org/doc/Documentation/tee.txt

9e7f083... by Maciej Borzecki

Merge pull request #9959 from stolowski/validation-sets/refresh-asserts

o/snapstate: update validation sets assertions with auto-refresh

bcf4187... by Michael Vogt

vendor: update go-tpm2/secboot to latest version

Update go-tpm2/secboot to latest version and also update our secboot code to update to the new API.

35c76d6... by Samuele Pedroni

seed: ReadSystemEssentialAndBetterEarliestTime (#10005)

ReadSystemEssentialAndBetterEarliestTime retrieves in one go
information about the model and essential snaps of the given types
for the Core 20 recovery system seed specified by seedDir and label
(which cannot be empty).
It can operate even if current system time is unreliable by taking
a earliestTime lower bound for current time.
It returns as well an improved lower bound by considering appropriate
assertions in the seed.

* asserts: Batch.CommitToAndObserve

have a variant of CommitTo that supports a callback to consider each
assertion immediately after it has been added to the database, at
which point it also verified

baafe03... by Sergio Cazzolato

tests: replace while commands with the retry tool (#10038)

* Replace while commands with the retry tool

The idea is to avoid this infinite loops and use the retry tool instead.

* Waiting up to 1 minutes for snapd listening

* Fix quoting to prevent command to be evaludated initially

* Disable shellcheck

* Update retry command to pass when the nc command works

* Update to iterate 60 seconds again

6269869... by Paweł Stołowski

Merge branch 'master' into validation-sets/refresh-asserts

487705c... by Paweł Stołowski

Add TODO about enforce mode and moving Current (thanks pedronis).

c4a4ea6... by Michael Vogt

Merge pull request #10041 from bboozzoo/bboozzoo/interfaces-tests-fix-snap-device-helper-path-again

interfaces/builtin: update unit tests to use proper distro's libexecdir