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

interfaces/builtin/opengl: enable parsing of nvidia driver information files #14893

Merged
merged 1 commit into from
Jan 20, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions interfaces/builtin/opengl.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ const openglConnectedPlugAppArmor = `
# nvidia
/etc/vdpau_wrapper.cfg r,
@{PROC}/driver/nvidia/params r,
@{PROC}/driver/nvidia/gpus/*/information r,
@{PROC}/driver/nvidia/capabilities/mig/monitor r,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fwiw, what other files are present there?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On my system I see:

[zyga@ciri ~]$ find /proc/driver/nvidia/ -ls
4026532876      0 dr-xr-xr-x  11 root     root            0 sty  8 08:14 /proc/driver/nvidia/
4026532887      0 dr-xr-xr-x   3 root     root            0 sty  8 08:14 /proc/driver/nvidia/gpus
4026532904      0 dr-xr-xr-x   5 root     root            0 sty  8 08:14 /proc/driver/nvidia/gpus/0000:02:00.0
4026532907      0 -r--r--r--   1 root     root            0 sty  8 11:07 /proc/driver/nvidia/gpus/0000:02:00.0/power
4026532906      0 -rw-r--r--   1 root     root            0 sty  8 11:07 /proc/driver/nvidia/gpus/0000:02:00.0/registry
4026532905      0 -r--r--r--   1 root     root            0 sty  8 11:07 /proc/driver/nvidia/gpus/0000:02:00.0/information
4026532878      0 -r--r--r--   1 root     root            0 sty  8 08:14 /proc/driver/nvidia/params
4026532884      0 dr-xr-xr-x   3 root     root            0 sty  8 11:07 /proc/driver/nvidia/patches
4026532885      0 -r--r--r--   1 root     root            0 sty  8 11:07 /proc/driver/nvidia/patches/README
4026532881      0 -rw-r--r--   1 root     root            0 sty  8 08:36 /proc/driver/nvidia/suspend
4026532886      0 -r--r--r--   1 root     root            0 sty  8 11:07 /proc/driver/nvidia/version
4026532879      0 -rw-r--r--   1 root     root            0 sty  8 11:07 /proc/driver/nvidia/registry
4026532882      0 dr-xr-xr-x   3 root     root            0 sty  8 11:07 /proc/driver/nvidia/warnings
4026532883      0 -r--r--r--   1 root     root            0 sty  8 11:07 /proc/driver/nvidia/warnings/README
4026532888      0 dr-xr-xr-x   5 root     root            0 sty  8 08:15 /proc/driver/nvidia/capabilities
4026532900      0 dr-xr-xr-x   4 root     root            0 sty  8 08:15 /proc/driver/nvidia/capabilities/mig
4026532901      0 -r--r--r--   1 root     root            0 sty  8 08:15 /proc/driver/nvidia/capabilities/mig/config
4026532902      0 -r--r--r--   1 root     root            0 sty  8 08:15 /proc/driver/nvidia/capabilities/mig/monitor
4026533128      0 dr-xr-xr-x   3 root     root            0 sty  8 11:07 /proc/driver/nvidia/capabilities/gpu0
4026533129      0 dr-xr-xr-x   2 root     root            0 sty  8 11:07 /proc/driver/nvidia/capabilities/gpu0/mig
4026532903      0 -r--r--r--   1 root     root            0 sty  8 11:07 /proc/driver/nvidia/capabilities/fabric-imex-mgmt
4026532880      0 -rw-r--r--   1 root     root            0 sty  8 11:07 /proc/driver/nvidia/suspend_depth

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[zyga@ciri ~]$ cat /proc/driver/nvidia/patches/README
The NVIDIA graphics driver's kernel interface files can be
patched to improve compatibility with new Linux kernels or to
fix bugs in these files. When applied, each official patch
provides a short text file with a short description of itself
in this directory.
[zyga@ciri ~]$ cat /proc/driver/nvidia/warnings/README
The NVIDIA graphics driver tries to detect potential problems
with the host system and warns about them using the system's
logging mechanisms. Important warning message are also logged
to dedicated text files in this directory.

@{PROC}/modules r,
/dev/nvidia* rw,
unix (send, receive) type=dgram peer=(addr="@nvidia[0-9a-f]*"),
Expand Down
Loading