Description of problem: SELinux is preventing nm-l2tp-service from 'unlink' accesses on the file nm-xl2tpd.conf.4356. ***** Plugin catchall (100. confidence) suggests ************************** If you believe that nm-l2tp-service should be allowed unlink access on the nm-xl2tpd.conf.4356 file by default. Then you should report this as a bug. You can generate a local policy module to allow this access. Do allow this access for now by executing: # grep nm-l2tp-service /var/log/audit/audit.log | audit2allow -M mypol # semodule -i mypol.pp Additional Information: Source Context system_u:system_r:l2tpd_t:s0 Target Context system_u:object_r:NetworkManager_var_run_t:s0 Target Objects nm-xl2tpd.conf.4356 [ file ] Source nm-l2tp-service Source Path nm-l2tp-service Port <Unknown> Host (removed) Source RPM Packages Target RPM Packages Policy RPM selinux-policy-3.13.1-99.fc21.noarch Selinux Enabled True Policy Type targeted Enforcing Mode Enforcing Host Name (removed) Platform Linux (removed) 3.17.4-301.fc21.x86_64 #1 SMP Thu Nov 27 19:09:10 UTC 2014 x86_64 x86_64 Alert Count 1 First Seen 2014-12-08 02:11:06 JST Last Seen 2014-12-08 02:11:06 JST Local ID 4986ad6d-5889-47d0-8fad-f9fdf65ac80f Raw Audit Messages type=AVC msg=audit(1417972266.224:1110): avc: denied { unlink } for pid=4356 comm="nm-l2tp-service" name="nm-xl2tpd.conf.4356" dev="tmpfs" ino=59798 scontext=system_u:system_r:l2tpd_t:s0 tcontext=system_u:object_r:NetworkManager_var_run_t:s0 tclass=file permissive=0 Hash: nm-l2tp-service,l2tpd_t,NetworkManager_var_run_t,file,unlink Version-Release number of selected component: selinux-policy-3.13.1-99.fc21.noarch Additional info: reporter: libreport-2.3.0 hashmarkername: setroubleshoot kernel: 3.18.7-200.fc21.x86_64 type: libreport
*** Bug 1197430 has been marked as a duplicate of this bug. ***
commit cb40cccb4d7bec574f9fda09b673945aff042705 Author: Lukas Vrabec <lvrabec> Date: Thu Mar 5 15:21:57 2015 +0100 Allow l2tpd to manage NetworkManager pid files.
selinux-policy-3.13.1-105.6.fc21 has been submitted as an update for Fedora 21. https://admin.fedoraproject.org/updates/selinux-policy-3.13.1-105.6.fc21
Package selinux-policy-3.13.1-105.6.fc21: * should fix your issue, * was pushed to the Fedora 21 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing selinux-policy-3.13.1-105.6.fc21' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2015-3476/selinux-policy-3.13.1-105.6.fc21 then log in and leave karma (feedback).
As proposed by se-troubleshooter, a while ago I did : # grep nm-l2tp-service /var/log/audit/audit.log | audit2allow -M mypol # semodule -i mypol.pp Since, I did not encounter the pb again so I will not be able to test effectiveness of this update. Is there a way to undo the manual fix to then test your updated policy?
selinux-policy-3.13.1-105.6.fc21 has been pushed to the Fedora 21 stable repository. If problems still persist, please make note of it in this bug report.