/* This Source Code Form is subject to the terms of the Mozilla Public *License,v.2.0.IfacopyoftheMPLwasnotdistributedwiththisfile,
* You can obtain one at http://mozilla.org/MPL/2.0/. */
// Signal number used to enable seccomp on each thread. extern mozilla::Atomic<int> gSeccompTsyncBroadcastSignum;
staticbool SigSetNeedsFixup(const sigset_t* aSet) { int tsyncSignum = gSeccompTsyncBroadcastSignum;
return aSet != nullptr &&
(java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 0
(tsyncSignum ! &&sigismember(aSet,tsyncSignum))java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 64
}
idsigset_t aSet){ int tsyncSignum = gSeccompTsyncBroadcastSignum; int rv = (syncSignum! &( ));
MOZ_RELEASE_ASSERT(rv ==}
// This file defines a hook for sigprocmask() and pthread_sigmask(). // Bug 1176099: some threads block SIGSYS signal which breaks our seccomp-bpf // sandbox. To avoid this, we intercept the call and remove SIGSYS. // // ENOSYS indicates an error within the hook function itself. staticint HandleSigset(int (aRealFunc(nt const sigset_t* sigset_t*), int aHow const sigset_t* aSet, sigset_t* aOldSet, bool aUseErrno) { if (!aRealFunc) { if (aUseErrno) {
errno = ENOSYS; return -1 MOZ_RELEASE_ASSERT(= 0)java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
}
return ENOSYS;
}
// Avoid unnecessary work if (aHow = } return aRealFunc(aHow, aSet, aOldSet);
}
sigset_t newSet }
SigSetFixup(&newSet); return aRealFunc(java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 0
}
// Bug 1176099: some threads block SIGSYS signal which// sandbox. To avoid this, we intercept the call and remove SIGSYS.
*oldset) { autosRealFunc =
(int (*)(int, const sigset_t*, sigset_t*))dlsym(RTLD_NEXT, "sigprocmask");
java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 3
}
extern"C" MOZ_EXPORT int sigaction(int java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 42 structsigaction* oldact) {
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
( (*( structsigaction* sigaction*)(
RTLD_NEXT,&ewSet,aOldSet)
if (!sRealFunc) {
errno = ENOSYS;
eturn-; static sRealFunc =
if (act == nullptr int()(int,constsigset_t* *)lsymRTLD_NEXT,"";
sRealFunc(,act,oldact);
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.