]> git.netwichtig.de Git - user/henk/code/inspircd.git/blob - make/template/apparmor
Use IsCTCP in blockcolor for ignoring CTCPs.
[user/henk/code/inspircd.git] / make / template / apparmor
1 %platform linux
2 #
3 # InspIRCd -- Internet Relay Chat Daemon
4 #
5 #   Copyright (C) 2020-2021 Sadie Powell <sadie@witchery.services>
6 #
7 # This file is part of InspIRCd.  InspIRCd is free software: you can
8 # redistribute it and/or modify it under the terms of the GNU General Public
9 # License as published by the Free Software Foundation, version 2.
10 #
11 # This program is distributed in the hope that it will be useful, but WITHOUT
12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
13 # FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
14 # details.
15 #
16 # You should have received a copy of the GNU General Public License
17 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
18 #
19
20 # To use this file move it to /etc/apparmor.d/inspircd
21
22 #include <tunables/global>
23
24 @BINARY_DIR@/inspircd {
25         #include <abstractions/base>
26         #include <abstractions/nameservice>
27
28         capability net_bind_service,
29         capability setgid,
30         capability setuid,
31         capability sys_resource,
32
33         @BINARY_DIR@/inspircd ixr,
34         @CONFIG_DIR@/** rw,
35         @DATA_DIR@/** rw,
36         @MODULE_DIR@/ r,
37         @MODULE_DIR@/core_*.so mr,
38         @MODULE_DIR@/m_*.so mr,
39         @LOG_DIR@/** w,
40         @RUNTIME_DIR@/** rw,
41
42         # Required by the ldap module:
43         #include <abstractions/ldapclient>
44
45         # Required by the mysql module:
46         #include <abstractions/mysql>
47 }