Home | History | Annotate | Download | only in Checkers

Lines Matching refs:ChrootChecker

1 //===- Chrootchecker.cpp -------- Basic security checks ----------*- C++ -*-==//
41 class ChrootChecker : public Checker<eval::Call, check::PreStmt<CallExpr> > {
47 ChrootChecker() : II_chroot(nullptr), II_chdir(nullptr) {}
64 bool ChrootChecker::evalCall(const CallExpr *CE, CheckerContext &C) const {
87 void ChrootChecker::Chroot(CheckerContext &C, const CallExpr *CE) const {
93 state = Mgr.addGDM(state, ChrootChecker::getTag(), (void*) ROOT_CHANGED);
97 void ChrootChecker::Chdir(CheckerContext &C, const CallExpr *CE) const {
102 const void *k = state->FindGDM(ChrootChecker::getTag());
115 state = Mgr.addGDM(state, ChrootChecker::getTag(),
124 void ChrootChecker::checkPreStmt(const CallExpr *CE, CheckerContext &C) const {
140 void *const* k = C.getState()->FindGDM(ChrootChecker::getTag());
157 mgr.registerChecker<ChrootChecker>();