Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[dbus] Allow running nfcd under root
For debugging.
- Loading branch information
Showing
3 changed files
with
14 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,15 @@ | ||
<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN" | ||
"http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd"> | ||
<busconfig> | ||
<policy user="nfc"> | ||
<policy user="root"> | ||
<allow own="org.neard"/> | ||
<allow send_destination="org.neard"/> | ||
<allow send_interface="org.neard.NDEFAgent"/> | ||
<allow send_interface="org.neard.PHDC.Manager"/> | ||
<allow send_interface="org.neard.PHDC.Agent"/> | ||
<allow send_interface="org.neard.HandoverAgent"/> | ||
</policy> | ||
<policy at_console="true"> | ||
<allow send_destination="org.neard"/> | ||
<policy user="nfc"> | ||
<allow own="org.neard"/> | ||
</policy> | ||
<policy context="default"> | ||
<deny send_destination="org.neard"/> | ||
<allow send_destination="org.neard" send_interface="org.neard.Adapter"/> | ||
<allow send_destination="org.neard" send_interface="org.neard.Record"/> | ||
<allow send_destination="org.neard" send_interface="org.neard.Tag"/> | ||
</policy> | ||
</busconfig> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,16 @@ | ||
<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN" | ||
"http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd"> | ||
<busconfig> | ||
<policy user="root"> | ||
<allow own="org.sailfishos.nfc.daemon"/> | ||
</policy> | ||
<policy user="nfc"> | ||
<allow own="org.sailfishos.nfc.daemon"/> | ||
</policy> | ||
<policy context="default"> | ||
<allow send_destination="org.sailfishos.nfc.daemon" | ||
send_interface="org.sailfishos.nfc.Daemon"/> | ||
<allow send_destination="org.sailfishos.nfc.daemon" | ||
send_interface="org.nemomobile.Logger"/> | ||
</policy> | ||
</busconfig> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters