DescriptionExplicitly test bit 30 in the system call number to distinguish between the new x32 API and older Intel APIs.
Also, extend the system call range from 0..512 to 0..1024. This covers the extra system calls added with x32.
As x32 isn't widely available yet, we don't add any other code to support it (e.g. we don't build a version of
demo.cc that runs in x32). But by explicitly blocking it for i386 and x86-64 we ensure that a "default allow"
policy is going to do the right thing.
TEST=make && demo32 && demo64
BUG=130662
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=141155
Patch Set 1 #
Total comments: 6
Patch Set 2 : Switched return codes to kill on error #
Total comments: 1
Patch Set 3 : Rebased #
Messages
Total messages: 5 (0 generated)
|