Skip to content

Conversation

@shiv-tyagi
Copy link
Member

@shiv-tyagi shiv-tyagi commented Jan 14, 2026

Motivation

This allows a non root user to generate a cdi spec. If the user does not have rights to write to the output location, they will get a permission denied error, otherwise the command should work fine and the user should should get the spec.

Technical Details

We just remove the are you root check for the command.

Test Plan

Tested on a machine with GPUs to see if a non root user is successfully able to create a cdi spec which lists the gpus on the machine.

Test Result

The user was successfully able to generate the file

Submission Checklist

@shiv-tyagi shiv-tyagi requested a review from sgopinath1 January 14, 2026 09:20
@shiv-tyagi shiv-tyagi changed the title fix: allow non root user generate the cdi spec fix: allow non root user generate and validate the cdi spec Jan 14, 2026
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.

1 participant