7584 Commits

Author SHA1 Message Date
Michael Vogt
7fb71f6b05 Merge pull request #11787 from 3v1n0/portal-info-common-id
portal-info: Add CommonID Field
2022-05-19 09:24:09 +02:00
Michael Vogt
d6add57b49 Merge pull request #11779 from bboozzoo/bboozzoo/fde-keymgr-multiple-devs
cmd/snap-fde-keymgr: support for multiple devices and authorizations for add/remove recovery key
2022-05-18 09:52:01 +02:00
Michael Vogt
763703786c Merge pull request #11742 from valentindavid/valentindavid/recovery-trigger-uc22-fixes
cmd/snap-bootstrap: Listen to keyboard added after start and handle switch root
2022-05-18 09:51:05 +02:00
Maciej Borzecki
e276d22fa7 cmd/snap-fde-keymgr: use plural for multi-args, add validation of authorization, tweaks
Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
2022-05-17 15:43:45 +02:00
Maciej Borzecki
0ddbb9d740 Merge remote-tracking branch 'upstream/master' into bboozzoo/fde-keymgr-multiple-devs 2022-05-17 14:45:57 +02:00
Marco Trevisan
360469e6c0 portal-info: Add CommonID Field
Expose the application common ID in portal info, so that it can
be used to manage the application via Freedesktop Appplication API.
2022-05-13 17:03:27 +02:00
Philip Meulengracht
53b525628f cmd/snap: cleanup and add some doc 2022-05-12 15:20:40 +02:00
Philip Meulengracht
42306c32ea cmd/snap: remove unused err 2022-05-12 15:15:48 +02:00
Philip Meulengracht
849f75efb8 cmd/snap: replace existing model printing logic with new code 2022-05-12 15:15:47 +02:00
Maciej Borzecki
1f93180835 cmd/snap-fde-keymgr: tweaks
Thanks to @mardy for the suggestions

Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
2022-05-12 12:19:03 +02:00
Valentin David
191aba5a11 cmd/snap-bootstrap: Listen to keyboard added after start and handle switch root
Keyboard drivers and the drivers for the bus they are plugged into are
not necessarily initialized by the time udev has settled cold plug
events. That means we have to read events for new input devices and
read those keyboards.

Also because the daemon is started in initramfs and needs to write
into the file system, it needs to chroot when switch root happens.
2022-05-11 15:25:21 +02:00
Maciej Borzecki
8b48060a51 cmd/snap-fde-keymgr: support for multiple devices and authorizations for add/remove recovery key
Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
2022-05-11 12:12:55 +02:00
Maciej Borzecki
9ec4ed16af cmd/snap: join search terms passed in the command line
Thus trying to mimic what apt search does. Thus, one does not have to run:

snap find "hello world"

to narrow down the results, but can run:

snap find hello world

Fixes: https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1972910

Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
2022-05-11 08:27:11 +02:00
James Henstridge
3811ac0921 cmd/snap-seccomp: add copy_file_range to syscallsWithNegArgsMaskHi32
While the base seccomp template only compares the sixth argument to 0,
the argument is a 32-bit "unsigned int". The high half of the register
won't necessarily have been cleared, so we want the same
CompareMaskedEqual behaviour.
2022-05-05 18:04:22 +08:00
Michael Vogt
e360497064 Merge pull request #11716 from stolowski/use-seed-parallelism
snap-bootstrap, o/devicestate: use seed parallelism
2022-05-04 08:36:12 +02:00
Michael Vogt
8e645068fc Merge pull request #11729 from jhenstridge/bug-1969777
cmd/snap-update-ns: correctly set sticky bit on created directories where applicable
2022-05-04 08:35:05 +02:00
Michael Vogt
ded844b6e1 Merge remote-tracking branch 'upstream/master' into use-seed-parallelism 2022-05-03 18:19:51 +02:00
Michael Vogt
20d0355413 Merge pull request #11745 from pedronis/uc20-plus-messages
many: use UC20+/pre-UC20 in user messages as needed
2022-05-03 14:11:44 +02:00
Michael Vogt
c90b3380e4 Merge pull request #11732 from stolowski/core20-preseed/aa-features
image, cmd/snap-preseed: allow passing custom apparmor features path
2022-05-03 11:17:45 +02:00
Samuele Pedroni
7800537140 many: move recovery key responsibility to devicestate/secboot, prepare for a future with just optional recovery key
Merge pull request #11714 from pedronis/rework-recovery-keys-mgmt

The implementations in secboot are missing for now.

A follow-up will add a POST API to remove all recovery keys.
2022-04-29 14:41:35 +02:00
Samuele Pedroni
b8e364fa47 many: switch to UC20+ in user messages (instead of UC20) 2022-04-29 14:30:24 +02:00
Michael Vogt
7e80a58091 Merge pull request #11709 from mvo5/starred-developers
snap: implement "star" developers
2022-04-28 20:01:04 +02:00
Paweł Stołowski
b9037702de Merge branch 'master' into core20-preseed/aa-features 2022-04-28 18:01:19 +02:00
Samuele Pedroni
307ac40ed4 Merge remote-tracking branch 'upstream/master' into rework-recovery-keys-mgmt 2022-04-28 17:01:38 +02:00
Maciej Borzecki
ed392774c6 cmd/snap-fde-keymgr: fix a typo
Thanks to @mardy for spotting this.

Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
2022-04-28 14:05:42 +02:00