mirror of
https://github.com/google/sandboxed-api.git
synced 2024-03-22 13:11:30 +08:00
Log more info for seccomp setup failure
PiperOrigin-RevId: 368618345 Change-Id: Ia1559ece8f83cf27623adab4baa141cd8cfdf143
This commit is contained in:
parent
6a679a407d
commit
c15b5cb123
|
@ -219,10 +219,14 @@ void Client::ApplyPolicyAndBecomeTracee() {
|
||||||
SAPI_RAW_CHECK(ret == kSandbox2ClientDone,
|
SAPI_RAW_CHECK(ret == kSandbox2ClientDone,
|
||||||
"invalid confirmation from executor");
|
"invalid confirmation from executor");
|
||||||
|
|
||||||
SAPI_RAW_CHECK(
|
int result =
|
||||||
syscall(__NR_seccomp, SECCOMP_SET_MODE_FILTER, SECCOMP_FILTER_FLAG_TSYNC,
|
syscall(__NR_seccomp, SECCOMP_SET_MODE_FILTER, SECCOMP_FILTER_FLAG_TSYNC,
|
||||||
reinterpret_cast<uintptr_t>(&prog)) == 0,
|
reinterpret_cast<uintptr_t>(&prog));
|
||||||
"setting SECCOMP_FILTER_FLAG_TSYNC flag");
|
SAPI_RAW_PCHECK(result != -1, "setting seccomp filter");
|
||||||
|
SAPI_RAW_PCHECK(result == 0,
|
||||||
|
"synchronizing threads using SECCOMP_FILTER_FLAG_TSYNC flag "
|
||||||
|
"for thread=%d",
|
||||||
|
result);
|
||||||
}
|
}
|
||||||
|
|
||||||
int Client::GetMappedFD(const std::string& name) {
|
int Client::GetMappedFD(const std::string& name) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user