Hide Forgot
Description of problem: The man page for httpd_selinux incorrectly states that one should use httpd_sys_content_rw_t for scripts and the daemon to have read/write on a file or directory. The correct value to use is httpd_sys_rw_content_t (note the location of 'rw' in the string). It's not a huge deal, since restorecon seems to map the files to the correct (new) values. However, it seems to make restorecon do more work, since successive 'restorecon -v' invocations will repeatedly print out 'reset' messages. Version-Release number of selected component (if applicable): selinux-policy-3.9.7-25.fc14.noarch Steps to Reproduce: 1. man httpd_selinux; find httpd_sys_content_rw_t value 2. semanage fcontext -a -t httpd_sys_content_rw_t "/somedir" 3. restorecon -v /somedir 4. restorecon -v /somedir Actual results: Step 3. restorecon -v /somedir -> restorecon reset /somedir context system_u:object_r:httpd_sys_rw_content_t:s0->system_u:object_r:httpd_sys_content_rw_t:s0 Step 4. restorecon -v /somedir -> restorecon reset /somedir context system_u:object_r:httpd_sys_rw_content_t:s0->system_u:object_r:httpd_sys_content_rw_t:s0 Expected results: Step 3. restorecon -v /somedir -> restorecon reset /somedir context system_u:object_r:httpd_sys_rw_content_t:s0->system_u:object_r:httpd_sys_content_rw_t:s0 Step 4. restorecon -v /somedir -> (no output)
Miroslav I fixed this in Rawhide, can you back port to F13/F14
Fixed in selinux-policy-3.9.7-28.fc14
selinux-policy-3.9.7-28.fc14 has been submitted as an update for Fedora 14. https://admin.fedoraproject.org/updates/selinux-policy-3.9.7-28.fc14
selinux-policy-3.9.7-28.fc14 has been pushed to the Fedora 14 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update selinux-policy'. You can provide feedback for this update here: https://admin.fedoraproject.org/updates/selinux-policy-3.9.7-28.fc14
selinux-policy-3.9.7-28.fc14 has been pushed to the Fedora 14 stable repository. If problems still persist, please make note of it in this bug report.