Bug 1976022

Summary: SELINUX=disabled in /etc/selinux/config causes criu to not function
Product: [Fedora] Fedora Reporter: Ambrose Chua <ambrose>
Component: criuAssignee: Adrian Reber <adrian>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 35CC: adrian, ambrose, avagin
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Unspecified   
Whiteboard:
Fixed In Version: criu-3.16-2.fc35 criu-3.16-2.fc34 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-09-29 00:17:21 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Ambrose Chua 2021-06-25 01:58:51 UTC
Description of problem:

See https://github.com/checkpoint-restore/criu/issues/1402
On a system with SELINUX=disabled in /etc/selinux/config, criu fails to start because it checks for the existence of /sys/fs/selinux, which exists in a SELINUX=disabled system.

Version-Release number of selected component (if applicable):
3.15

How reproducible:


Steps to Reproduce:
1. Disable selinux in /etc/selinux/config
2. Install criu
3. Run criu dump -t [PID]

Actual results:
...
Error (criu/lsm.c:90): Invalid selinux context kernel
Error (criu/cr-dump.c:1390): Dump core (pid: 3646715) failed with -1
Error (criu/cr-dump.c:1768): Dumping FAILED.

Expected results:
Successfully dumped

Additional info:
Fixed in upstream, have to wait for them to create a new release: https://github.com/checkpoint-restore/criu/pull/1457/files

Comment 1 Ben Cotton 2021-08-10 13:08:47 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 35 development cycle.
Changing version to 35.

Comment 2 Fedora Update System 2021-09-23 09:58:03 UTC
FEDORA-2021-a796b20341 has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2021-a796b20341

Comment 3 Fedora Update System 2021-09-23 10:00:04 UTC
FEDORA-2021-776465d958 has been submitted as an update to Fedora 34. https://bodhi.fedoraproject.org/updates/FEDORA-2021-776465d958

Comment 4 Fedora Update System 2021-09-23 19:41:36 UTC
FEDORA-2021-776465d958 has been pushed to the Fedora 34 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-776465d958`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-776465d958

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Fedora Update System 2021-09-24 02:51:28 UTC
FEDORA-2021-a796b20341 has been pushed to the Fedora 35 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-a796b20341`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-a796b20341

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 6 Fedora Update System 2021-09-29 00:17:21 UTC
FEDORA-2021-a796b20341 has been pushed to the Fedora 35 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 7 Fedora Update System 2021-10-01 01:26:59 UTC
FEDORA-2021-776465d958 has been pushed to the Fedora 34 stable repository.
If problem still persists, please make note of it in this bug report.