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

"user" has no permissions to write to org.ofono on system bus by default #372

Closed
MerlijnWajer opened this issue May 21, 2020 · 12 comments
Closed

Comments

@MerlijnWajer
Copy link
Member

We need to add this:

  <policy user="user">
    <allow send_destination="org.ofono"/>
  </policy>

to the right place here /etc/dbus-1/system.d/ofono.conf .

Perhaps we can make another fine there, and extend the ofono behaviour?

cc @parazyd @pavelmachek

@IMbackK
Copy link
Collaborator

IMbackK commented May 21, 2020

we should probably avoid hard coding permissions to a user name if possible and provide permissions based on groups instead.

we dont want leste to stay single user forever.

@MerlijnWajer
Copy link
Member Author

On Maemo the user is always called user, so I am not sure if that makes sense.

@MerlijnWajer
Copy link
Member Author

There are a lot of scripts and daemons that still start/run as user, for example.

@MerlijnWajer
Copy link
Member Author

Like, in general I agree, but let's not make that an issue here. ;)

@IMbackK
Copy link
Collaborator

IMbackK commented May 22, 2020

ok maybe we should open a seperate issue somewhere else. anyways not introducing new dependacnys on the username will make later migration easyer. most of the stuff currently started via ini scripts explicetly as user should be started by a session manager. like just a maemo-users gid with all the extra permissions we need over the stock debian groups would be enough for now

@MerlijnWajer
Copy link
Member Author

Well, yeah. But I think that should probably be a separate issue and I'd personally not be ready to tackle it until I have phone that is usable as daily driver. ;)

@pavelmachek
Copy link

pavelmachek commented May 25, 2020 via email

@MerlijnWajer
Copy link
Member Author

The problem with that approach is that we only package a special ofono for the Droid 4. We don't for the VMs and for the N900. So then we have to fork ofono for all platforms.

@pavelmachek
Copy link

pavelmachek commented May 25, 2020 via email

@pavelmachek
Copy link

pavelmachek commented May 25, 2020 via email

@MerlijnWajer
Copy link
Member Author

I think so too. We're working on this, and also doing it for some other device specific configs.

@MerlijnWajer
Copy link
Member Author

Fixed in maemo-leste/leste-config@780adae

In a day or so (max), apt install leste-config-<DEVICE> will fix this problem.

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

No branches or pull requests

4 participants