aboutsummaryrefslogtreecommitdiff
path: root/examples/skype.syd-1
blob: 8d9daa67f5693b6a87fc89f0f54523a21f6995ed (plain)
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
# sydbox profile for Skype4

#
# Sandboxing
#
core/sandbox/exec:deny
core/sandbox/read:deny
core/sandbox/write:deny
core/sandbox/network:deny

core/whitelist/per_process_directories:true
core/whitelist/successful_bind:true
core/whitelist/unsupported_socket_families:true

core/abort/decision:killall
core/panic/decision:kill
core/panic/exit_code:-1
core/violation/decision:deny
core/violation/exit_code:-1
core/violation/raise_fail:false
core/violation/raise_safe:false

core/trace/follow_fork:true
core/trace/exit_wait_all:true
core/trace/magic_lock:off
core/trace/interrupt:while_wait
core/trace/use_seccomp:true
core/trace/use_seize:true
core/trace/use_toolong_hack:true

core/match/case_sensitive:true
core/match/no_wildcard:literal

#
# /dev
#
whitelist/read+/dev
whitelist/read+/dev/urandom
whitelist/read+/dev/stdout
whitelist/read+/dev/stderr
whitelist/write+/dev/tty*
whitelist/write+/dev/pts/***
whitelist/read+/dev/snd/***
whitelist/write+/dev/snd/***
whitelist/read+/dev/video*
whitelist/write+/dev/video*

#
# /proc & /sys
#
whitelist/read+/proc/cpuinfo
whitelist/read+/proc/meminfo
whitelist/read+/proc/stat
whitelist/read+/proc/net
whitelist/read+/proc/net/arp
whitelist/read+/proc/net/route
whitelist/read+/proc/net/unix
whitelist/read+/proc/sys/vm/overcommit_memory
whitelist/read+/proc/sys/kernel/osrelease
whitelist/read+/proc/sys/kernel/ostype
whitelist/read+/sys/devices/system/cpu/online
whitelist/read+/sys/devices/system/cpu
whitelist/read+/sys/devices/system/cpu/cpu?/cpufreq/scaling_cur_freq
whitelist/read+/sys/devices/system/cpu/cpu?/cpufreq/scaling_max_freq
whitelist/read+/sys/devices/virtual/dmi/id/board_name
whitelist/read+/sys/devices/virtual/dmi/id/board_version
whitelist/read+/sys/devices/virtual/dmi/id/board_vendor
whitelist/read+/sys/devices/virtual/dmi/id/product_name
whitelist/read+/sys/devices/virtual/dmi/id/product_version
whitelist/read+/sys/devices/virtual/dmi/id/sys_vendor
whitelist/read+/sys/devices/*/*/*/power_supply/ACAD/***
whitelist/read+/sys/devices/*/*/*/*/*/*/modalias
whitelist/read+/sys/devices/*/*/*/*/*/*/video4linux/video?/dev
whitelist/read+/sys/devices/*/*/*/*/*/idProduct
whitelist/read+/sys/devices/*/*/*/*/*/idVendor
whitelist/read+/sys/devices/*/*/*/*/*/speed

#
# nscd (glibc)
#
whitelist/network/connect+unix:/var/run/nscd/socket
whitelist/network/connect+unix:/run/nscd/socket

#
# /etc
#
whitelist/read+/etc/asound.conf
whitelist/read+/etc/group
whitelist/read+/etc/hosts
whitelist/read+/etc/host.conf
whitelist/read+/etc/ld.so.cache
whitelist/read+/etc/ld.so.preload
whitelist/read+/etc/nsswitch.conf
whitelist/read+/etc/resolv.conf
whitelist/read+/etc/ssl/certs/***
whitelist/read+/etc/fonts/***
whitelist/read+/etc/gtk-2.0/***
whitelist/read+/etc/pango/***

#
# Libraries
#
whitelist/read+/lib*/***
whitelist/read+/usr/lib*/***

#
# Share dirs
#
whitelist/read+/usr/share/alsa/***
whitelist/read+/usr/share/ca-certificates/***
whitelist/read+/usr/share/locale/***
whitelist/read+/usr/share/zoneinfo/***
whitelist/read+/usr/share/fonts/***
whitelist/read+/usr/share/icons/***
whitelist/read+/usr/share/pixmaps/***
whitelist/read+/usr/share/texmf-dist/fonts/***
whitelist/read+/usr/share/X11/***

#
# Xorg/X11 & dbus
#
whitelist/network/connect+unix-abstract:/tmp/.X11-unix/**
whitelist/network/connect+unix-abstract:/tmp/.ICE-unix/**
whitelist/network/connect+unix-abstract:/tmp/dbus-*
whitelist/network/connect+unix:/run/dbus/system_bus_socket
whitelist/network/connect+unix:/var/run/dbus/system_bus_socket

#
# /tmp
#
whitelist/read+/tmp/qtsingleapp-*
whitelist/write+/tmp/qtsingleapp-*
whitelist/network/bind+unix:/tmp/qtsingleapp-*
whitelist/network/connect+unix:/tmp/qtsingleapp-*

#
# Skype
#
whitelist/read+/etc/Skype.conf
whitelist/read+/etc/Skype/***
whitelist/read+/usr/*bin/skype
whitelist/exec+/usr/*bin/skype
whitelist/exec+/usr/lib*/skype/skype
whitelist/exec+/opt/skype/skype
whitelist/read+/opt/skype/***
whitelist/read+/usr/share/skype/***

#
# Host specific configuration under /home
#
whitelist/read+/home/*/.Xauthority
whitelist/read+/home/*/.ICEauthority
whitelist/read+/home/*/.gtkrc*
whitelist/read+/home/*/.config/Trolltech.conf
whitelist/write+/home/*/.icons/***

#
# Skype specific configuration
#
whitelist/read+/home/*/.asoundrc
whitelist/read+/home/*/.config/Skype/***
whitelist/write+/home/*/.config/Skype/***
whitelist/read+/home/*/.Skype/***
whitelist/write+/home/*/.Skype/***

#
# Temporary files & caches
#
whitelist/read+/home/*/.cache/fontconfig/***
whitelist/write+/home/*/.cache/fontconfig/***
whitelist/read+/home/*/.compose-cache/***
whitelist/write+/home/*/.compose-cache/***

#
# Networking
#
# note: allow IPv4 and IPv6 by default since Skype operates on a P2P model.
# 	You may further restrict access by only allowing access to SKYPENET,
# 	Akamai and Microsoft Corporation together with your contact's IP
# 	address.
#
whitelist/network/bind+LOOPBACK@0
whitelist/network/connect+inet:0.0.0.0/0@0-65000
whitelist/network/connect+inet6:::0/0@0-65000

#
# Allow some external programs
#
whitelist/exec+/usr/*bin/xdg-open
exec/resume_if_match+/usr/*bin/xdg-open