mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-08-08 10:50:28 +00:00
Update tests for pledge anet promise
This commit is contained in:
parent
da0b25500c
commit
40ecd038a5
2 changed files with 3 additions and 3 deletions
|
@ -79,7 +79,7 @@ TEST(pledge, testLogMessage_inSoftyMode) {
|
|||
read(fds[0], msg, sizeof(msg));
|
||||
close(fds[0]);
|
||||
if (IsLinux()) {
|
||||
ASSERT_STARTSWITH("error: pledge inet for socket", msg);
|
||||
ASSERT_STARTSWITH("error: protected syscall socket", msg);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -97,7 +97,7 @@ TEST(pledge, testLogMessage_onKillProcess) {
|
|||
read(fds[0], msg, sizeof(msg));
|
||||
close(fds[0]);
|
||||
if (IsLinux()) {
|
||||
ASSERT_STARTSWITH("error: pledge inet for socket", msg);
|
||||
ASSERT_STARTSWITH("error: protected syscall socket", msg);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -615,7 +615,7 @@ TEST(pledge, everything) {
|
|||
// contains 591 bpf instructions [2022-07-24]
|
||||
ASSERT_SYS(0, 0,
|
||||
pledge("stdio rpath wpath cpath dpath "
|
||||
"flock fattr inet unix dns tty "
|
||||
"flock fattr inet anet unix dns tty "
|
||||
"recvfd sendfd proc exec id "
|
||||
"unveil settime prot_exec "
|
||||
"vminfo tmppath",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue