| 1 |
This directory includes an selinux policy for haproxy. It assumes |
| 2 |
the 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 |
|
| 10 |
To build and load it on RHEL5 you'll need the "selinux-policy-devel" package, |
| 11 |
and 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 |
|
| 18 |
Feedback to Jan-Frode Myklebust <[email protected]> is much appreciated, |