Re: Removing obsolete selinux setup

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 01/18/2015 04:58 PM, Pete Stieber wrote:
> I received an answer that worked on the fedora forums.
>
> 1. Edit the file
> /etc/selinux/targeted/modules/active/file_contexts.local and
> comment/fix the wrong contexts.
>
> In my case this meant changing httpd_mediawiki_rw_content_t to
> mediawiki_rw_content_t.  Then I used
>
> # semanage fcontext -a -t httpd_sys_rw_content_t '/etc/dokuwiki'
> # semanage fcontext -a -t httpd_sys_rw_content_t
> '/etc/dokuwiki/users.auth.php'
> # semanage fcontext -a -t httpd_sys_rw_content_t
> '/etc/dokuwiki/local.php'
> # restorecon -R /etc/dokuwiki
>
> to get the files setup properly.
>
> Seems like the dokuwiki selinux package should be setup to do
> something similar.
>
> Pete
A better label should have been

semanage fcontext -a -t httpd_sys_rw_content_t '/etc/dokuwiki(/.*?)'

This would allow apache processes to write to any file/directory under
/etc/dokuwiki.

I would argue this is might be a bad design of dokuwiki, applictions
should not be writing their config files.
If these are not config files, they should be in /var/lib/dokuwiki.


-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org




[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux