Bug 699240
| Summary: | SELinux is preventing /usr/sbin/pppd from read access on the lnk_file /var/lock | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Bonzo1834 <bz1834> | ||||||
| Component: | 0xFFFF | Assignee: | Miroslav Grepl <mgrepl> | ||||||
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||
| Severity: | unspecified | Docs Contact: | |||||||
| Priority: | unspecified | ||||||||
| Version: | 15 | CC: | dwalsh, dwmw2, mgrepl, santiago.lunar.m | ||||||
| Target Milestone: | --- | ||||||||
| Target Release: | --- | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| Whiteboard: | |||||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||||
| Doc Text: | Story Points: | --- | |||||||
| Clone Of: | Environment: | ||||||||
| Last Closed: | 2011-04-28 14:43:08 UTC | Type: | --- | ||||||
| Regression: | --- | Mount Type: | --- | ||||||
| Documentation: | --- | CRM: | |||||||
| Verified Versions: | Category: | --- | |||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||
| Embargoed: | |||||||||
| Attachments: |
|
||||||||
|
Description
Bonzo1834
2011-04-24 14:29:33 UTC
restorecon -v /var/lock didn't help, so I proceeded to the next suggestion: grep pppd /var/log/audit/audit.log | audit2allow -M mypol semodule -i mypol.pp this worked ls -ldZ /var/lock Tried with: grep pppd /var/log/audit/audit.log | audit2allow -M mypol semodule -i mypol.pp And also worked like a charm :) $ ls -ldZ /var/lock lrwxrwxrwx. root root system_u:object_r:var_t:s0 /var/lock -> ../run/lock matchpathcon /var/lock $ matchpathcon /var/lock /var/lock system_u:object_r:var_lock_t:s0 Could you try it with the latest policy http://koji.fedoraproject.org/koji/buildinfo?buildID=240947 Created attachment 495227 [details]
SE alert with new policy
OK, did the following: $ semodule -d mypol to disable the self-built module Then installed selinux-policy-3.9.16-18.fc15.noarch.rpm selinux-policy-doc-3.9.16-18.fc15.noarch.rpm selinux-policy-minimum-3.9.16-18.fc15.noarch.rpm selinux-policy-mls-3.9.16-18.fc15.noarch.rpm selinux-policy-targeted-3.9.16-18.fc15.noarch.rpm from koji tried to connect with mobile broadband => no joy: /var/log/messages: Apr 27 14:56:38 a1 pppd[2182]: Can't create lock file /var/lock/LCK..ttyUSB0: Permission denied Apr 27 14:56:42 a1 setroubleshoot: SELinux is preventing /usr/sbin/pppd from read access on the lnk_file /var/lock. For complete SELinux me ssages. run sealert -l e1731787-f04d-4b19-ba1c-160c11e8b91b I attached the sealert (sealert_new.txt) in comment 9, it shows that selinux-policy-3.9.16-18.fc15 is now used. Also tried a reboot, but that didn't help either. Ok, try to run # restorecon -Rv /var Yes! restorecon did the trick, it's working now Thank you! |