How to retain default selinux context for apache log files ?

Solution Verified - Updated -

Issue

  • How to retain default selinux context as httpd_log_t for apache log files without writing a new file context ?
  • Will selinux policy be overwritten after adding allow httpd_t httpd_log_t:file { read } to the httpd_log_t type ?

Environment

  • Red Hat Enterprise Linux 6.5
  • Apache
  • Selinux

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.