jail.nix/lib
Alex David 1d8ec0b1cc Lock down GPU combinator
This is one of the original combinators I wrote for myself before even
open sourcing jail.nix. It was exposing all of `/sys` which is
unnecessary.

With this change, only `/sys/dev/char` is shared, (which should only
contain symlinks), and any PCI devices that contain a `drm` directory.
This seems to be the most reliable way I can tell of finding GPUs from
testing various combinations of distros and GPUs. The other signal seems
to be if `class` is `0x030000`, although I struggled to find
documentation where these classes are defined, and if they are in-fact
constant across all linux systems.

Anyway, this is a massive improvement over binding all of `/sys`, and
hopefully not a breaking change for anyone. If anyone runs into issues,
or has suggestions on better approaches I would love to hear it.
2025-10-19 11:30:21 -07:00
..
combinators Lock down GPU combinator 2025-10-19 11:30:21 -07:00
base-permissions.nix Pull remaining default perms into base combinator 2025-10-10 16:28:45 -07:00
combinators.nix Add add-seccomp combinator 2025-10-18 22:44:01 -07:00
default.nix Format nix files with nixfmt-tree 2025-09-11 07:31:48 -07:00
helpers.nix Add pushState helper 2025-09-28 15:58:58 -07:00
jail.nix Add add-seccomp combinator 2025-10-18 22:44:01 -07:00