$ su - (select sysadm_r) # audit2spdl -a -l -vThen, policy is outputted to console. Make sure whether everything is correct. Then, when you want to add policy to file,
# cd /etc/selinux/seedit/src/policy/ # audit2spdl -a -l -o ./simplified_policy # make diffrelabelWhen you are not running auditd, use -d option instead of -a option. However, file path for allow rule is sometimes incorrect in -d option. So it is recommended to enable auditd.