Import upstream v0.16.22, stripped
Upstream commit: 474dd0229cb20cf513036619781ed97bd8073c3f Enterprise-only files removed or emptied: 63 Enterprise-only snippets removed: 117 in 50 files Dangling module declarations removed: 5 Cargo edits turning enterprise off: 14 Verification: clean Enterprise feature gates left for rebuilt features: 19 in 18 files Produced by tools/fork/strip.py. The full report is in docs/fork/strip-reports/ on main.
This commit is contained in:
@@ -0,0 +1,59 @@
|
||||
#include <tunables/global>
|
||||
|
||||
profile stalwart flags=(attach_disconnected) {
|
||||
#include <abstractions/base>
|
||||
#include <abstractions/nameservice>
|
||||
#include <abstractions/openssl>
|
||||
|
||||
# Allow network access
|
||||
network inet stream,
|
||||
network inet6 stream,
|
||||
network inet dgram,
|
||||
network inet6 dgram,
|
||||
|
||||
# Outgoing access to port 25 and 443
|
||||
network tcp,
|
||||
network udp,
|
||||
owner /proc/*/net/if_inet6 r,
|
||||
owner /proc/*/net/ipv6_route r,
|
||||
|
||||
# Full write access to /opt/stalwart
|
||||
/opt/stalwart/** rwk,
|
||||
|
||||
# Allow creating directories under /tmp
|
||||
/tmp/ r,
|
||||
/tmp/** rwk,
|
||||
|
||||
# Allow binding to specific ports
|
||||
network inet stream bind port 25,
|
||||
network inet stream bind port 587,
|
||||
network inet stream bind port 465,
|
||||
network inet stream bind port 143,
|
||||
network inet stream bind port 993,
|
||||
network inet stream bind port 110,
|
||||
network inet stream bind port 995,
|
||||
network inet stream bind port 4190,
|
||||
network inet stream bind port 443,
|
||||
network inet stream bind port 8080,
|
||||
network inet6 stream bind port 25,
|
||||
network inet6 stream bind port 587,
|
||||
network inet6 stream bind port 465,
|
||||
network inet6 stream bind port 143,
|
||||
network inet6 stream bind port 993,
|
||||
network inet6 stream bind port 110,
|
||||
network inet6 stream bind port 995,
|
||||
network inet6 stream bind port 4190,
|
||||
network inet6 stream bind port 443,
|
||||
network inet6 stream bind port 8080,
|
||||
|
||||
# Allow UDP port 7911
|
||||
network inet dgram bind port 7911,
|
||||
network inet6 dgram bind port 7911,
|
||||
|
||||
# Basic system access
|
||||
/usr/bin/stalwart rix,
|
||||
/etc/stalwart/** r,
|
||||
/var/log/stalwart/** w,
|
||||
|
||||
# Additional permissions might be needed depending on specific requirements
|
||||
}
|
||||
Reference in New Issue
Block a user