2014-06-25 15:24:23 +02:00
|
|
|
#include <tunables/global>
|
|
|
|
|
2020-04-16 01:11:37 +02:00
|
|
|
profile haproxy /usr/sbin/haproxy {
|
2014-06-25 15:24:23 +02:00
|
|
|
#include <abstractions/base>
|
2020-10-24 03:23:11 +02:00
|
|
|
#include <abstractions/openssl>
|
|
|
|
#include <abstractions/ssl_certs>
|
|
|
|
#include <abstractions/ssl_keys>
|
2014-06-25 15:24:23 +02:00
|
|
|
#include <abstractions/nameservice>
|
|
|
|
capability net_bind_service,
|
|
|
|
capability setgid,
|
|
|
|
capability setuid,
|
|
|
|
capability kill,
|
|
|
|
capability sys_resource,
|
|
|
|
capability sys_chroot,
|
2020-11-02 14:16:23 +01:00
|
|
|
capability net_admin,
|
2014-06-25 15:24:23 +02:00
|
|
|
|
|
|
|
# those are needed for the stats socket creation
|
|
|
|
capability chown,
|
|
|
|
capability fowner,
|
|
|
|
capability fsetid,
|
|
|
|
|
2020-11-05 19:56:32 +01:00
|
|
|
network inet,
|
|
|
|
network inet6,
|
2014-06-25 15:24:23 +02:00
|
|
|
|
|
|
|
/etc/haproxy/* r,
|
|
|
|
|
2017-11-27 16:03:06 +01:00
|
|
|
/usr/sbin/haproxy rmix,
|
|
|
|
|
2023-05-02 12:44:53 +02:00
|
|
|
/dev/shm/haproxy_startup_logs_* rwlk,
|
|
|
|
|
2014-06-25 15:24:23 +02:00
|
|
|
/var/lib/haproxy/stats rwl,
|
|
|
|
/var/lib/haproxy/stats.*.bak rwl,
|
|
|
|
/var/lib/haproxy/stats.*.tmp rwl,
|
|
|
|
/{,var/}run/haproxy.pid rw,
|
2019-06-18 14:09:30 +02:00
|
|
|
/{,var/}run/haproxy-master.sock* rwlk,
|
2014-06-25 15:24:23 +02:00
|
|
|
|
2022-02-24 19:16:38 +01:00
|
|
|
/sys/devices/system/node/ r,
|
|
|
|
|
2014-06-25 15:24:23 +02:00
|
|
|
# Site-specific additions and overrides. See local/README for details.
|
2020-10-24 03:23:11 +02:00
|
|
|
#include if exists <local/haproxy>
|
|
|
|
#include if exists <local/usr.sbin.haproxy>
|
2014-06-25 15:24:23 +02:00
|
|
|
}
|