Merge pull request #2122 from jprovaznik/template

Include ganesha dbus config file
pull/2127/head
Sébastien Han 2017-10-31 15:30:50 +01:00 committed by GitHub
commit 4cbda6680f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 23 additions and 2 deletions

View File

@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?> <!-- -*- XML -*- -->
<!DOCTYPE busconfig PUBLIC
"-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
"http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
<busconfig>
<!-- Only root can own the service -->
<policy user="root">
<allow own="org.ganesha.nfsd"/>
<allow send_destination="org.ganesha.nfsd"/>
<allow send_destination="org.ganesha.nfsd"
send_interface="org.freedesktop.DBus.Introspectable"/>
<allow send_destination="org.ganesha.nfsd"
send_interface="org.ganesha.nfsd.CBSIM"/>
<allow send_destination="org.ganesha.nfsd"
send_interface="org.ganesha.nfsd.admin"/>
</policy>
</busconfig>

View File

@ -40,8 +40,8 @@
- name: create dbus service file
become: true
template:
src: "{{ role_path }}/templates/org.ganesha.nfsd.conf"
copy:
src: "org.ganesha.nfsd.conf"
dest: /etc/dbus-1/system.d/org.ganesha.nfsd.conf
owner: "root"
group: "root"