Skip to content

Commit 117d678

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]>
1 parent fc9e5d1 commit 117d678

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

0 commit comments

Comments
 (0)