Bug 818621
Summary: | lsblk should not open device it prints info about | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Milan Broz <mbroz> |
Component: | util-linux-ng | Assignee: | Karel Zak <kzak> |
Status: | CLOSED ERRATA | QA Contact: | Branislav Blaškovič <bblaskov> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 6.3 | CC: | azelinka, bblaskov, ovasik, pvrabec |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | util-linux-ng-2.17.2-12.8.el6 | Doc Type: | Bug Fix |
Doc Text: |
Cause:
lsblk opens block devices to check if the device is in read-only mode, although the information is available in /sys.
Consequence:
unexpected selinux alerts, unnecessary open() call
Fix:
now lsblk is less aggressive and reads the info from /sys filesystem
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2013-02-21 10:22:56 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: | |||
Bug Depends On: | |||
Bug Blocks: | 836160 |
Description
Milan Broz
2012-05-03 14:42:17 UTC
The problem with "ro" has been fixed by upstream commit 1ea962b2088b8db2090917a5eb1609b5eb99e048. Note that RHEL6 lsblk rebase fixes the problem with "ro" attribute only. Now it correctly reads the attribute from /sys and BLKROGET ioctl is unnecessary. The rebase does not remove the check_mount_point() code and O_RDONLY|O_EXCL, because we don't want to backport whole libmount too... Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHSA-2013-0517.html |