Skip to content

Instantly share code, notes, and snippets.

View teg's full-sized avatar

Tom Gundersen teg

  • Red Hat
  • London, UK
View GitHub Profile
@teg
teg / policy.config
Created June 26, 2018 14:45
Sample policy
<busconfig>
<policy user="root">
<!-- Root clients can do everything -->
<allow send_interface="org.freedesktop.systemd1"/>
</policy>
<policy context="default">
<deny send_interface="org.freedesktop.systemd1"/>
<!-- Other users can only call Foo -->
CPUFreqUtility-1.4.5-5.fc28.src.rpm
GConf2-3.2.6-20.fc28.src.rpm
NetworkManager-1.10.10-1.fc28.src.rpm
NetworkManager-1.10.6-1.fc28.src.rpm
NetworkManager-fortisslvpn-1.2.8-2.fc28.src.rpm
NetworkManager-iodine-1.2.0-6.fc28.src.rpm
NetworkManager-l2tp-1.2.10-1.fc28.src.rpm
NetworkManager-libreswan-1.2.4-6.fc28.src.rpm
NetworkManager-openconnect-1.2.4-9.fc28.src.rpm
NetworkManager-openvpn-1.8.2-1.fc28.src.rpm
@teg
teg / dbus-broker.patch
Created March 1, 2018 11:24
[PATCH] add dbus-broker support to at-spi2
commit 58e98827a58006bbeed4fbdb8b4e6607050af17d
Author: Tom Gundersen <teg@jklm.no>
Date: Thu Mar 1 12:00:09 2018 +0100
bus-launch: add dbus-broker support
If dbus-broker is enabled at compile-time and found at run-time prefer that
over dbus-daemon. This should not be a functional change.
Signed-off-by: Tom Gundersen <teg@jklm.no>
@teg
teg / c-utf8.c
Created February 15, 2018 10:43
/*
* UTF-8 Implementation
*
* For highlevel documentation of the API see the header file and the docbook
* comments. This implementation is inspired in part by Rust's std::str.
*
* So far only validation helpers are implemented, as those seem the most
* critical.
*/