Skip to content

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

@jsingleton785

Description

@jsingleton785

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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions