Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
cmd,client,daemon: expose "force devmode" in sysinfo #3542
Conversation
zyga
requested a review
from
chipaca
Jun 29, 2017
|
Looks good, thanks! |
| + // in place how we can dynamically retrieve these information from | ||
| + // snapd we will use this here. | ||
| + if release.ReleaseInfo.ForceDevMode() { | ||
| + m["confinement"] = "none" |
zyga
Jun 29, 2017
Contributor
It's none for the POV of the user. We don't want to drill down to the "this or that" details.
Conan-Kudo
Jun 29, 2017
Contributor
I don't know if it's a great idea to make it like that. It's a more negative lie than the current one. Can we say something like "basic" or "full" confinement?
|
This field is an enum right, rather than a free-form string? (Asking for documentation and snapd-glib implementation purposes). |
codecov-io
commented
Jun 29, 2017
•
Codecov Report
@@ Coverage Diff @@
## master #3542 +/- ##
==========================================
+ Coverage 76.8% 76.83% +0.02%
==========================================
Files 379 379
Lines 26285 26290 +5
==========================================
+ Hits 20189 20199 +10
+ Misses 4304 4297 -7
- Partials 1792 1794 +2
Continue to review full report at Codecov.
|
|
This is required for Fedora because without this change GNOME Software shows all snaps as confined. As this is not true in Fedora they want this information so snaps are correctly marked as not confined (the default for RPM packages). |
| + // in place how we can dynamically retrieve these information from | ||
| + // snapd we will use this here. | ||
| + if release.ReleaseInfo.ForceDevMode() { | ||
| + m["confinement"] = "none" |
zyga
Jun 29, 2017
Contributor
It's none for the POV of the user. We don't want to drill down to the "this or that" details.
Conan-Kudo
Jun 29, 2017
Contributor
I don't know if it's a great idea to make it like that. It's a more negative lie than the current one. Can we say something like "basic" or "full" confinement?
mvo5
requested a review
from
niemeyer
Jun 30, 2017
|
Anything blocking this other than the CI build? |
|
@robert-ancell I think it's just CI now, I think tests will pass now, the Linode problem was fixed yesterday by Gustavo. |
|
I fixed the tests, it should go green soon. |
zyga commentedJun 29, 2017
The GNOME software center would like to show appopriate icons if a snap
application is confined and while each snap shows its confinement
information the whole system may be unable to offer effective
confinement. This patch adds a "confinement" key to the sysinfo
interface and switches the existing "snap debug confinement" command to
use it, rather than implement the logic in the client.
Signed-off-by: Zygmunt Krynicki zygmunt.krynicki@canonical.com