mirror of
https://github.com/opencontainers/runc.git
synced 2026-04-22 23:17:17 +08:00
libcontainer: fix the file mode of the device
Signed-off-by: Iceber Gu <wei.cai-nat@daocloud.io>
This commit is contained in:
@@ -698,7 +698,7 @@ next:
|
||||
return nil, err
|
||||
}
|
||||
if d.FileMode != nil {
|
||||
filemode = *d.FileMode
|
||||
filemode = *d.FileMode &^ unix.S_IFMT
|
||||
}
|
||||
device := &devices.Device{
|
||||
Rule: devices.Rule{
|
||||
|
||||
Reference in New Issue
Block a user