Advertisement
thantzinz

selinux-yum-non-default-location.txt

Oct 12th, 2019
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.78 KB | None | 0 0
  1. $#  yum install httpd yum-utils createrepo -y
  2. $#  mkdir -p /var/localrepo
  3. $#  vi /etc/httpd/conf/httpd.conf
  4. $#  yumdownloader wireshark
  5. $#  yumdownloader wireshark --resolve
  6. $#  ls
  7. $#  mv *rpm /var/localrepo/
  8. $#  vi /etc/httpd/conf/httpd.conf
  9. $#  systemctl --now enable httpd
  10. $#  firewall-cmd --list-all
  11. $#  firewall-cmd --add-port=80/tcp
  12. $#  find /etc/httpd/ -iname \*.conf
  13. $#  mv /etc/httpd/conf.d/welcome.conf{,.bak}
  14. $#  systemctl reload httpd
  15. $#  tail -f /var/log/audit/audit.log -n0 | grep AVC
  16. $#  ls -lZ -d /var/www/
  17. $#  ls -lZ -d /var/localrepo/
  18. $#  chcon -R --reference /var/www/ /var/localrepo/
  19. $#  ls -lZ -d /var/localrepo/
  20. $#  ls -lZ -d /var/localrepo/*
  21. $#  for i in /var/localrepo/repodata/* ; do auditctl -w $i -p war -k aa ; done
  22. $#  ausearch -k aa | aureport -f -i
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement