Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 579191 Details for
Bug 691389
SELinux labels don't work over guestmount (FUSE)
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Regression test for (unfixed) bug 814933.
0001-Add-regression-test-for-RHBZ-814933.patch (text/plain), 3.07 KB, created by
Richard W.M. Jones
on 2012-04-21 14:56:47 UTC
(
hide
)
Description:
Regression test for (unfixed) bug 814933.
Filename:
MIME Type:
Creator:
Richard W.M. Jones
Created:
2012-04-21 14:56:47 UTC
Size:
3.07 KB
patch
obsolete
>From 90be30682ae55e3420b4519b40edc351c66fd57a Mon Sep 17 00:00:00 2001 >From: "Richard W.M. Jones" <rjones@redhat.com> >Date: Sat, 21 Apr 2012 15:39:04 +0100 >Subject: [PATCH] Add regression test for RHBZ#814933. > >Buggy guestmount causes emacs to print this and exit with an error: > > Doing lsetfilecon: operation not supported >--- > .gitignore | 1 + > tests/regressions/Makefile.am | 1 + > tests/regressions/rhbz814933.sh | 64 +++++++++++++++++++++++++++++++++++++++ > 3 files changed, 66 insertions(+) > create mode 100755 tests/regressions/rhbz814933.sh > >diff --git a/.gitignore b/.gitignore >index eaff531..b6a59e8 100644 >--- a/.gitignore >+++ b/.gitignore >@@ -414,6 +414,7 @@ pod2htm?.tmp > /tests/guests/windows.img > /tests/regressions/rhbz501893 > /tests/regressions/rhbz790721 >+/tests/regressions/test1.qcow2 > /test-tool/libguestfs-test-tool > /test-tool/libguestfs-test-tool.1 > /test-tool/libguestfs-test-tool-helper >diff --git a/tests/regressions/Makefile.am b/tests/regressions/Makefile.am >index 3027cd8..9a031b6 100644 >--- a/tests/regressions/Makefile.am >+++ b/tests/regressions/Makefile.am >@@ -29,6 +29,7 @@ TESTS = \ > rhbz789960.sh \ > rhbz790721 \ > rhbz811649.sh \ >+ rhbz814933.sh \ > test-noexec-stack.pl > > tests_not_run = \ >diff --git a/tests/regressions/rhbz814933.sh b/tests/regressions/rhbz814933.sh >new file mode 100755 >index 0000000..0f38a78 >--- /dev/null >+++ b/tests/regressions/rhbz814933.sh >@@ -0,0 +1,64 @@ >+#!/bin/bash - >+# libguestfs >+# Copyright (C) 2012 Red Hat Inc. >+# >+# This program is free software; you can redistribute it and/or modify >+# it under the terms of the GNU General Public License as published by >+# the Free Software Foundation; either version 2 of the License, or >+# (at your option) any later version. >+# >+# This program is distributed in the hope that it will be useful, >+# but WITHOUT ANY WARRANTY; without even the implied warranty of >+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the >+# GNU General Public License for more details. >+# >+# You should have received a copy of the GNU General Public License >+# along with this program; if not, write to the Free Software >+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. >+ >+# https://bugzilla.redhat.com/show_bug.cgi?id=814933 >+# Test that emacs can set selinux attrs when editing a file. >+ >+set -e >+ >+if ! emacs --help >/dev/null 2>&1 ; then >+ echo "$0: test skipped because there is no emacs" >+ exit 0 >+fi >+ >+if [ ! -w /dev/fuse -o ! -f ../../fuse/guestmount ]; then >+ echo "$0: test skipped because there is no fuse" >+ exit 0 >+fi >+ >+rm -f test1.qcow2 >+rm -rf mnt >+ >+qemu-img create -f qcow2 -o backing_file=../guests/fedora.img test1.qcow2 >+ >+mkdir mnt >+ >+../../fuse/guestmount -a test1.qcow2 -i mnt >+ >+echo yes | >+emacs -batch -Q \ >+ mnt/etc/shadow \ >+ --eval ' >+(progn >+ (message "Editing /etc/shadow...") >+ (toggle-read-only) >+ (insert-char 65 1) >+ (message "Saving...") >+ (save-buffer)) >+' -kill >+ >+count=10 >+while ! fusermount -u mnt && [ $count -gt 0 ]; do >+ sleep 1 >+ ((count--)) >+done >+ >+exit 0 >+ >+rm -f test1.qcow2 >+rm -rf mnt >-- >1.7.9.3 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 691389
: 579191