blob: 7ad924d308795d989abb7e48a461fdbcccd19a50 [file] [log] [blame]
Jan-Frode Myklebust6b6a53d2009-03-17 21:26:43 +01001This directory includes an selinux policy for haproxy. It assumes
2the following file locations:
3
4 /usr/sbin/haproxy -- binary
5 /etc/haproxy/haproxy\.cfg -- configuration
6 /var/run/haproxy\.pid -- pid-file
7 /var/run/haproxy\.sock(.*) -- stats socket
8 /var/empty/haproxy -- chroot dir
9
10To build and load it on RHEL5 you'll need the "selinux-policy-devel" package,
11and from within this directory run:
12
13 make -f /usr/share/selinux/devel/Makefile
14 sudo semodule -i haproxy.pp
15 restorecon /usr/sbin/haproxy /etc/haproxy/haproxy.cfg /var/run/haproxy.pid /var/run/haproxy.sock*
16
17
18Feedback to Jan-Frode Myklebust <janfrode@tanso.no> is much appreciated,