Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dbus api is not exposed on ubuntu touch #685

Open
jmlich opened this issue Nov 23, 2024 · 3 comments
Open

dbus api is not exposed on ubuntu touch #685

jmlich opened this issue Nov 23, 2024 · 3 comments

Comments

@jmlich
Copy link

jmlich commented Nov 23, 2024

It seems apparmor prevents creating dbus service on ubuntu touch.

Steps to reproduce

$ busctl --user get-property io.github.rinigus.PureMaps /io/github/rinigus/PureMaps/navigator io.github.rinigus.PureMaps.navigator manDist

Expected result:

s "-"

Current result:

Failed to get property manDist on interface io.github.rinigus.PureMaps.navigator: The name io.github.rinigus.PureMaps was not provided by any .service files

It seems there isn't any suitable apparmor group at https://gitlab.com/ubports/development/core/apparmor-easyprof-ubuntu/-/tree/main/data/policygroups/ubuntu/20.04

It worked when I replaced click/pure-maps.apparmor with

{
    "policy_groups": [
    ],
    "policy_version": 20.04,
    "template": "unconfined"
}

and recompiled with skip-review flag like this clickable build --arch arm64 --app --skip-review.

My use case is passing navigation instructions to PineTime and I am trying to figure out why it doesn't work. See
https://github.com/piggz/harbour-amazfish/blob/dbd7a48151712cdce9898f542998ec425b967c01/daemon/src/navigationinterface.cpp#L88C38-L88C45

@rinigus
Copy link
Owner

rinigus commented Nov 23, 2024

I remember hearing about dbus limitations on UT. Not much I can do about it on Pure Maps side. Please file it on UT bug reports (assuming that there is somewhere to report it)

@jmlich
Copy link
Author

jmlich commented Nov 23, 2024

I have created an issue at https://gitlab.com/ubports/development/core/apparmor-easyprof-ubuntu/-/issues/20

The app can be compiled and published in app store with unconfined template. To publish such app you have to ask @bhdouglass at telegram group https://open-store.io/telegram

@jonnius
Copy link
Contributor

jonnius commented Nov 24, 2024

We can't make all apps unconfined light-hearted. So far I didn't see a specific use case for the D-BUS interface on Ubuntu Touch and therefore no need to solve the issue. With your work on the smart watch support, this has changed.

I would prefer to have a policy and keep it confined. We could publish another "Pure Maps Unconfined" until it is available. I am hesitant to just make Pure Maps unconfined, but will bring the discussion into the Open Store group as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants