Bug 633174
Summary: | some guestfish sub commands can not handle special files properly | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Jinxin Zheng <jzheng> |
Component: | libguestfs | Assignee: | Richard W.M. Jones <rjones> |
Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 6.1 | CC: | dallan, leiwang, mbooth, mshao, pcao, virt-maint |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | libguestfs-1.7.17-4.el6 | Doc Type: | Bug Fix |
Doc Text: |
Some guestfish commands would hang when applied to non-regular files. This had some security implications in that a guest could replace regular configuration files with, for example, character devices, and cause virt-inspector and other programs to hang. guestfish commands have been modified and can now handle non-regular files.
Additionally, virt-inspector has been rewritten as virt-inspector2, which is both more powerful, and more careful about untrusted files from the guest.
|
Story Points: | --- |
Clone Of: | 582484 | Environment: | |
Last Closed: | 2011-05-19 11:44:28 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: | |||
Bug Depends On: | 582484, 613593 | ||
Bug Blocks: |
Description
Jinxin Zheng
2010-09-13 05:28:05 UTC
Will be fixed by the rebase (bug 613593). Fixed by the rebase. Test steps: 1. Run guestfish, add image, run and mount. 2. Use "mkfifo 0644 /tmp/fifo-file" to create a FIFO file. 3. Verify the file created correctly via "ll /tmp/fifo-file". 4. Run "touch /tmp/fifo-file". 5. Rerun step 1. 6. Use "mknod-c 0644 1 6 /tmp/char-file" to create a character file. 7. Verify the file created correctly via "ll /tmp/char-file". 8. Run "file /tmp/char-file". Could reproduce the bug with: libguestfs-1.2.7-1.24.el6 At step 4, the "touch" command hangs there. At step 8, the "file" comamnd reports "writable, no read permission" though "ll" shows there's read permission. Verity this bug with: libguestfs-1.7.17-10.el6 At step 4, the "touch" command failed with error message as below: libguestfs: error: touch: /tmp/fifo-file: touch can only be used on a regular files. At step 8, the "file" command returned right file type as below: character device According to the results above, move to VERIFIED. Technical note added. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. New Contents: Some guestfish commands would hang when applied to non-regular files. This had some security implications in that a guest could replace regular configuration files with, for example, character devices, and cause virt-inspector and other programs to hang. guestfish commands have been modified and can now handle non-regular files. Additionally, the virt-inspector has been rewritten as virt-inspector2, which is both more powerful, and more careful about untrusted files from the guest. Small change made to technical note. Technical note updated. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. Diffed Contents: @@ -1,3 +1,3 @@ Some guestfish commands would hang when applied to non-regular files. This had some security implications in that a guest could replace regular configuration files with, for example, character devices, and cause virt-inspector and other programs to hang. guestfish commands have been modified and can now handle non-regular files. -Additionally, the virt-inspector has been rewritten as virt-inspector2, which is both more powerful, and more careful about untrusted files from the guest.+Additionally, virt-inspector has been rewritten as virt-inspector2, which is both more powerful, and more careful about untrusted files from the guest. An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHSA-2011-0586.html An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHSA-2011-0586.html |