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

added device mount permissions section #116

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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 docs/discovery-handlers/udev.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,10 @@ Discovery Handlers are passed discovery details that are set in a Configuration
| :--- | :--- | :--- | :--- |
| udev.configuration.discoveryDetails.udevRules | array of udev rules | empty | udev rule [supported by the udev Discovery Handler](#udev-rule-format) |
| udev.configuration.discoveryDetails.groupRecursive | boolean | false | If set to true, group devices with a matching parent |
| udev.configuration.discoveryDetails.permissions | string | rwm | udev device mount permissions (**r**ead, **w**rite, **m**odify) |

The udev Discovery Handler parses the udev rules listed in a Configuration, searches for them using udev, and returns a list of discovered device nodes (ie: /dev/video0). It parses the udev rules via a grammar [grammar](https://github.com/project-akri/akri/blob/main/discovery-handlers/udev/src/udev_rule_grammar.pest) Akri has created. It expects the udev rules to be formatted according to the [Linux Man pages](https://linux.die.net/man/7/udev).
Additionally, the permissions for the device mount are defined as well and are set to `rwm` (read, write, modify) by default.

#### Udev rule format

Expand Down