Skip to content

Instantly share code, notes, and snippets.

@bradleyayers
Created January 23, 2012 02:59
Show Gist options
  • Select an option

  • Save bradleyayers/1660182 to your computer and use it in GitHub Desktop.

Select an option

Save bradleyayers/1660182 to your computer and use it in GitHub Desktop.

Revisions

  1. bradleyayers revised this gist Jan 23, 2012. 1 changed file with 23 additions and 22 deletions.
    45 changes: 23 additions & 22 deletions gistfile1.xml
    Original file line number Diff line number Diff line change
    @@ -1,27 +1,28 @@
    <?xml version="1.0" encoding="UTF-8" ?>
    <!DOCTYPE busconfig PUBLIC
    "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
    "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">

    "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
    "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
    <busconfig>
    <!-- Only the root user can own the Upstart name -->
    <policy user="root">
    <allow own="com.ubuntu.Upstart" />
    </policy>
    <!-- Only the root user can own the Upstart name -->
    <policy user="root">
    <allow own="com.ubuntu.Upstart" />
    </policy>

    <!-- Allow any user to invoke all of the methods on Upstart, its jobs
    or their instances, and to get and set properties - since Upstart
    isolates commands by user. -->
    <policy context="default">
    <allow send_destination="com.ubuntu.Upstart"
    send_interface="org.freedesktop.DBus.Introspectable" />
    <allow send_destination="com.ubuntu.Upstart"
    send_interface="org.freedesktop.DBus.Properties" />
    <allow send_destination="com.ubuntu.Upstart"
    send_interface="com.ubuntu.Upstart0_6" />
    <allow send_destination="com.ubuntu.Upstart"
    send_interface="com.ubuntu.Upstart0_6.Job" />
    <allow send_destination="com.ubuntu.Upstart"
    send_interface="com.ubuntu.Upstart0_6.Instance" />
    </policy>
    <!--
    Allow any user to invoke all of the methods on Upstart, its jobs
    or their instances, and to get and set properties - since Upstart
    isolates commands by user.
    -->
    <policy context="default">
    <allow send_destination="com.ubuntu.Upstart"
    send_interface="org.freedesktop.DBus.Introspectable" />
    <allow send_destination="com.ubuntu.Upstart"
    send_interface="org.freedesktop.DBus.Properties" />
    <allow send_destination="com.ubuntu.Upstart"
    send_interface="com.ubuntu.Upstart0_6" />
    <allow send_destination="com.ubuntu.Upstart"
    send_interface="com.ubuntu.Upstart0_6.Job" />
    <allow send_destination="com.ubuntu.Upstart"
    send_interface="com.ubuntu.Upstart0_6.Instance" />
    </policy>
    </busconfig>
  2. bradleyayers revised this gist Jan 23, 2012. 1 changed file with 10 additions and 10 deletions.
    20 changes: 10 additions & 10 deletions gistfile1.xml
    Original file line number Diff line number Diff line change
    @@ -13,15 +13,15 @@
    or their instances, and to get and set properties - since Upstart
    isolates commands by user. -->
    <policy context="default">
    <allow send_destination="com.ubuntu.Upstart"
    send_interface="org.freedesktop.DBus.Introspectable" />
    <allow send_destination="com.ubuntu.Upstart"
    send_interface="org.freedesktop.DBus.Properties" />
    <allow send_destination="com.ubuntu.Upstart"
    send_interface="com.ubuntu.Upstart0_6" />
    <allow send_destination="com.ubuntu.Upstart"
    send_interface="com.ubuntu.Upstart0_6.Job" />
    <allow send_destination="com.ubuntu.Upstart"
    send_interface="com.ubuntu.Upstart0_6.Instance" />
    <allow send_destination="com.ubuntu.Upstart"
    send_interface="org.freedesktop.DBus.Introspectable" />
    <allow send_destination="com.ubuntu.Upstart"
    send_interface="org.freedesktop.DBus.Properties" />
    <allow send_destination="com.ubuntu.Upstart"
    send_interface="com.ubuntu.Upstart0_6" />
    <allow send_destination="com.ubuntu.Upstart"
    send_interface="com.ubuntu.Upstart0_6.Job" />
    <allow send_destination="com.ubuntu.Upstart"
    send_interface="com.ubuntu.Upstart0_6.Instance" />
    </policy>
    </busconfig>
  3. bradleyayers renamed this gist Jan 23, 2012. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  4. bradleyayers created this gist Jan 23, 2012.
    27 changes: 27 additions & 0 deletions Upstart.conf
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,27 @@
    <?xml version="1.0" encoding="UTF-8" ?>
    <!DOCTYPE busconfig PUBLIC
    "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
    "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">

    <busconfig>
    <!-- Only the root user can own the Upstart name -->
    <policy user="root">
    <allow own="com.ubuntu.Upstart" />
    </policy>

    <!-- Allow any user to invoke all of the methods on Upstart, its jobs
    or their instances, and to get and set properties - since Upstart
    isolates commands by user. -->
    <policy context="default">
    <allow send_destination="com.ubuntu.Upstart"
    send_interface="org.freedesktop.DBus.Introspectable" />
    <allow send_destination="com.ubuntu.Upstart"
    send_interface="org.freedesktop.DBus.Properties" />
    <allow send_destination="com.ubuntu.Upstart"
    send_interface="com.ubuntu.Upstart0_6" />
    <allow send_destination="com.ubuntu.Upstart"
    send_interface="com.ubuntu.Upstart0_6.Job" />
    <allow send_destination="com.ubuntu.Upstart"
    send_interface="com.ubuntu.Upstart0_6.Instance" />
    </policy>
    </busconfig>