Bug 904375
| Summary: | SELinux is preventing /usr/sbin/xl2tpd from 'read' accesses on the file nm-xl2tpd.conf.1882. | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Фукидид <fukidid> | ||||
| Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
| Severity: | unspecified | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 18 | CC: | dominick.grift, dwalsh, mgrepl | ||||
| Target Milestone: | --- | Keywords: | Reopened | ||||
| Target Release: | --- | ||||||
| Hardware: | x86_64 | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | abrt_hash:45405fbd9fb5f4f939a88c660e1f300009a39690f2b3e77db08d56f2b016a76e | ||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2013-03-07 10:09:46 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
Фукидид
2013-01-26 13:52:11 UTC
Could you also attach AVC msg which you are getting? Did you submit it with this report? SELinux is preventing /usr/sbin/xl2tpd from read access on the file nm-xl2tpd.conf.2172.
***** Plugin catchall (100. confidence) suggests ***************************
If вы считаете, что xl2tpd следует разрешить доступ read к nm-xl2tpd.conf.2172 file по умолчанию.
Then рекомендуется создать отчет об ошибке.
Чтобы разрешить доступ, можно создать локальный модуль политики.
Do
чтобы разрешить доступ, выполните:
# grep xl2tpd /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.2172 [ file ]
Source xl2tpd
Source Path /usr/sbin/xl2tpd
Port <Unknown>
Host localhost.localdomain
Source RPM Packages xl2tpd-1.3.1-10.fc18.x86_64
Target RPM Packages
Policy RPM selinux-policy-3.11.1-73.fc18.noarch
Selinux Enabled True
Policy Type targeted
Enforcing Mode Enforcing
Host Name localhost.localdomain
Platform Linux localhost.localdomain 3.7.4-204.fc18.x86_64
#1 SMP Wed Jan 23 16:44:29 UTC 2013 x86_64 x86_64
Alert Count 1
First Seen 2013-01-28 14:42:06 FET
Last Seen 2013-01-28 14:42:06 FET
Local ID 31718065-e191-45c9-bacc-4b9e64c704e2
Raw Audit Messages
type=AVC msg=audit(1359373326.439:335): avc: denied { read } for pid=2189 comm="xl2tpd" name="nm-xl2tpd.conf.2172" dev="tmpfs" ino=101873 scontext=system_u:system_r:l2tpd_t:s0 tcontext=system_u:object_r:NetworkManager_var_run_t:s0 tclass=file
type=SYSCALL msg=audit(1359373326.439:335): arch=x86_64 syscall=open success=no exit=EACCES a0=61e028 a1=0 a2=1b6 a3=238 items=0 ppid=2172 pid=2189 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 ses=4294967295 tty=(none) comm=xl2tpd exe=/usr/sbin/xl2tpd subj=system_u:system_r:l2tpd_t:s0 key=(null)
Hash: xl2tpd,l2tpd_t,NetworkManager_var_run_t,file,read
audit2allow
#============= l2tpd_t ==============
allow l2tpd_t NetworkManager_var_run_t:file read;
audit2allow -R
#============= l2tpd_t ==============
allow l2tpd_t NetworkManager_var_run_t:file read;
Looks like there is a pretty good connection between the apps. Fixed in git. Backported. selinux-policy-3.11.1-74.fc18 has been submitted as an update for Fedora 18. https://admin.fedoraproject.org/updates/selinux-policy-3.11.1-74.fc18 Package selinux-policy-3.11.1-74.fc18: * should fix your issue, * was pushed to the Fedora 18 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.11.1-74.fc18' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2013-1693/selinux-policy-3.11.1-74.fc18 then log in and leave karma (feedback). Не получается. # su -c 'yum update --enablerepo=updates-testing selinux-policy-3.11.1-74.fc18' Загружены модули: langpacks, presto Совпадений с selinux-policy-3.11.1-74.fc18 не найдено. Пакета с названием selinux-policy-3.11.1-74.fc18 не найдено. Пакетов, отмеченных для обновления, нет. Установил selinux-policy-3.11.1-74.fc18, но не работает. 1) SELinux is preventing /usr/libexec/nm-l2tp-service from name_bind access on the udp_socket . 2) SELinux is preventing /usr/sbin/pppd from read access on the file nm-ppp-options.xl2tpd.6974. 3) SELinux is preventing /usr/libexec/nm-l2tp-service from using the signal access on a process. 4) SELinux is preventing /usr/libexec/nm-l2tp-service from using the sigkill access on a process. *** Bug 907012 has been marked as a duplicate of this bug. *** *** Bug 907013 has been marked as a duplicate of this bug. *** *** Bug 907015 has been marked as a duplicate of this bug. *** Could you also attach AVC msgs? ausearch -m avc -su l2tpd_t Also I added some fixes.
commit 4c752571162cc4cb26063ff4ee0bae4a6a66b509
Author: Miroslav Grepl <mgrepl>
Date: Mon Feb 4 12:16:39 2013 +0100
Allow l2tpd_t to all signal perms
Created attachment 692689 [details]
# ausearch -m avc -su l2tpd_t
selinux-policy-3.11.1-74.fc18 has been pushed to the Fedora 18 stable repository. If problems still persist, please make note of it in this bug report. Проблема повторилась. Установлен selinux-policy-3.11.1-82.fc18. Пытался использовать NetworkManager-l2tp. Package: (null) OS Release: Fedora release 18 (Spherical Cow) #============= l2tpd_t ============== #!!!! This avc is allowed in the current policy allow l2tpd_t NetworkManager_var_run_t:file read; |