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.cc202 const uint64_t kAllowedMask = MAP_SHARED | MAP_PRIVATE | MAP_ANONYMOUS | in RestrictMmapFlags() local
206 return If((flags & ~kAllowedMask) == 0, Allow()).Else(CrashSIGSYS()); in RestrictMmapFlags()
214 const uint64_t kAllowedMask = PROT_READ | PROT_WRITE | PROT_EXEC; in RestrictMprotectFlags() local
216 return If((prot & ~kAllowedMask) == 0, Allow()).Else(CrashSIGSYS()); in RestrictMprotectFlags()
232 const uint64_t kAllowedMask = O_ACCMODE | O_APPEND | O_NONBLOCK | O_SYNC | in RestrictFcntlCommands() local
245 If((long_arg & ~kAllowedMask) == 0, Allow()).Else(CrashSIGSYS())) in RestrictFcntlCommands()