| 1 | echo "Starting dbus" |
| 2 | cat <<EOC | sudo tee /etc/dbus-1/system.d/ganesha.nfsd.conf >/dev/null |
| 3 | <!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN" |
| 4 | "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd"> |
| 5 | <busconfig> |
| 6 | |
| 7 | <!-- Allow the user running Ganesha to own the service name --> |
| 8 | <policy user="root"> |
| 9 | <allow own="org.ganesha.nfsd"/> |
| 10 | </policy> |
| 11 | |
| 12 | <!-- Allow everyone to invoke methods on Ganesha --> |
| 13 | <policy context="default"> |
| 14 | <allow send_destination="org.ganesha.nfsd"/> |
| 15 | </policy> |
| 16 | |
| 17 | </busconfig> |
| 18 | EOC |
| 19 | |
| 20 | sudo mkdir -p /var/run/dbus |
| 21 | sudo /usr/bin/dbus-uuidgen --ensure |
| 22 | sudo /usr/bin/dbus-daemon --system --fork |