Description of problem: Running restorecon SELinux is preventing restorecon from using the 'mac_admin' capabilities. ***** Plugin catchall (100. confidence) suggests ************************** If you believe that restorecon should have the mac_admin capability by default. Then sie sollten dies als Fehler melden. Um diesen Zugriff zu erlauben, können Sie ein lokales Richtlinien-Modul erstellen. Do allow this access for now by executing: # ausearch -c 'restorecon' --raw | audit2allow -M my-restorecon # semodule -X 300 -i my-restorecon.pp Additional Information: Source Context unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1 023 Target Context unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1 023 Target Objects Unknown [ capability2 ] Source restorecon Source Path restorecon Port <Unbekannt> Host (removed) Source RPM Packages Target RPM Packages Policy RPM selinux-policy-3.14.1-13.fc28.noarch Selinux Enabled True Policy Type targeted Enforcing Mode Enforcing Host Name (removed) Platform Linux (removed) 4.16.0-0.rc5.git0.1.fc28.x86_64 #1 SMP Mon Mar 12 20:10:40 UTC 2018 x86_64 x86_64 Alert Count 270 First Seen 2018-03-16 12:00:45 CET Last Seen 2018-03-16 12:06:53 CET Local ID dfa9fea9-51c2-4685-98d8-61a6cc2dbe44 Raw Audit Messages type=AVC msg=audit(1521198413.133:843): avc: denied { mac_admin } for pid=5069 comm="restorecon" capability=33 scontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tcontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tclass=capability2 permissive=0 Hash: restorecon,unconfined_t,unconfined_t,capability2,mac_admin Version-Release number of selected component: selinux-policy-3.14.1-13.fc28.noarch Additional info: component: selinux-policy reporter: libreport-2.9.3 hashmarkername: setroubleshoot kernel: 4.16.0-0.rc5.git0.1.fc28.x86_64 type: libreport Potential duplicate: bug 703441
*** Bug 1557350 has been marked as a duplicate of this bug. ***
Hi, Did you install clean Fedora 28 or you upgraded from Fedora 27? Thanks, Lukas.
I upgraded from 27 and after that I got SELinux warnings that recommended running restorecon, which I did, which generated more warnings. After that finished and I upgraded to latest package versions, it seems to work fine, though.
*** This bug has been marked as a duplicate of bug 1558816 ***
*** Bug 1788455 has been marked as a duplicate of this bug. ***