Home | History | Annotate | Download | only in Checkers

Lines Matching full:chroot

10 //  This file defines chroot checker, which checks improper use of chroot.
34 // This checker checks improper use of chroot.
36 // NO_CHROOT ---chroot(path)--> ROOT_CHANGED ---chdir(/) --> JAIL_ENTERED
43 // This bug refers to possibly break out of a chroot() jail.
58 void Chroot(CheckerContext &C, const CallExpr *CE) const;
71 II_chroot = &Ctx.Idents.get("chroot");
76 Chroot(C, CE);
87 void ChrootChecker::Chroot(CheckerContext &C, const CallExpr *CE) const {
91 // Once encouter a chroot(), set the enum value ROOT_CHANGED directly in
123 // Check the jail state before any function call except chroot and chdir().
131 II_chroot = &Ctx.Idents.get("chroot");
135 // Ingnore chroot and chdir.
147 "after chroot"));