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

Error: Connection ":1.1162" is not allowed to own the service #181

Open
blackxMan opened this issue Dec 1, 2017 · 3 comments
Open

Error: Connection ":1.1162" is not allowed to own the service #181

blackxMan opened this issue Dec 1, 2017 · 3 comments

Comments

@blackxMan
Copy link

Hi every body, at first i thank all contributor on this project.
so when i want to start new service i got this error
Error: Connection ":1.1162" is not allowed to own the service "nodejs.dbus.PMTABounceManager" due to security policies in the configuration file

This is a portion of my code
`
DBus = require('dbus');

process.env.DISPLAY = ':0';
process.env.DBUS_SESSION_BUS_ADDRESS = 'unix:path=/run/dbus/system_bus_socket';

var dbus = DBus.getBus('system');

// Create a new service, object and interface
var service = DBus.registerService('system', 'nodejs.dbus.PMTABounceManager');
var obj = service.createObject('/nodejs/dbus/PMTABounceManager');
var iface = obj.createInterface('nodejs.dbus.PMTABounceManager.PusherInterface');

`

@blackxMan
Copy link
Author

i fix that by adding security policy

@space2pacman
Copy link

i fix that by adding security policy

What policies have you added?

@space2pacman
Copy link

space2pacman commented Feb 29, 2024

i fix that by adding security policy

What policies have you added?

  1. edit /usr/share/dbus-1/system.conf

add to policy

<policy context="default">
  <allow own="*"/>
</policy>
  1. reload config

dbus-send --print-reply --system --type=method_call --dest=org.freedesktop.DBus org.freedesktop.DBus.ReloadConfig

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

2 participants