Ubuntu 22.04 netboot install uses selinux enabled kernel

Bug #1995508 reported by Heiko Robert
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ODROID
New
Undecided
Unassigned

Bug Description

I installed Ubuntu 22.04 on a odroid M-1 using netboot_default

uname -a
Linux test 5.18.0-odroid-arm64 #1 SMP PREEMPT Ubuntu 5.18.0-202205181718~jammy (2022-05-18) aarch64 aarch64 aarch64 GNU/Linux

When trying to run lxc I get selinux warnings.

lxc list
2022/11/02 16:16:51.131884 cmd_run.go:1046: WARNING: cannot create user data directory: failed to verify SELinux context of /root/snap: exec: "matchpathcon": executable file not found in $PATH

It looks like the kernel has been compiled with selinux although Ubuntu uses appamor. snapd uses selinux if available but selinux is not configured.

work around:
install selinux-policy-default and manually disable selinux

some background:
https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1826460
https://forum.snapcraft.io/t/selinux-warning-when-running-lxc/

Tags: lxd selinux
Revision history for this message
pcgeek86 (pcgeek86) wrote :

How do you install Ubuntu 22.04 LTS directly onto the ODROID M1? I tried, and failed. To work around the issue, I had to use the older 20.04 LTS image, from HardKernel, and perform an OS upgrade to 22.04 LTS. It worked fine, but I would rather directly install the latest LTS version fresh onto the eMMC chip.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.