Hi there, I’ve got an application that mmap’d /dev/zero. This isn’t particularly an insecure operation, all the application needs is some zero’d pages. However, the operation is being denied.
Is the code under your control? If so, could you modify it to use the MAP_ANONYMOUS flag instead? That avoids the need to open /dev/zero, and should work with the current policy.