| Summary: | SELinux is preventing accounts-daemon from 'unlink' accesses on the file gdm. | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | krp <bigkrp> |
| Component: | selinux-policy | Assignee: | Lukas Vrabec <lvrabec> |
| Status: | CLOSED DUPLICATE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 24 | CC: | dominick.grift, dwalsh, lvrabec, mgrepl, plautrba, pmoore, ssekidde |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Unspecified | ||
| Whiteboard: | abrt_hash:f1600f8b2b54a1744152554d06cb61139721fc7b7890f31409dcaa5324e32c26;VARIANT_ID=workstation; | ||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-11-07 19:53:05 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
*** This bug has been marked as a duplicate of bug 1391385 *** |
Description of problem: I just turn off SELinux reboot, then turn on SELinux, reboot, and have this issue SELinux is preventing accounts-daemon from 'unlink' accesses on the file gdm. ***** Plugin catchall_labels (83.8 confidence) suggests ******************* If you want to allow accounts-daemon to have unlink access on the gdm file Then необходимо изменить метку на gdm Do # semanage fcontext -a -t FILE_TYPE 'gdm' where FILE_TYPE is one of the following: accountsd_var_lib_t, xdm_etc_t. Then execute: restorecon -v 'gdm' ***** Plugin catchall (17.1 confidence) suggests ************************** If вы считаете, что accounts-daemon следует разрешить доступ unlink к gdm file по умолчанию. Then рекомендуется создать отчет об ошибке. Чтобы разрешить доступ, можно создать локальный модуль политики. Do allow this access for now by executing: # ausearch -c 'accounts-daemon' --raw | audit2allow -M my-accountsdaemon # semodule -X 300 -i my-accountsdaemon.pp Additional Information: Source Context system_u:system_r:accountsd_t:s0 Target Context system_u:object_r:unlabeled_t:s0 Target Objects gdm [ file ] Source accounts-daemon Source Path accounts-daemon Port <Unknown> Host (removed) Source RPM Packages Target RPM Packages Policy RPM selinux-policy-3.13.1-191.19.fc24.noarch Selinux Enabled True Policy Type targeted Enforcing Mode Permissive Host Name (removed) Platform Linux (removed) 4.7.9-200.fc24.x86_64 #1 SMP Thu Oct 20 14:26:16 UTC 2016 x86_64 x86_64 Alert Count 1 First Seen 2016-11-01 14:41:26 EET Last Seen 2016-11-01 14:41:26 EET Local ID 23f8137c-d3a1-485b-9b2a-9dcc4f8425e3 Raw Audit Messages type=AVC msg=audit(1478004086.449:168): avc: denied { unlink } for pid=1324 comm="accounts-daemon" name="gdm" dev="sda5" ino=810151 scontext=system_u:system_r:accountsd_t:s0 tcontext=system_u:object_r:unlabeled_t:s0 tclass=file permissive=1 Hash: accounts-daemon,accountsd_t,unlabeled_t,file,unlink Version-Release number of selected component: selinux-policy-3.13.1-191.19.fc24.noarch Additional info: reporter: libreport-2.7.2 hashmarkername: setroubleshoot kernel: 4.7.9-200.fc24.x86_64 type: libreport