2014-06-25 13:24:23 +00:00
|
|
|
#include <tunables/global>
|
|
|
|
|
2020-04-15 23:11:37 +00:00
|
|
|
profile haproxy /usr/sbin/haproxy {
|
2014-06-25 13:24:23 +00:00
|
|
|
#include <abstractions/base>
|
2020-10-24 01:23:11 +00:00
|
|
|
#include <abstractions/openssl>
|
|
|
|
#include <abstractions/ssl_certs>
|
|
|
|
#include <abstractions/ssl_keys>
|
2014-06-25 13:24:23 +00:00
|
|
|
#include <abstractions/nameservice>
|
|
|
|
capability net_bind_service,
|
|
|
|
capability setgid,
|
|
|
|
capability setuid,
|
|
|
|
capability kill,
|
|
|
|
capability sys_resource,
|
|
|
|
capability sys_chroot,
|
2020-11-02 13:16:23 +00:00
|
|
|
capability net_admin,
|
2014-06-25 13:24:23 +00:00
|
|
|
|
|
|
|
# those are needed for the stats socket creation
|
|
|
|
capability chown,
|
|
|
|
capability fowner,
|
|
|
|
capability fsetid,
|
|
|
|
|
2020-11-05 18:56:32 +00:00
|
|
|
network inet,
|
|
|
|
network inet6,
|
2014-06-25 13:24:23 +00:00
|
|
|
|
|
|
|
/etc/haproxy/* r,
|
|
|
|
|
2017-11-27 15:03:06 +00:00
|
|
|
/usr/sbin/haproxy rmix,
|
|
|
|
|
2023-05-02 10:44:53 +00:00
|
|
|
/dev/shm/haproxy_startup_logs_* rwlk,
|
|
|
|
|
2024-02-16 09:26:49 +00:00
|
|
|
# old stats socket location, for compatibility
|
2014-06-25 13:24:23 +00:00
|
|
|
/var/lib/haproxy/stats rwl,
|
|
|
|
/var/lib/haproxy/stats.*.bak rwl,
|
|
|
|
/var/lib/haproxy/stats.*.tmp rwl,
|
2024-02-16 09:26:49 +00: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 13:24:23 +00:00
|
|
|
|
2024-05-31 12:09:35 +00:00
|
|
|
# This is for the additional debug output in haproxy >= 2.9
|
|
|
|
# can be accessed with "p post_mortem" in gdb
|
2022-02-24 18:16:38 +00:00
|
|
|
/sys/devices/system/node/ r,
|
2024-05-31 12:09:35 +00: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 18:16:38 +00:00
|
|
|
|
2014-06-25 13:24:23 +00:00
|
|
|
# Site-specific additions and overrides. See local/README for details.
|
2020-10-24 01:23:11 +00:00
|
|
|
#include if exists <local/haproxy>
|
|
|
|
#include if exists <local/usr.sbin.haproxy>
|
2014-06-25 13:24:23 +00:00
|
|
|
}
|