All of lore.kernel.org
 help / color / mirror / Atom feed
From: Vivek Goyal <vgoyal@redhat.com>
To: "Harry G. Coin" <hgcoin@gmail.com>
Cc: virtio-fs-list <virtio-fs@redhat.com>,
	Ondrej Mosnacek <omosnace@redhat.com>
Subject: Re: [Virtio-fs] regression: lsetfilecon fails, breaks rpm, dpkg, dnf in virtiofs guests.
Date: Tue, 1 Jun 2021 09:02:45 -0400	[thread overview]
Message-ID: <20210601130245.GA24846@redhat.com> (raw)
In-Reply-To: <e1437314-4870-a3a3-e866-8be50282ce3c@gmail.com>

On Sat, May 29, 2021 at 01:42:50PM -0500, Harry G. Coin wrote:
> Some regression in virtio-fs has led to rpm/dnf/yum failing  in the same
> guest it previously worked.
> 
> linux 5.11.19-300.fc34.x86_64
> 
> Specifically, all attempts to use dnf/yum lead to examples similar to this:
> 
> Error unpacking rpm package dnf-4.7.0-1.fc34.noarch
>   Upgrading        :
> python3-dnf-plugins-core-4.0.21-1.fc34.noarch                                                                                                                                                     
> 8/20
> error: unpacking of archive failed on file /usr/bin/dnf;60b1b277: cpio:
> (error 0x2)
> error: dnf-4.7.0-1.fc34.noarch: install failed
> error: lsetfilecon: (/etc/dnf/plugins/copr.conf,
> system_u:object_r:etc_t:s0) Operation not permitted
> error: Plugin selinux: hook fsm_file_prepare failed

CCing Dan Walsh and Ondrej. They might have an idea.

Thanks
Vivek

> 
> (
> 
> For all packages.  No updates are possible.  Possibly related to:
> https://github.com/fedora-selinux/selinux-policy/pull/478/files/21a2df26cd605c55de7edc80e16907fcb76ccf08 
> ?  What really gets me, is this error exists even though
> 
> # getenforce
> Permissive
> 
> )
> 
> The host is running btrfs.  ... virtiofsd --fd=50 -o
> source=/vmsystems/fedora_generic,xattr,flock,posix_lock
> 
> same effect with  .... virtiofsd --fd=36 -o
> source=/vmsystems/dbl1,xattr,flock,no_posix_lock
> 
> /etc/fstab:
> 
> myfs / virtiofs seclabel 0 0
> 
> 
> 
> 
> _______________________________________________
> Virtio-fs mailing list
> Virtio-fs@redhat.com
> https://listman.redhat.com/mailman/listinfo/virtio-fs


  reply	other threads:[~2021-06-01 13:02 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-29 18:42 [Virtio-fs] regression: lsetfilecon fails, breaks rpm, dpkg, dnf in virtiofs guests Harry G. Coin
2021-06-01 13:02 ` Vivek Goyal [this message]
2021-06-01 17:33   ` Ondrej Mosnacek
2021-06-03 17:58   ` Harry G. Coin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210601130245.GA24846@redhat.com \
    --to=vgoyal@redhat.com \
    --cc=hgcoin@gmail.com \
    --cc=omosnace@redhat.com \
    --cc=virtio-fs@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.