Skip to content

Commit 9c25f36

Browse files
committed
libct/specconv: comment on device.Rule use in createDevices
The usage of device.Rule is not very obvious, so explain it. Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
1 parent 863ab68 commit 9c25f36

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

libcontainer/specconv/spec_linux.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1060,6 +1060,9 @@ next:
10601060
filemode = *d.FileMode &^ unix.S_IFMT
10611061
}
10621062
device := &devices.Device{
1063+
// NOTE despite the name this is not a device access rule
1064+
// (those live under cgroup), but merely a way to specify
1065+
// a device type and major:minor for mknod.
10631066
Rule: devices.Rule{
10641067
Type: dt,
10651068
Major: d.Major,

0 commit comments

Comments
 (0)