forked from pool/haproxy
deb5095fcd
- Set /run/haproxy as the default PID file and socket location (more canonical location for transient files) - Allow custom stats socket names (allows users to define multiple sockets with different access levels as /run/haproxy/stats-*.sock) OBS-URL: https://build.opensuse.org/request/show/1144067 OBS-URL: https://build.opensuse.org/package/show/server:http/haproxy?expand=0&rev=299
47 lines
1.1 KiB
Plaintext
47 lines
1.1 KiB
Plaintext
#include <tunables/global>
|
|
|
|
profile haproxy /usr/sbin/haproxy {
|
|
#include <abstractions/base>
|
|
#include <abstractions/openssl>
|
|
#include <abstractions/ssl_certs>
|
|
#include <abstractions/ssl_keys>
|
|
#include <abstractions/nameservice>
|
|
capability net_bind_service,
|
|
capability setgid,
|
|
capability setuid,
|
|
capability kill,
|
|
capability sys_resource,
|
|
capability sys_chroot,
|
|
capability net_admin,
|
|
|
|
# those are needed for the stats socket creation
|
|
capability chown,
|
|
capability fowner,
|
|
capability fsetid,
|
|
|
|
network inet,
|
|
network inet6,
|
|
|
|
/etc/haproxy/* r,
|
|
|
|
/usr/sbin/haproxy rmix,
|
|
|
|
/dev/shm/haproxy_startup_logs_* rwlk,
|
|
|
|
# old stats socket location, for compatibility
|
|
/var/lib/haproxy/stats rwl,
|
|
/var/lib/haproxy/stats.*.bak rwl,
|
|
/var/lib/haproxy/stats.*.tmp rwl,
|
|
# new stats socket location
|
|
/run/haproxy/stats*.sock{,*.{bak,tmp}} rwl,
|
|
|
|
/{,var/}run/haproxy/pid rw,
|
|
/{,var/}run/haproxy/master.sock* rwlk,
|
|
|
|
/sys/devices/system/node/ r,
|
|
|
|
# Site-specific additions and overrides. See local/README for details.
|
|
#include if exists <local/haproxy>
|
|
#include if exists <local/usr.sbin.haproxy>
|
|
}
|