Fedora Account System
Red Hat Associate
Red Hat Customer
Created attachment 1283836 [details] footnotes for above pastebin links containing their respective content Following chat log from #fedora regarding the issue. WRT the pastebins, I am attaching a follow up file wherein the referenced pastebin entries are added like footnotes [8] for reference in case they expire before this bug gets addressed. [8] like this <WebDragon> any SELinux gurus around? #fedora-selinux is a little dead the past day or so, and I need to get this thing up and running soon so I can get work done and get paid <WebDragon> I got rulesets that should be working and are not .. they were working fine in the previously installed F21, but something's weird with F25 <WebDragon> getting read errors on a directory clearly marked httpd_user_content_t all the way up the line <WebDragon> perms are right, contexts are right, rules match, sypher WebDragon: pipe your audit.log into "audit2why". Should give you an idea of the failure cause. <WebDragon> https://paste.fedoraproject.org/paste/8fcd9ydKlOm3rJUJEtzCpl5M1UNdIGYhyRLivL9gydE= journalctl message [1] <WebDragon> https://paste.fedoraproject.org/paste/JZha35Hiw0nZ4U9ngddNil5M1UNdIGYhyRLivL9gydE= details from the sealert -l detailed in the above [2] <WebDragon> https://paste.fedoraproject.org/paste/Ok1K4sddSyiovwqP~M3gLF5M1UNdIGYhyRLivL9gydE= httpd booleans [3] <WebDragon> https://paste.fedoraproject.org/paste/2364NkbIk3T2AbQg50dEK15M1UNdIGYhyRLivL9gydE= semanage fcontext -l |grep webdragon [4] <WebDragon> I am trying to avoid enabling httpd_unified, obviously <WebDragon> and I reiterate, these settings were working previously on F21 and were worked out with the assistance of #fedora-selinux originally sypher WebDragon: Did you try doing what I suggested? <WebDragon> sypher: actually I did more like (sudo ausearch -c '/usr/sbin/httpd' --raw |audit2why) grift WebDragon: hmmm interesting <WebDragon> the odd thing is, it wants either httpd_unified, which I desire to avoid for obvious reasons, or httpd_read_user_content, which I had previously (in F21) been setting to off .. has something changed there between f21 - F25 > <grift> does httpd_user_content_t exist?: seinfo -t | grep httpd_user_content_t <WebDragon> heya grift :) ltns <grift> if the type exists are there any rules associated with it?: sesearch -A -t httpd_user_content_t <WebDragon> grift: seems to grift can you fpaste the output of the latter command WebDragon? <WebDragon> grift: way ahead of ya, buddy :) sudo sesearch -A -t httpd_user_content_t |fpaste => https://da.gd/T2Tft [5] grift WebDragon could you do one more of those except with -ASCT instead of -A? <WebDragon> sure. sec... <WebDragon> sudo sesearch -ASCT -t httpd_user_content_t |fpaste => https://da.gd/y0Yrw [6] <WebDragon> god I love how rxvt-unicode lets me ctrl-alt-c to copy and ctrl-alt-v to paste <WebDragon> it is the very model of a modern major terminal * WebDragon valiantly refrains from breaking into song <grift> look like they broken that ... <grift> hmm so i suppose we can try fixing it should be too hard * WebDragon is all ears. I gotta get the new F25 install up and running with all my stuff, so I can get back to work and get paid again. been on this most of the weekend and still not done <grift> i think this might have "broken" it: https://github.com/fedora-selinux/selinux-policy-contrib/commit/96d0844580906ae4d4ddfd3577f4aa936f1084f1 <WebDragon> hmm. I cannot offhand remember the exact reason I was disabling httpd_read_user_content <WebDragon> but there _was_ a reason <WebDragon> and it worked without that enabled <grift> yes too coarse <grift> any how trying to digest this so bear with me <WebDragon> but enable_homedirs was set to on <WebDragon> ok, take your time. I got time for a quick smoke break? <grift> no <grift> i think i got it <WebDragon> whups, ok <grift> enable_homedirs only allows httpd_t type associated processes to traver ~ * WebDragon . o O{ I'm glad someone around here is a genius with this stuff, cuz I sure aint, yet... } <grift> so that should be on <grift> any how this is the problem <grift> read_files_pattern(httpd_t, httpd_user_content_type, httpd_user_content_type) <grift> so: <grift> cat >> myfix.te <<EOF <grift> policy_module(myfix,1.0.0) <grift> gen_require(\` type httpd_t; attribute httpd_user_content_type; ') <grift> allow httpd_t httpd_user_content_type:dir list_dir_perms; <grift> EOF <grift> make -f /usr/share/selinux/devel/Makefile myfix.pp <grift> sudo semodule -i myfix.pp <grift> this will allow httpd_t type associated processes to list all directories with a type associated with "httpd_user_content_type" type attribute <grift> to see which types are associated with the httpd_user_content_type type attribute: seinfo -xthttpd_user_content_type <grift> e.g. the module above will allow the events from this paste: https://paste.fedoraproject.org/paste/8fcd9ydKlOm3rJUJEtzCpl5M1UNdIGYhyRLivL9gydE= <grift> however this commit is not proper: https://github.com/fedora-selinux/selinux-policy-contrib/commit/96d0844580906ae4d4ddfd3577f4aa936f1084f1 <grift> so you might want to file a bugzilla with that commit and with your avc denials and then you might want to include also your "quickfix" <grift> the quickfix is probably also not complete but it should probably fix your issues <WebDragon> ( sudo seinfo -xthttpd_user_content_type ) returns nothing <grift> o sry <grift> -xa <grift> seinfo -xahttpd_user_content_type <WebDragon> https://da.gd/38WO [7] <WebDragon> look like what you expected ? <grift> yes <grift> so httpd_t is allowed to list dirs associated with any of these types <grift> which makes sense <WebDragon> yeah I can get on bugzilla, and reference that commit with the bug report <grift> except for the htaccess type since these shouldnt be any dirs with htaccess type <grift> but its not big deal <WebDragon> lemme test whether the quickfix worked. (should be only a moment as I have a nice little dnsmasq + virtual host setup for website testing) <grift> but yes that commit was obviously not thoroughly tested .... <WebDragon> tadaa! yes, it worked <WebDragon> thank you muchly, as always, grift. your skill with this is greatly appreciated <grift> youre welcome
why does bugzilla not consider the = at the end to be part of the url when it clearly IS, and there's no spaces between, and it's a valid url character ? You can't click the urls above, but if you copy them with the = at the end they work.
I see the denials related to Apache's userdirs on F26 as well.
This message is a reminder that Fedora 25 is nearing its end of life. Approximately 4 (four) weeks from now Fedora will stop maintaining and issuing updates for Fedora 25. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '25'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 25 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete.
since this has been confirmed for F26 by Anthony Messina, I am bumping the version
This message is a reminder that Fedora 26 is nearing its end of life. Approximately 4 (four) weeks from now Fedora will stop maintaining and issuing updates for Fedora 26. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '26'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 26 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete.
Can anyone confirm or refute this for Fedora 27 before the bug expires ?
This message is a reminder that Fedora 27 is nearing its end of life. On 2018-Nov-30 Fedora will stop maintaining and issuing updates for Fedora 27. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '27'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 27 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete.
Fedora 27 changed to end-of-life (EOL) status on 2018-11-30. Fedora 27 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. If you are unable to reopen this bug, please file a new report against the current release. If you experience problems, please add a comment to this bug. Thank you for reporting this bug and we are sorry it could not be fixed.