-
Notifications
You must be signed in to change notification settings - Fork 71
/
xmpp-client.apparmor
48 lines (39 loc) · 1.17 KB
/
xmpp-client.apparmor
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#
# AppArmor xmpp-client profile for Ubuntu 11.04 and later
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of version 2 of the GNU General Public
# License published by the Free Software Foundation.
#
#include <tunables/global>
/usr/bin/xmpp-client {
#include <abstractions/consoles>
#include <abstractions/ssl_certs>
# IPv4 TCP
network inet stream,
# We disable the following to enforce Tor usage
# IPv4 UDP for DNS resolution
#network inet dgram,
# Allow reading of /etc/xmpp-client/
/etc/xmpp-client/*/** r,
# Allow reading/writing of xmpp-client dot files
/home/*/.xmpp-client rw,
/home/*/.xmpp-client* rw,
# Allow reading of libs and /tmp
/etc/ld.so.cache r,
# Random number generation requires these two
/dev/random r,
/dev/urandom r,
# Various xmpp-client denials that make life easier
/etc/ssl/certs/ca-certificates.crt r,
/proc/sys/net/core/somaxconn r,
/etc/localtime r,
# Allow mapping of shared libraries
/lib/* rm,
/lib32/* rm,
/lib64/* rm,
/usr/lib/* rm,
/lib/x86_64-linux-gnu/* rm,
# We'll allow xmpp-client to write debug logs
/tmp/xmpp-client*.log rw,
}