lyoncore / fwupd-snapcraft Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
I think this is the best place to post this, after seeing this comment on the fwupd
repository.
I am not sure if my approach here is correct (not sure if there is another way to use to the uefi-fw-tools
from my snap).
I have a snap that needs permission to the fwupd
service to update the firmware on a device running Ubuntu Core 16. My snap is connected to the uefi-fw-tools:fwupd
slot and ships the uefi-fw-tools
snap in order to use the fwupdmgr
command. When running of the following commands:
fwupdmgr get-devices
'' get-updates
'' verify
AppArmor is complaining I do not have the required permissions:
$ uefi-fw-tools.fwupdmgr get-updates
mkdir: cannot create directory '/var/snap/uefi-fw-tools/50/run/user/1000': Permission denied
Rejected send message, 7 matched rules; type="method_call", sender=":1.2206" (uid=1000 pid=952928 comm="/snap/uefi-fw-tools/50/bin/fwupdmgr get-updates " label="snap.uefi-fw-tools.fwupdmgr (enforce)") interface="org.freedesktop.fwupd" member="GetUpdates" error name="(unset)" requested_reply="0" destination=":1.64" (uid=0 pid=1550 comm="/snap/uefi-fw-tools/50/libexec/fwupd/fwupd " label="snap.uefi-fw-tools.fwupd (enforce)")
updater-snap
) that uses the fwupd
service through the fwupd
plug with strict
confinement.fwupd
plug to the uefi-fw-tools:fwupd
slotsnap run --shell updater-snap.cli
fwupdmgr get-devices
Commands run successfully
Application | Version |
---|---|
uefi-fw-tools | latest/beta |
Ubuntu Core | 16 |
Snapcraft | 4.8 |
Additional info:
updater-snap
as root and following the above steps does allow for the command to run. However, as this is a snap that is running on a remote device this is not an option.I hope I included all the info :)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.