seccomp: Limit mmap and mprotect arg2.

We do not want to allow writable executable memory.

BUG=b:172212144
TEST=CQ passes

Change-Id: I3d0fcbd7a2e175b4d087fb09da5794c461b06e47
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/logitech-updater/+/3943768
Commit-Queue: Kyle Williams <kdgwill@chromium.org>
Auto-Submit: Allen Webb <allenwebb@google.com>
Tested-by: Allen Webb <allenwebb@google.com>
Reviewed-by: Kyle Williams <kdgwill@chromium.org>
2 files changed
tree: 3a6bf11ba9f692b90ab003ee4d5dc23306b7d006
  1. conf/
  2. seccomp/
  3. src/
  4. .gitignore
  5. common.mk
  6. LICENSE
  7. Makefile
  8. OWNERS
  9. README.md
README.md

logitech-updater is a utility to upgrade logitech camera firmwares.

Requirements

The GNU C/C++ library is required.

Building

At the top level of the directory.

$ make

Alternatively at Chromium OS development environment,

$ emerge-${BOARD} logitech-updater

How to use

logitech updater currently includes the follow executables: ptzpro2-updater
$ ptzpro2-updater -h