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,
|
|
|
|
|
2024-02-16 10:26:49 +01:00
|
|
|
# old stats socket location, for compatibility
|
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,
|
2024-02-16 10:26:49 +01:00
|
|
|
# new stats socket location
|
|
|
|
/run/haproxy/stats*.sock{,*.{bak,tmp}} rwl,
|
|
|
|
|
|
|
|
/{,var/}run/haproxy/pid rw,
|
|
|
|
/{,var/}run/haproxy/master.sock* rwlk,
|
2014-06-25 15:24:23 +02:00
|
|
|
|
2024-05-31 14:09:35 +02:00
|
|
|
# This is for the additional debug output in haproxy >= 2.9
|
|
|
|
# can be accessed with "p post_mortem" in gdb
|
2022-02-24 19:16:38 +01:00
|
|
|
/sys/devices/system/node/ r,
|
2024-05-31 14:09:35 +02:00
|
|
|
/sys/devices/system/node/*/cpumap r,
|
|
|
|
/sys/devices/system/cpu/online r,
|
|
|
|
/sys/class/dmi/id/sys_vendor r,
|
|
|
|
/sys/class/dmi/id/product_family r,
|
|
|
|
/sys/class/dmi/id/product_name r,
|
|
|
|
/sys/class/dmi/id/board_vendor r,
|
|
|
|
/sys/firmware/devicetree/base/model r,
|
|
|
|
/sys/class/dmi/id/board_name r,
|
|
|
|
/proc/2/status r,
|
|
|
|
/proc/cpuinfo r,
|
|
|
|
# end of debug.c files
|
2022-02-24 19:16:38 +01:00
|
|
|
|
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
|
|
|
}
|