~mvo/snapd/+git/snapd-mvo:changes-v2-follow

Last commit made on 2023-06-12
Get this branch:
git clone -b changes-v2-follow https://git.launchpad.net/~mvo/snapd/+git/snapd-mvo

Branch merges

Branch information

Name:
changes-v2-follow
Repository:
lp:~mvo/snapd/+git/snapd-mvo

Recent commits

53fc490... by Michael Vogt

WIP

ce612b1... by Miguel Pires

timeutil: check error result in test

Adds an error assertion and replaces a deferred restore with
testutil.Backup (follow-up of #12859).

Signed-off-by: Miguel Pires <email address hidden>

b73965e... by Miguel Pires

bootloader: remove naked return

Removes a naked return that the latest version of golangci-lint
complains about.

Signed-off-by: Miguel Pires <email address hidden>

b447044... by tim smeets

Add flipper zero to u2f devices under existing STMicro based products

9c79c60... by Michael Vogt

spread: add apparmor version as part of the debug output

42bcf10... by Oliver Calder

interfaces/builtin: added zfs mount options to mount-control

Signed-off-by: Oliver Calder <email address hidden>

e32b0fe... by Alex Murray

timeutil: fix tests to run in non-UTC timezones (#12859)

* timeutil: fix tests to run in non-UTC timezones

TestParseSchedule() has always failed for me - unless I set TZ=UTC before
running go test, since one of the tested time intervals encompasses a daylight
savings time transition here in my local timezone and so the result is different
in this case. Consequently, since this test always fails, building the snapd deb
or snap also fails for me locally. Fix this by forcing golang to use the UTC
timezone when running these tests, regardless of how they were invoked.

Signed-off-by: Alex Murray <email address hidden>
Co-authored-by: Miguel Pires <email address hidden>

a860e35... by Sergio Costas

interfaces/audio: remove write permissions in pulse folder (#12864)

Currently, any application that connects to the audio-playback or
the pulseaudio insterfaces, have write permissions to the pulse/
folder. This means that a snapped malicious application would be
able to delete the socket and put its own, being able to read the
audio of any other snapped application.

This patch removes those permissions.

* Remove unneeded rules

The "owner /run/pulse/native/ rwk" rule is already managed by a
similar previous one. Also, there is no need to allow to link the
pulse folder.

Tested both in Firefox and Telegram, and everything still works
fine.

35f7c14... by Michael Vogt

interface: allow /sys/devices/platform based gpio paths (#12816)

We have a bugreport where even with an active gpio-control interface
the gpio devices cannot be accessed. The path in question is:
```
/sys/devices/platform/INT33FC:02/gpio/gpio346/direction
```

Hower we only allow:
```
/sys/class/gpio/gpio[0-9]*/{active_low,direction,value,edge} rw,
```
in our gpio-control policy.

To fix that issue this commit allows gpio prefixes that start
with /sys/devices/platform instead.

* interfaces: add comment about /sys/devices/platform/*/gpio/gpio[0-9]*/ in gpio-control

f91f68e... by MichaƂ Sawicz

opengl: allow libdrm data files (#12694)

* opengl: allow libdrm data files

* opengl: be explicit about amdgpu.ids

---------

Co-authored-by: Michael Vogt <email address hidden>