Start adding POSIX 1.e draft file capability support for real
authorPanu Matilainen <pmatilai@redhat.com>
Wed, 29 Oct 2008 08:49:25 +0000 (10:49 +0200)
committerPanu Matilainen <pmatilai@redhat.com>
Wed, 29 Oct 2008 08:49:25 +0000 (10:49 +0200)
commita792c55ffae23f483121401fe4ca6724abc57bb5
tree20117b61769bfcd54aa4d081770e01aa1c5b007c
parentdaf28d3bf452a1d8daa8f5a70b860ce91b76fffd
Start adding POSIX 1.e draft file capability support for real
- Parse %caps() from spec filelists, making best-guess verification of
  capability string sanity by passing to cap_from_text()
- The posix draft specifies capability export presentation through
  cap_copy_ext() which would be fine, except that we don't have support for
  arrays of binary data. So we simply store the textual representation
  of the capabilities in a string array which we do have.
- Only add capability tag on packages which actually have capabilities to
  avoid unnecessary header bloat.
- Add a new rpmlib() dependency for file capabilities, packages relying
  on file capabilities wont work correctly unless the capabilities are set.
  To be fully correct, support for on-filesystem file capabilities should
  be checked at runtime, as this depends on kernel versions and such...
build/files.c
lib/rpmds.c
lib/rpmtag.h