Skip to content

Commit a462d6f

Browse files
authored
Merge pull request #5160 from kolyshkin/fixup-relabel
libct/configs: exclude Relabel from json [un]marshaling
2 parents 5f3ac16 + d2abe47 commit a462d6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libcontainer/configs/mount_linux.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ type Mount struct {
4646
// Relabel field is ignored.
4747
//
4848
// Deprecated: do not use. This field will be removed in runc 1.7.
49-
Relabel string
49+
Relabel string `json:"-"`
5050

5151
// RecAttr represents mount properties to be applied recursively (AT_RECURSIVE), see mount_setattr(2).
5252
RecAttr *unix.MountAttr `json:"rec_attr,omitempty"`

0 commit comments

Comments
 (0)