Bug 1326799
Summary: | [CodeChange] Remove workaround for selinux.restorecon for disabled selinux | ||
---|---|---|---|
Product: | [oVirt] vdsm | Reporter: | Allon Mureinik <amureini> |
Component: | General | Assignee: | Allon Mureinik <amureini> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Kevin Alon Goldblatt <kgoldbla> |
Severity: | low | Docs Contact: | |
Priority: | low | ||
Version: | 4.18.0 | CC: | bugs, nsoffer, ylavi |
Target Milestone: | ovirt-4.2.0 | Keywords: | CodeChange |
Target Release: | 4.20.9 | Flags: | rule-engine:
ovirt-4.2+
|
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2017-12-20 10:43:53 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | Storage | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | 1264701 | ||
Bug Blocks: |
Description
Allon Mureinik
2016-04-13 12:30:38 UTC
Verified with the following code: ------------------------------------- ovirt-engine-4.2.0-0.5.master.el7.noarch vdsm-4.20.8-53.gitc3edfc0.el7.centos.x86_64 Verified with the following scenario: ------------------------------------- Scenario 1: --------------- [root@green-vdsb ~]# touch /etc/multipath.conf.new [root@green-vdsb ~]# python Python 2.7.5 (default, May 3 2017, 07:55:04) [GCC 4.8.5 20150623 (Red Hat 4.8.5-14)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import selinux >>> selinux.restorecon("/etc/multipath.conf.new") >>> Scenario 2: -------------- mount | grep selinux rm -f /etc/multipath.conf.new python Python 2.7.5 (default, May 3 2017, 07:55:04) [GCC 4.8.5 20150623 (Red Hat 4.8.5-14)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import selinux >>> import os >>> os.system('ls -Z /etc/multipath.conf.new') ls: cannot access /etc/multipath.conf.new: No such file or directory 512 >>> os.system('touch /etc/multipath.conf.new') 0 >>> os.system('ls -Z /etc/multipath.conf.new') -rw-r--r-- root root ? /etc/multipath.conf.new 0 >>> selinux.restorecon('/etc/multipath.conf.new') >>> os.system('ls -Z /etc/multipath.conf.new') -rw-r--r--. root root system_u:object_r:etc_t:s0 /etc/multipath.conf.new 0 >>> Moving to VERIFIED This bugzilla is included in oVirt 4.2.0 release, published on Dec 20th 2017. Since the problem described in this bug report should be resolved in oVirt 4.2.0 release, published on Dec 20th 2017, it has been closed with a resolution of CURRENT RELEASE. If the solution does not work for you, please open a new bug report. |