libct/configs: exclude Relabel from json [un]marshaling

When deprecating Relabel field, its json attributes were mistakenly
removed, so now it is:
 - saved to JSON under "Relabel" (rather than "relabel");
 - won't be ignored if empty.

Let's fix it before it's too late.

Fixes: 8b2b5e94 ("libct: remove relabeling dead code")

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
This commit is contained in:
Kir Kolyshkin
2026-03-10 14:13:11 -07:00
parent 5f3ac16d18
commit d2abe47689
+1 -1
View File
@@ -46,7 +46,7 @@ type Mount struct {
// Relabel field is ignored.
//
// Deprecated: do not use. This field will be removed in runc 1.7.
Relabel string
Relabel string `json:"-"`
// RecAttr represents mount properties to be applied recursively (AT_RECURSIVE), see mount_setattr(2).
RecAttr *unix.MountAttr `json:"rec_attr,omitempty"`