Skip to content

fix: Additional GIDs are dropped due to file mode mask#1745

Open
elezar wants to merge 1 commit intomainfrom
fix-additional-gids
Open

fix: Additional GIDs are dropped due to file mode mask#1745
elezar wants to merge 1 commit intomainfrom
fix-additional-gids

Conversation

@elezar
Copy link
Copy Markdown
Member

@elezar elezar commented Mar 26, 2026

The filemode returned from DeviceFromPath clears the bits that are track whether the device is a character device. This means that the check that ensures that the mode includes the character device bits always fails and no additional GIDs are detected.

This change removes the check. In practice this should have no effect since we only ever detect char devices.

@elezar
Copy link
Copy Markdown
Member Author

elezar commented Mar 26, 2026

/cherry-pick release-1.19

@elezar elezar added this to the v1.19.1 milestone Mar 26, 2026
@elezar elezar requested a review from cdesiniotis March 26, 2026 12:44
The filemode returned from DeviceFromPath clears the bits that
are track whether the device is a character device. This means
that the check that ensures that the mode includes the character
device bits always fails and no additional GIDs are detected.

This change removes the check. In practice this should have no
effect since we only ever detect char devices.

Signed-off-by: Evan Lezar <elezar@nvidia.com>
@elezar elezar force-pushed the fix-additional-gids branch from 59a191c to 771f0e0 Compare March 26, 2026 12:50
@coveralls
Copy link
Copy Markdown

Pull Request Test Coverage Report for Build 23595199830

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.01%) to 43.338%

Totals Coverage Status
Change from base Build 22904460070: -0.01%
Covered Lines: 6424
Relevant Lines: 14823

💛 - Coveralls

elezar added a commit to elezar/k8s-device-plugin that referenced this pull request Mar 26, 2026
This change updates the nvcdi API to 771f0e013469345c49397d78e048395978f6e2d6
to include the changes for NVIDIA/nvidia-container-toolkit#1745.

Signed-off-by: Evan Lezar <elezar@nvidia.com>
elezar added a commit to elezar/k8s-device-plugin that referenced this pull request Mar 26, 2026
This change updates the nvcdi API to 771f0e013469345c49397d78e048395978f6e2d6
to include the changes for NVIDIA/nvidia-container-toolkit#1745.

Signed-off-by: Evan Lezar <elezar@nvidia.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants