aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/utils/capabilities.c
Commit message (Collapse)AuthorAgeFilesLines
* capabilities: Handle ERANGE in user and group lookupsTobias Brunner2015-06-231-12/+48
| | | | | | | | | | | | | | As it turns out, getpwnam_r, getgrnam_r, and friends will return ERANGE if _any_ user or group on the system is larger than will fit into the scratch buffer you pass to them. This reworks the resolve_uid and resolve_gid methods plus init_supplementary_groups to use a variable-size buffer that is grown until the results fit. Based on a patch by Evan Broder. Closes strongswan/strongswan#12.
* capabilities: Add build support for WindowsMartin Willi2014-06-041-3/+37
| | | | We might extend it in the future using some Windows rights management.
* capabilities: Proper error handling when reading groupsTobias Brunner2013-07-241-1/+8
|
* capabilities: Add function to check if a capability is held, without keeping itTobias Brunner2013-07-181-45/+63
| | | | | This can be useful if capabilities are not required anymore after dropping privileges.
* capabilities: Return effective UID/GID if user did not configure anythingTobias Brunner2013-06-251-2/+2
|
* capabilities: Report effective UID/GID after dropping capabilitiesTobias Brunner2013-06-251-1/+1
|
* capabilities: Handle CAP_CHOWN specially as it might not be requiredTobias Brunner2013-06-251-2/+60
|
* capabilities: Check effective UID as fallback if capabilities are not supportedTobias Brunner2013-06-251-1/+1
|
* capabilities: Ensure required capabilities are actually held by the process/userTobias Brunner2013-06-251-2/+51
|
* capabilities: leak-detective using dlsym() does not need CAP_SYS_NICE anymoreMartin Willi2013-05-151-6/+0
|
* capabilities: initialize supplementary groups only when doing a setuid()Martin Willi2013-05-151-1/+1
|
* When running with an unprivileged user, initialize supplementary groupsMartin Willi2013-03-011-1/+37
|
* Moved debug.[ch] to utils folderTobias Brunner2012-10-241-1/+1
|
* getpwnam_r and getgrnam_r are not supported by the Android NDKTobias Brunner2012-07-091-24/+69
|
* Refactored heavily #ifdefd capability code to its own libstrongswan classMartin Willi2012-07-041-0/+246