Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
many: derive implicit slots from interface meta-data #3370
a4d7713
de4b080
500f934
f4a686a
| @@ -72,6 +72,8 @@ func init() { | ||
| name: "account-control", | ||
| summary: accountControlSummary, | ||
| description: accountControlDescription, | ||
| + implicitOnCore: true, | ||
zyga
Contributor
|
||
| + implicitOnClassic: true, | ||
| connectedPlugAppArmor: accountControlConnectedPlugAppArmor, | ||
| connectedPlugSecComp: accountControlConnectedPlugSecComp, | ||
| reservedForOS: true, | ||
| @@ -19,6 +19,10 @@ | ||
| package builtin | ||
| +import ( | ||
| + "github.com/snapcore/snapd/release" | ||
| +) | ||
| + | ||
| const fuseSupportSummary = `allows access to the FUSE file system` | ||
| const fuseSupportConnectedPlugSecComp = ` | ||
| @@ -72,11 +76,14 @@ deny /etc/fuse.conf r, | ||
| ` | ||
| func init() { | ||
| + // Ubuntu 14.04 does not support the fuse-support interface. | ||
| registerIface(&commonInterface{ | ||
| name: "fuse-support", | ||
| summary: fuseSupportSummary, | ||
| + implicitOnCore: true, | ||
| + implicitOnClassic: !(release.ReleaseInfo.ID == "ubuntu" && release.ReleaseInfo.VersionID == "14.04"), | ||
jdstrand
Contributor
|
||
| + reservedForOS: true, | ||
| connectedPlugAppArmor: fuseSupportConnectedPlugAppArmor, | ||
| connectedPlugSecComp: fuseSupportConnectedPlugSecComp, | ||
| - reservedForOS: true, | ||
| }) | ||
| } | ||
Is there/will there ever be a case where we have
implicitOnCore: false, implicitOnClassic: true? The old code hadimplicitandimplicitOnlyOnClassiconly. Mostly wondering. Also wondering if:implicit: All,implicit: CoreOnly,implicit: ClassicOnlymight look nicer (i.e. using bits).