nerdexam
Oracle

1Z0-105 · Question #19

Examine the sequence: # sealert -l dda34207-61fd-4de2-831d-039c79270864 SELinux is preventing /usr/sbin/httpd from read access on the file /var/www/manual/new_features_2_2.html. ** Plugin restorecon…

The correct answer is B. Allow httpd to read user content by using the setsebool command. See the full explanation below for the reasoning.

Question

Examine the sequence: # sealert -l dda34207-61fd-4de2-831d-039c79270864 SELinux is preventing /usr/sbin/httpd from read access on the file /var/www/manual/new_features_2_2.html. ***** Plugin restorecon (85.9 confidence) suggests ***** If you want to fix the label. /var/www/manual/new_features_2_2.html default label should be httpd_sys_content_t. Then you can run restorecon. Do # /sbin/restorecon -v /var/www/manual/new_features_2_2.html ***** Plugin catchall_boolen (7.33 confidence) suggests ***** If you want to allow httpd to read user content Then you must tell SELinux about this by enabling the 'httpd_read_user_content' boolean. You can read 'user_selinux' man page for more details. Do setsebool -P httpd_read_user_content 1 What action must you take for fix this problem?

Options

  • ARelabel the file in question by using the restorecon command.
  • BAllow httpd to read user content by using the setsebool command.
  • CAllow httpd to read home directories by using the setsebool command.
  • DReport a bug.
  • EGenerate a local policy by using the audit2allow command.

How the community answered

(29 responses)
  • A
    3% (1)
  • B
    72% (21)
  • C
    7% (2)
  • D
    3% (1)
  • E
    14% (4)

Community Discussion

No community discussion yet for this question.

Full 1Z0-105 Practice