Hi

I am running rocky linux in privileged  lxc container on Debian 11 host.

If I try to build any rpm I am getting an error from mock

ERROR: Could not create dir /var/lib/mock/rocky+epel-9-x86_64-bootstrap/root/sys/fs/selinux. Error: [Errno 30] Read-only file system: '/var/lib/mock/rocky+epel-9-x86_64-bootstrap/root/sys/fs/selinux'

I guess the reason is that selinux is disabled on Debian. Is there a way to tell mock to work with selinux disabled? I am afraid proper set up of selinux on Debian host would be not simple.

--
Best regards, Sergey Spiridonov