dbus

package
v0.0.0-...-41dd8df Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 17, 2016 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

Package dbus implements interaction between snappy and dbus.

Snappy creates dbus configuration files that describe how various services on the system bus can communicate with other peers.

Each configuration is an XML file containing <busconfig>...</busconfig>. Particular security snippets define whole <policy>...</policy> entires. This is explained in detail in https://dbus.freedesktop.org/doc/dbus-daemon.1.html

Package dbus implements interaction between snappy and dbus.

Snappy creates dbus configuration files that describe how various services on the system bus can communicate with other peers.

Each configuration is an XML file containing <busconfig>...</busconfig>. Particular security snippets define whole <policy>...</policy> entires.

NOTE: This interacts with systemd. TODO: Explain how this works (security).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SafePath

func SafePath(s string) string

SafePath returns a string suitable for use in a DBus object

Types

type Backend

type Backend struct{}

Backend is responsible for maintaining DBus policy files.

func (*Backend) Name

func (b *Backend) Name() string

Name returns the name of the backend.

func (*Backend) Remove

func (b *Backend) Remove(snapName string) error

Remove removes dbus configuration files of a given snap.

This method should be called after removing a snap.

func (*Backend) Setup

func (b *Backend) Setup(snapInfo *snap.Info, devMode bool, repo *interfaces.Repository) error

Setup creates dbus configuration files specific to a given snap.

DBus has no concept of a complain mode so devMode is not supported

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL