Skip to content

Commit 4748bb7

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 93a5294 commit 4748bb7

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
@@ -411,6 +411,28 @@ func DefaultProfile(sp *specs.Spec) *specs.LinuxSeccomp {
411411
},
412412
},
413413
},
414+
{
415+
Names: []string{"personality"},
416+
Action: specs.ActAllow,
417+
Args: []specs.LinuxSeccompArg{
418+
{
419+
Index: 0,
420+
Value: 0x20000,
421+
Op: specs.OpEqualTo,
422+
},
423+
},
424+
},
425+
{
426+
Names: []string{"personality"},
427+
Action: specs.ActAllow,
428+
Args: []specs.LinuxSeccompArg{
429+
{
430+
Index: 0,
431+
Value: 0x20008,
432+
Op: specs.OpEqualTo,
433+
},
434+
},
435+
},
414436
{
415437
Names: []string{"personality"},
416438
Action: specs.ActAllow,

0 commit comments

Comments
 (0)