Home
last modified time | relevance | path

Searched refs:kAllowedMask (Results 1 – 1 of 1) sorted by relevance

/external/libchrome/sandbox/linux/seccomp-bpf-helpers/
Dsyscall_parameters_restrictions.cc165 const uint64_t kAllowedMask = MAP_SHARED | MAP_PRIVATE | MAP_ANONYMOUS | in RestrictMmapFlags() local
169 return If((flags & ~kAllowedMask) == 0, Allow()).Else(CrashSIGSYS()); in RestrictMmapFlags()
177 const uint64_t kAllowedMask = PROT_READ | PROT_WRITE | PROT_EXEC; in RestrictMprotectFlags() local
179 return If((prot & ~kAllowedMask) == 0, Allow()).Else(CrashSIGSYS()); in RestrictMprotectFlags()
195 const uint64_t kAllowedMask = O_ACCMODE | O_APPEND | O_NONBLOCK | O_SYNC | in RestrictFcntlCommands() local
208 If((long_arg & ~kAllowedMask) == 0, Allow()).Else(CrashSIGSYS())) in RestrictFcntlCommands()