3
0
mirror of https://github.com/ergochat/ergo.git synced 2026-06-25 10:07:48 +02:00

Merge pull request #2401 from tacerus/apparmor

Update AppArmor profile
This commit is contained in:
Shivaram Lingamneni 2026-05-17 14:42:18 -07:00 committed by GitHub
commit 1b40b8a43b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -9,14 +9,15 @@ profile ergo /usr/bin/ergo {
include <abstractions/nameservice>
/etc/ergo/ircd.{motd,yaml} r,
/etc/ssl/irc/{crt,key} r,
/etc/ssl/ergo/{crt,key} r,
/usr/bin/ergo mr,
/etc/ssl/{ergo,irc}/{crt,key} r,
/proc/sys/net/core/somaxconn r,
/sys/kernel/mm/transparent_hugepage/hpage_pmd_size r,
/usr/bin/ergo mr,
/usr/bin/ergo-ldap Px -> ergo-ldap,
/usr/share/ergo/languages/{,*.lang.json,*.yaml} r,
owner /run/ergo/ircd.lock rwk,
owner /var/lib/ergo/ircd.db rw,
owner /var/lib/ergo/ircd.db.*.bak w,
include if exists <local/ergo>
@ -25,7 +26,7 @@ profile ergo /usr/bin/ergo {
profile ergo-ldap /usr/bin/ergo-ldap {
include <abstractions/openssl>
include <abstractions/ssl_certs>
/usr/bin/ergo-ldap rm,
/etc/ergo/ldap.yaml r,