Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nvidia Modprobe always creates nvidia-uvm and nvidia-uvm-tools as root:root #7

Open
jsingleton785 opened this issue Apr 12, 2024 · 0 comments

Comments

@jsingleton785
Copy link

When attempting to create the nvidia-uvm and nvidia-uvm-tools devices, the devices are always created with root UID and GID.

This method ensures that the creation of nvidia-uvm and nvidia-uvm-tools always gets created with root:root

return mknod_helper(major, base_minor, NV_UVM_DEVICE_NAME, NULL) && mknod_helper(major, base_minor + 1, NV_UVM_TOOLS_DEVICE_NAME, NULL);

By passing NULL, this method doesn't utilize the kernel module parameters that are passed to the nvidia driver.

Passing the params path like is done for the nvidiactl and other devices, the permissions on nvidia-uvm and nvidia-uvm-tools can be set properly according to the documentation:

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

No branches or pull requests

1 participant