[cgroups2] Helper to check device entry normalization.

Currently we assume that a device state is normalized before using it
for generating ebpf files. However, we have not been enforcing these
constraints.

We add a helper to check if a device state is normalized so that we can
enforce these constraints.

An allow or deny list is 'normalized' iff everything below are true:

1. No Entry has empty accesses specified.
2. No two entries on the same list can have the same selector (type,
   major & minor numbers).
3. No two entries on the same list can be encompassed by the other
   entry (see Entry::encompasses).

Review: https://reviews.apache.org/r/75099/
3 files changed
tree: 2f9d95eefc6e58a36705aab734d7aac8bb93c9e6
  1. 3rdparty/
  2. bin/
  3. cmake/
  4. docs/
  5. include/
  6. m4/
  7. site/
  8. src/
  9. support/
  10. .asf.yaml
  11. .gitattributes
  12. bootstrap
  13. CHANGELOG
  14. CMakeLists.txt
  15. configure.ac
  16. Doxyfile
  17. LICENSE
  18. Makefile.am
  19. mesos.pc.in
  20. NOTICE
  21. README.md
README.md

Apache Mesos

Apache Mesos is a cluster manager that provides efficient resource isolation and sharing across distributed applications, or frameworks. It can run Hadoop, Jenkins, Spark, Aurora, and other frameworks on a dynamically shared pool of nodes.

Visit us at mesos.apache.org.

Mailing Lists

Documentation

Documentation is available in the docs/ directory. Additionally, a rendered HTML version can be found on the Mesos website's Documentation page.

Installation

Instructions are included on the Getting Started page.

License

Apache Mesos is licensed under the Apache License, Version 2.0.

For additional information, see the LICENSE and NOTICE files.