Skip to content

Fix SELinux detection in driver scripts#626

Open
Ashutosh0x wants to merge 1 commit intoNVIDIA:mainfrom
Ashutosh0x:fix-selinux-detection-1489
Open

Fix SELinux detection in driver scripts#626
Ashutosh0x wants to merge 1 commit intoNVIDIA:mainfrom
Ashutosh0x:fix-selinux-detection-1489

Conversation

@Ashutosh0x
Copy link

This PR replaces the outdated filesystem check [ -e /sys/fs/selinux ] with a more robust call to selinuxenabled across all driver scripts. Resolves #1489.

@copy-pr-bot
Copy link

copy-pr-bot bot commented Feb 28, 2026

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

This PR replaces the outdated filesystem check [ -e /sys/fs/selinux ] with a more robust call to selinuxenabled across all driver scripts. This ensures that chcon is only called when SELinux is truly enabled. Includes fixes for vgpu-manager and ocp_dtk_entrypoint. Resolves #1489.

Signed-off-by: Ashutosh Kumar Singh <ashutoshkumarsingh0x@gmail.com>
@Ashutosh0x Ashutosh0x force-pushed the fix-selinux-detection-1489 branch from e484641 to d07feae Compare February 28, 2026 18:38
@rajathagasthya
Copy link
Contributor

/ok-to-test d07feae

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants