| Summary: | SELinux is preventing openssl from 'write' accesses on the file uptime. | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Jakub Bittner <j.bittner> |
| Component: | selinux-policy | Assignee: | Lukas Vrabec <lvrabec> |
| Status: | CLOSED WONTFIX | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 25 | CC: | dominick.grift, dwalsh, lvrabec, mgrepl, mrunge, plautrba, pmoore, ssekidde, tcfxfzoi |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Unspecified | ||
| Whiteboard: | abrt_hash:aac247a4deff2bbd4e61444bc2d3330d7082790ebe21b6ee15fc5cc7b89c91b1;VARIANT_ID=workstation; | ||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2017-05-11 14:41: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: | |
Did the container work? This looks like something we should block. I believe it would not be allowed without the SELinux issue. In Container # echo 0 >> /proc/uptime sh: /proc/uptime: Permission denied Outside the container #setenforce 0 Back inside the container # echo 0 >> /proc/uptime sh: echo: write error: Input/output error in my case, there is no container running, or docker service started. Some tools told the process to run as container_t? systemd-nspawn? runc? systemd? docker? ... (In reply to Daniel Walsh from comment #3) > Some tools told the process to run as container_t? systemd-nspawn? runc? > systemd? docker? ... I have docker installed and was starting the service from time to time. But usually it is disabled. systemd is there, of course. We see AVC where is Source domain *container_t* these domains are for containers so I believe this is container related. I agree that this should *NOT* be allowed. Closing this BZ as WONTFIX. Jakub, If you have anything broken on your system feel free to re-open this issue. What kind of containers are you running on your system? |
Description of problem: running docker-compose SELinux is preventing openssl from 'write' accesses on the file uptime. ***** Plugin catchall (100. confidence) suggests ************************** If you believe that openssl should be allowed write access on the uptime 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: # ausearch -c 'openssl' --raw | audit2allow -M my-openssl # semodule -X 300 -i my-openssl.pp Additional Information: Source Context system_u:system_r:container_t:s0:c94,c744 Target Context system_u:object_r:proc_t:s0 Target Objects uptime [ file ] Source openssl Source Path openssl Port <Unknown> Host (removed) Source RPM Packages Target RPM Packages Policy RPM selinux-policy-3.13.1-222.fc25.noarch Selinux Enabled True Policy Type targeted Enforcing Mode Enforcing Host Name (removed) Platform Linux (removed) 4.8.6-300.fc25.x86_64+debug #1 SMP Tue Nov 1 12:21:53 UTC 2016 x86_64 x86_64 Alert Count 6 First Seen 2016-11-16 20:13:06 CET Last Seen 2016-11-16 20:13:06 CET Local ID 384753e7-7c94-4c89-a5cf-ebc82796006f Raw Audit Messages type=AVC msg=audit(1479323586.498:622): avc: denied { write } for pid=13587 comm="openssl" name="uptime" dev="proc" ino=4026532004 scontext=system_u:system_r:container_t:s0:c94,c744 tcontext=system_u:object_r:proc_t:s0 tclass=file permissive=0 Hash: openssl,container_t,proc_t,file,write Version-Release number of selected component: selinux-policy-3.13.1-222.fc25.noarch Additional info: reporter: libreport-2.8.0 hashmarkername: setroubleshoot kernel: 4.8.6-300.fc25.x86_64+debug type: libreport