Allowing fail2ban to read logs on a NFS on a SELinux enabled CentOS 7 server

The title says it all, I need fail2ban to monitor logs on my NFS but it’s getting blocked by SELinux. Here is an example from selinux logs: time->Thu Jan 9 03:56:45 2020 type=PROCTITLE msg=audit(1578560205.306:97): proctitle=2F7573722F62696E2F707974686F6E002D73002F7573722F62696E2F6661696C3262616E2D736572766572002D7866007374617274 type=SYSCALL msg=audit(1578560205.306:97): arch=c000003e syscall=257 success=yes exit=3 a0=ffffffffffffff9c a1=7f86f8001410 a2=90800 a3=0 items=0 ppid=1 pid=1145 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0…

Details

Docker command can start a mysql container, but docker-compose.yml can’t, what are possible causes?

I want to start a mysql container using centos/mysql-56-centos7 image. There are two ways: 1) docker run -d –name mysql -e MYSQL_ROOT_PASSWORD=123456 centos/mysql-56-centos7 this way works fine 2) docker-compose.yml version: ‘2’ services: mysql: image: centos/mysql-56-centos7:latest restart: always container_name: mysql and in the .env file, I set MYSQL_ROOT_PASSWORD=123456 but the starting always fails: CONTAINER ID IMAGE…

Details