Bug 1281437
Summary: | ValueError when install chromium package | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Tomas Popela <tpopela> |
Component: | policycoreutils | Assignee: | Petr Lautrbach <plautrba> |
Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 23 | CC: | dwalsh, mgrepl, plautrba |
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: | 2015-11-12 15:02:40 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Tomas Popela
2015-11-12 14:29:07 UTC
I believe # ValueError: File spec /usr/lib64/chromium-browser/chromium-browser conflicts with equivalency rule '/usr/lib64 /usr/lib'; Try adding '/usr/lib/chromium-browser/chromium-browser' instead # ValueError: File spec /usr/lib64/chromium-browser/chromium-browser.sh conflicts with equivalency rule '/usr/lib64 /usr/lib'; Try adding '/usr/lib/chromium-browser/chromium-browser.sh' instead # ValueError: File spec /usr/lib64/chromium-browser/chrome-sandbox conflicts with equivalency rule '/usr/lib64 /usr/lib'; Try adding '/usr/lib/chromium-browser/chrome-sandbox' instead is correct and the problem is semanage fcontext -a -t execmem_exec_t /usr/lib64/chromium-browser/chromium-browser does not work. It's correct. You can't add a file context into tree where is already equivalence: # semanage fcontext -l ... SELinux Distribution fcontext Equivalence /lib = /usr/lib /usr/lib64 = /usr/lib /lib64 = /usr/lib /usr/local/lib32 = /usr/lib /usr/local/lib64 = /usr/lib The suggested change would work but there's another issue. execmem_exec_t is just alias and semanage requires a type: # semanage fcontext -a -t execmem_exec_t /usr/lib/chromium-browser/chromium-browser ValueError: Type execmem_exec_t is invalid, must be a file or device type # seinfo -texecmem_exec_t TypeName bin_t Aliases unconfined_execmem_exec_t java_exec_t ls_exec_t mono_exec_t execmem_exec_t sbin_t # semanage fcontext -a -t bin_t /usr/lib/chromium-browser/chromium-browse # |