Skip to content

Commit 357d100

Browse files
committed
seccomp: allow personality with UNAME26 bit set
From personality(2): Have uname(2) report a 2.6.40+ version number rather than a 3.x version number. Added as a stopgap measure to support broken applications that could not handle the kernel version-numbering switch from 2.6.x to 3.x. This allows both "UNAME26|PER_LINUX" and "UNAME26|PER_LINUX32". Fixes: "setarch broken in docker packages from Debian stretch" Signed-off-by: Sebastiaan van Stijn <[email protected]> (cherry picked from commit 117d678) Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent 0c9de66 commit 357d100

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

contrib/seccomp/seccomp_default.go

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,28 @@ func DefaultProfile(sp *specs.Spec) *specs.LinuxSeccomp {
409409
},
410410
},
411411
},
412+
{
413+
Names: []string{"personality"},
414+
Action: specs.ActAllow,
415+
Args: []specs.LinuxSeccompArg{
416+
{
417+
Index: 0,
418+
Value: 0x20000,
419+
Op: specs.OpEqualTo,
420+
},
421+
},
422+
},
423+
{
424+
Names: []string{"personality"},
425+
Action: specs.ActAllow,
426+
Args: []specs.LinuxSeccompArg{
427+
{
428+
Index: 0,
429+
Value: 0x20008,
430+
Op: specs.OpEqualTo,
431+
},
432+
},
433+
},
412434
{
413435
Names: []string{"personality"},
414436
Action: specs.ActAllow,

0 commit comments

Comments
 (0)