Skip to content

Commit 0a2a941

Browse files
author
Ma Shimiao
committed
config-linux: Add restriction for duplicated device path
I think runtime should generate an error, if devices has duplicated device path. Because we don't know which one is really needed. Signed-off-by: Ma Shimiao <[email protected]>
1 parent ced3365 commit 0a2a941

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

config-linux.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,9 @@ Each entry has the following structure:
121121
* **`uid`** *(uint32, OPTIONAL)* - id of device owner.
122122
* **`gid`** *(uint32, OPTIONAL)* - id of device group.
123123

124+
If a `devices` contains duplicated devices with same `path`, the runtime MUST generate an error.
125+
Duplicated devices with same `major, minor` is acceptable, but it is not recommended.
126+
124127
###### Example
125128

126129
```json

0 commit comments

Comments
 (0)