From e54a999fc9b0e77e56f8406e260be028e95379ee Mon Sep 17 00:00:00 2001 From: Raphael Glon Date: Thu, 11 Dec 2025 18:12:27 +0100 Subject: [PATCH] fix: permissions sync It turns out permissions are hardcoded to "rwm" so they are synced (because not specifying anything ends up as setting rwm in the generated oci spec) but if someone ever changes rwm to sth else in the call to DeviceFromPath, it won't be effective Signed-off-by: Raphael Glon --- internal/edits/device.go | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/internal/edits/device.go b/internal/edits/device.go index e86441097..a7bbd60bb 100644 --- a/internal/edits/device.go +++ b/internal/edits/device.go @@ -72,10 +72,11 @@ func (d device) fromPathOrDefault() *specs.DeviceNode { } return &specs.DeviceNode{ - HostPath: d.HostPath, - Path: d.Path, - Major: dn.Major, - Minor: dn.Minor, - FileMode: &dn.FileMode, + HostPath: d.HostPath, + Path: d.Path, + Major: dn.Major, + Minor: dn.Minor, + FileMode: &dn.FileMode, + Permissions: string(*&dn.Permissions), } }