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@redhat.com
Subject: Re: [Virtio-fs] restorcon/SELinux virtiofs question
Date: Thu, 19 Nov 2020 13:16:35 -0500	[thread overview]
Message-ID: <20201119181635.GA3300@redhat.com> (raw)
In-Reply-To: <0503b244-b426-0779-7b9e-ff63dfa1165c@gmail.com>

On Thu, Nov 19, 2020 at 10:52:51AM -0600, Harry G. Coin wrote:
> Hello virtiofs team.  I need clarification about a 'restorecon' selinux
> guest giving an 'operation not supported' response.
> 
> If the host fs is btrfs (with xattr enabled in virtiofsd) but not
> running SELinux,

I suspect that on host setxattr(security.selinux) is failing with 
"operation not supported". 

What do you mean by host "not running SELinux". SElinux is not compiled
in? Or it is disabled or in passive mode?

Is it working with filesystems other than btrfs, say ext4 or xfs.

Now qemu supports xattr remapping. You might want to run virtiofsd
to remap security.selinux. I think that might get you going till
the root cause of the issue is found.

Vivek

> and the guest has virtiofs root with selinux active,
> what version [if any] for virtiofs is necessary before I can expect the
> restorecon command to operate properly?  (Or, maybe I've missed a config
> setting somewhere?) 
> 
> Packages such as freeipa fail to install because they issue dozens of
> 'restorecon' calls which fail using virtiofs.
> 
> Thanks,
> 
> Harry Coin
> 
> 
> 
> 
> _______________________________________________
> Virtio-fs mailing list
> Virtio-fs@redhat.com
> https://www.redhat.com/mailman/listinfo/virtio-fs


  reply	other threads:[~2020-11-19 18:16 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-19 16:52 [Virtio-fs] restorcon/SELinux virtiofs question Harry G. Coin
2020-11-19 18:16 ` Vivek Goyal [this message]
2020-11-19 18:27   ` Harry G. Coin
2020-11-19 18:38     ` Vivek Goyal
2020-11-19 18:44       ` Vivek Goyal
2020-11-19 19:44         ` Vivek Goyal
2020-11-20 15:01           ` Daniel Walsh
2020-11-20 17:11             ` Harry G. Coin
2020-11-20 18:55               ` Vivek Goyal
2020-11-29 21:41                 ` Harry G. Coin
2020-11-30 14:49                   ` Vivek Goyal
2020-12-03 18:24                     ` Harry G. Coin
2020-12-03 20:08                       ` Vivek Goyal

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=20201119181635.GA3300@redhat.com \
    --to=vgoyal@redhat.com \
    --cc=hgcoin@gmail.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.