Skip to content

fix: Ensure consistent device permissions for CDI devices#1539

Merged
elezar merged 1 commit intoNVIDIA:mainfrom
oOraph:sync_cg_permissions
Jan 20, 2026
Merged

fix: Ensure consistent device permissions for CDI devices#1539
elezar merged 1 commit intoNVIDIA:mainfrom
oOraph:sync_cg_permissions

Conversation

@oOraph
Copy link
Contributor

@oOraph oOraph commented Dec 11, 2025

It turns out permissions are hardcoded to "rwm" so they are synced (because not specifying anything ends up as setting rwm in the generated oci spec) but if someone ever changes rwm to sth else in the call to DeviceFromPath, it won't be effective

@copy-pr-bot
Copy link

copy-pr-bot bot commented Dec 11, 2025

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.

@coveralls
Copy link

coveralls commented Jan 7, 2026

Pull Request Test Coverage Report for Build 21167742572

Details

  • 0 of 6 (0.0%) changed or added relevant lines in 1 file are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage decreased (-0.003%) to 36.834%

Changes Missing Coverage Covered Lines Changed/Added Lines %
internal/edits/device.go 0 6 0.0%
Files with Coverage Reduction New Missed Lines %
internal/edits/device.go 1 50.0%
Totals Coverage Status
Change from base Build 21132355090: -0.003%
Covered Lines: 5257
Relevant Lines: 14272

💛 - Coveralls

It turns out permissions are hardcoded to "rwm" so they are synced (because not specifying anything ends up as setting rwm in the generated oci spec) but if someone ever changes rwm to sth else in the call to DeviceFromPath, it won't be effective

Signed-off-by: Raphael Glon <oOraph@users.noreply.github.com>
Signed-off-by: Evan Lezar <elezar@nvidia.com>
@elezar elezar force-pushed the sync_cg_permissions branch from e54a999 to ca3cd3a Compare January 20, 2026 10:17
@elezar elezar changed the title fix: permissions sync fix: Ensure consistent device permissions for CDI devices Jan 20, 2026
@elezar
Copy link
Member

elezar commented Jan 20, 2026

/ok-to-test ca3cd3a

@elezar elezar added this to the v1.19.0 milestone Jan 20, 2026
@elezar elezar merged commit 08420cc into NVIDIA:main Jan 20, 2026
16 checks passed
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.

3 participants