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

docs/systemd: describe device rules #3853

Closed
wants to merge 1 commit into from

Conversation

kolyshkin
Copy link
Contributor

Here's a copy-paste of the doc added by this PR:

Device access rules

Device access rules from the runtime spec are translated to systemd properties
(DevicePolicy and DeviceAllow). Not all configurations are supported; in
particular, the following can not be translated:

  • blacklist-style rulesets;
  • wildcard-major rules (meaning "all devices with any major number and the
    given minor number").

NOTE that systemd v240 or later is highly recommended, since older versions
have limited ways to interpret DeviceAllow rules. When using systemd older
than v240, the following limitations exist:

  • it is not possible to add a rule for a device that does not have an
    equivalent /dev/{char,block}/<MAJOR>:<minor> file on the host
    (for example, this is the case for NVidia devices);
  • adding a wildcard-minor rule (meaning "devices with the given major number
    any any minor number") results in having a set of individual rules for
    existing devices only, meaning that any devices that will appear after the
    container start won't be accessible.

@kolyshkin
Copy link
Contributor Author

Superceded by #3847

@kolyshkin kolyshkin closed this May 4, 2023
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.

1 participant