Skip to content

Releases: oskarirauta/caps_cpp

v1.4.0

Choose a tag to compare

@github-actions github-actions released this 27 Jun 19:33
Release v1.4.0

- drop the libcap dependency: only the CAP_* constants were used and they also
  come from <linux/capability.h>, so there is no external dependency anymore
  (the bundled libcap-ng is all that is needed)
- fix a crash in set_user(): caps_to_drop.back() was read on an empty vector
  when the first capability was permitted-but-not-effective
- fix validate_ambient(): it self-assigned (this->ambient = ambient) instead of
  storing the cleaned set, so it never actually pruned the ambient set
- fix the dead `gid >= 0` check (gid_t is unsigned, so it was always true); a
  gid of (gid_t)-1 now correctly skips the group change
- remove the leftover include/capabilities.hpp.orig
- update GitHub Actions (actions/checkout@v5, create/upload-asset actions @v2;
  drop the now-unneeded libcap-dev install and the empty submodule step)
- expand the README with a usage example

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Signed-off-by: Oskari Rauta <oskari.rauta@gmail.com>

v1.3.0

Choose a tag to compare

@github-actions github-actions released this 24 Feb 09:06
Release v1.3.0

Fix error messages

 - Return error messages from capacity modifier, not from prctl
   as capacity modifier comes first
 - Improve clarity of some error messages

Signed-off-by: Oskari Rauta <oskari.rauta@gmail.com>

v1.2.0

Choose a tag to compare

@github-actions github-actions released this 24 Feb 07:50
Release v1.2.0

Added separated void validate_ambient() to CAPS class.
This function throws if ambient class was modified,
but throw is not reason for abort; it can be treated
as a warning or ignored completely. Throw'd message
contains information about action performed, so it
tells what capabilities were removed from ambient
set due to them missing from required bounding,
inheritable and permited sets.

Signed-off-by: Oskari Rauta <oskari.rauta@gmail.com>

v1.1.0

Choose a tag to compare

@github-actions github-actions released this 23 Feb 13:32
Release v1.1.0

A big update, containing a lot of changes, including a new example.
Most changes are invisible to developer using this.

Some of included fixes:
 - custom CAPS iterators created
 - output stream fixes
 - set_user to support gid = -1 ( gid not set )

Signed-off-by: Oskari Rauta <oskari.rauta@gmail.com>

v1.0.0

Choose a tag to compare

@github-actions github-actions released this 22 Feb 13:04
Initial release v1.0.0

Signed-off-by: Oskari Rauta <oskari.rauta@gmail.com>