Bug 669490

Summary: Typo: Missing a newline in example code for Q 1.2
Product: [Fedora] Fedora Documentation Reporter: Kevin Cole <kevin.cole>
Component: selinux-faqAssignee: Glen Rundblom <grundblom>
Status: CLOSED WONTFIX QA Contact: Karsten Wade <kwade>
Severity: medium Docs Contact:
Priority: low    
Version: develCC: grundblom, kevin.cole
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-11-03 04:44:34 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Kevin Cole 2011-01-13 19:23:29 UTC
I believe there is a typo in
http://docs.fedoraproject.org/en-US/Fedora/13/html/SELinux_FAQ/index.html#faq-entry-public_html

I think there is a newline missing from the example which reads:

  ls -Z -d public_html/
  drwxrwxr-x auser auser user_u:object_r:user_home_t public_html
- chcon -R -t httpd_user_content_t public_html/ ls -Z -d public_html/
  drwxrwxr-x auser auser user_u:object_r:httpd_user_content_t public_html/
  ls -Z public_html/
  -rw-rw-r-- auser auser user_u:object_r:httpd_user_content_t bar.html
  -rw-rw-r-- auser auser user_u:object_r:httpd_user_content_t baz.html
  -rw-rw-r-- auser auser user_u:object_r:httpd_user_content_t foo.html

The 3rd line above should actually become the 3rd and 4th lines. It should read:

  ls -Z -d public_html/
  drwxrwxr-x auser auser user_u:object_r:user_home_t public_html
+ chcon -R -t httpd_user_content_t public_html/
+ ls -Z -d public_html/
  drwxrwxr-x auser auser user_u:object_r:httpd_user_content_t public_html/
  ls -Z public_html/
  -rw-rw-r-- auser auser user_u:object_r:httpd_user_content_t bar.html
  -rw-rw-r-- auser auser user_u:object_r:httpd_user_content_t baz.html
  -rw-rw-r-- auser auser user_u:object_r:httpd_user_content_t foo.html

Comment 1 Glen Rundblom 2015-11-03 04:44:34 UTC
The Selinux FAQ  looks to be deprecated and replaced by the SELinux User's and Administrator's Guide. Fixing this really old guide does not look to be necessary due to the SELinux User's and Administrator's Guide being kept current.