aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Expand)AuthorFilesLines
2024-04-05Tidy up some of the automated formatting.HEADreviewmasterAndrew G. Morgan3-41/+69
2024-04-05doc: document the use of `*` to refer to all usersCarlos Rodriguez-Fernandez1-1/+1
2024-04-03doc: document pam_cap and its confCarlos Rodriguez-Fernandez3-3/+125
2024-02-18Reformat doc text for web.goAndrew G. Morgan1-6/+6
2024-01-29getpcaps: fix program name in help messageJakub Wilk1-1/+1
2024-01-12Fix reference formatting in the captree man page.Jakub Wilk1-1/+1
2023-12-22Stop using _pam_overwrite() in pam_cap.c.Andrew G. Morgan1-2/+2
2023-08-13Restore c89 compaitbility for C source files.Andrew G. Morgan1-3/+3
2023-06-24Add a check for a capabability of all spaces.Andrew G. Morgan1-0/+12
2023-06-24Make it harder to set invalid capabilities on files.Andrew G. Morgan3-10/+55
2023-05-24Tidy up the overview example for the "cap" package.Andrew G. Morgan1-1/+2
2023-05-14Up the release version to 2.69v1.2.69psx/v1.2.69libcap-korg-2.69libcap-2.69cap/v1.2.69Andrew G. Morgan11-13/+13
2023-05-09Ignore the content of a capability.conf file if it is world-writable.Andrew G. Morgan4-5/+44
2023-05-09There was a small memory leak in pam_cap.so when libpam returned an error.Andrew G. Morgan1-1/+6
2023-05-09Large strings can confuse libcap's internal strdup code.Andrew G. Morgan1-5/+7
2023-05-09Correct the check of pthread_create()'s return value.Andrew G. Morgan1-1/+1
2023-04-22Partially revive fully static binaries.Andrew G. Morgan2-2/+7
2023-04-10Improve style in man page function prototypesEmanuele Torre2-7/+7
2023-03-25Up the release version to 2.68v1.2.68psx/v1.2.68libcap-korg-2.68libcap-2.68cap/v1.2.68Andrew G. Morgan11-13/+13
2023-03-25Undo hiding the wrapped function call in libpsx.Andrew G. Morgan1-1/+0
2023-03-19Tidy up some text explaining cap.NamedCaps.Andrew G. Morgan2-4/+4
2023-03-18Some formatting fixes for the libpsx man page.Andrew G. Morgan1-14/+20
2023-03-11Replace the README with a README.mdAndrew G. Morgan3-18/+30
2023-02-19Recognize the new man page links.Andrew G. Morgan1-0/+2
2023-02-19Update documentation for all API functions.Andrew G. Morgan11-30/+82
2023-02-11Drop vendor directory and clean up extra gcc...sh fileAndrew G. Morgan3-141/+0
2023-02-11Simplify and refactor the bug215510 code.Andrew G. Morgan14-51/+309
2023-02-09Make the compare-cap binary clean up after itself.Andrew G. Morgan2-5/+8
2023-02-08Be more strict about what symbols are externally visible.Andrew G. Morgan3-2/+7
2023-02-06Sigh. Fix some copy-pasta errors with psx_test.go changes.Andrew G. Morgan1-3/+3
2023-02-06Add some more explicit testing to the psx_test.go code.Andrew G. Morgan1-1/+58
2023-02-06Provide a method to import preamble and postscript for md man pagesAndrew G. Morgan1-0/+16
2023-02-06Drop an unnecessary use of ", _" from captree.goAndrew G. Morgan1-1/+1
2023-02-02Up the release version to 2.67v1.2.67psx/v1.2.67libcap-korg-2.67libcap-2.67cap/v1.2.67Andrew G. Morgan10-12/+12
2023-02-02Resolve a couple of compiler warnings.Andrew G. Morgan2-2/+2
2022-10-30Clean up some of the markdown text.Andrew G. Morgan2-22/+22
2022-10-29Minor clean ups of the contrib/bug216610 code/docsAndrew G. Morgan2-5/+8
2022-10-29Add support for optimized C compilation to .syso objects.Andrew G. Morgan3-26/+104
2022-10-23Add an example of combining Go, C code and "psx" without cgo.Andrew G. Morgan8-0/+258
2022-10-19Reviewed license information and adde SPDX ids.Andrew G. Morgan5-1/+9
2022-10-16Reviewed man pages, adding overlooked references.Andrew G. Morgan11-29/+150
2022-10-15Modify DYNAMIC=no linking to only refer to libcap.aAndrew G. Morgan1-5/+7
2022-10-09Add some exploit demonstration code to capso.soAndrew G. Morgan2-7/+78
2022-10-04Address bad-whatis-entry issue noticed by Debian build testsAndrew G. Morgan2-0/+10
2022-09-29Use POSIX `grep`David Seifert4-4/+4
2022-09-24Up the release version to 2.66v1.2.66psx/v1.2.66libcap-korg-2.66libcap-2.66cap/v1.2.66Andrew G. Morgan10-12/+12
2022-09-22Fix typos in the cap_from_text.3 man page.Andrew G. Morgan1-4/+4
2022-09-22Add captrace to .gitignore fileAndrew G. Morgan1-0/+1
2022-09-18Add an example of using BPF kprobing to trace capability use.Andrew G. Morgan3-2/+240
2022-09-04Clean up getpcaps code.Andrew G. Morgan1-51/+52
2022-09-04getpcaps: catch PID parsing errors.Jakub Wilk1-1/+18
2022-08-05Fix an issue with bash displaying an error.Andrew G. Morgan2-14/+41
2022-07-22Some more simplifications for buildingAndrew G. Morgan2-1/+6
2022-07-21Fix for "make clean ; make -j48 test"Andrew G. Morgan1-2/+2
2022-07-17Up the release version to 2.65v1.2.65psx/v1.2.65libcap-korg-2.65libcap-2.65cap/v1.2.65Andrew G. Morgan10-12/+12
2022-07-09Include more signatures in pgp.keys.asc.Andrew G. Morgan1-90/+161
2022-05-17Close out this comment in the go/MakefileAndrew G. Morgan1-1/+4
2022-04-30Prevent 'capsh --user=xxx --' from generating a bash error.Andrew G. Morgan2-1/+24
2022-04-28Improve documentation for cap_get_pid and cap_reset_ambient.Andrew G. Morgan1-18/+35
2022-04-17Fix syntax error in DEBUG protected setcap.c code.Andrew G. Morgan1-1/+1
2022-04-11More useful captree usage string and man page.Andrew G. Morgan2-7/+17
2022-04-10Up the release version to 2.64v1.2.64psx/v1.2.64libcap-korg-2.64libcap-2.64cap/v1.2.64Andrew G. Morgan9-11/+11
2022-04-10Avoid a deadlock in forked psx thread exit.Andrew G. Morgan1-3/+10
2022-04-10Include LIBCAP_{MAJOR,MINOR} #define's in sys/capability.hAndrew G. Morgan2-0/+9
2022-04-09Clarify how the cap_get_pid() argument is interpreted.Andrew G. Morgan1-1/+6
2022-03-29Fix prctl return code/errno handling in libcap.Andrew G. Morgan2-26/+37
2022-02-13Be explicit about CGO_ENABLED=1 for compare-cap build.Andrew G. Morgan1-2/+2
2022-02-05psx: free allocated memory at exit.Andrew G. Morgan1-1/+43
2022-01-23Up the release version to 2.63v1.2.63psx/v1.2.63libcap-korg-2.63libcap-2.63cap/v1.2.63Andrew G. Morgan8-10/+10
2022-01-23Trim includes.Andrew G. Morgan6-9/+6
2022-01-23Add a test case for a deadlock.Andrew G. Morgan3-3/+44
2022-01-19Reset the value of errno for main()Andrew G. Morgan2-5/+12
2021-12-13Fix argument crash dump order in psx text dumper.Andrew G. Morgan1-6/+6
2021-12-12Make cgo psx_syscall variant crash like runtime.AllThreadsSyscallAndrew G. Morgan9-19/+162
2021-12-11Up the release version to 2.62v1.2.62psx/v1.2.62libcap-korg-2.62libcap-2.62cap/v1.2.62Andrew G. Morgan8-10/+10
2021-12-11Clean up cap package documentation for Launch.Andrew G. Morgan1-5/+8
2021-12-11Complete launch thread exit sequence.Andrew G. Morgan1-20/+29
2021-12-10Take more care post launchAndrew G. Morgan4-6/+72
2021-12-04Drop perl from the build requirements.Andrew G. Morgan5-11/+32
2021-11-28Fix `-Wformat` on 32-bit platformsDavid Seifert1-1/+1
2021-11-21Include link for cap_max_bits.3 man page.Andrew G. Morgan2-5/+8
2021-11-21Recognize default secbits of 0 as "HYBRID" mode.Andrew G. Morgan5-3/+21
2021-11-20Up the release version to 2.61v1.2.61psx/v1.2.61libcap-korg-2.61libcap-2.61cap/v1.2.61Andrew G. Morgan8-10/+10
2021-11-20Clean up libpsx.so execable mode.Andrew G. Morgan2-2/+17
2021-11-20Add some more info to the libcap.so as an executable.Andrew G. Morgan2-0/+49
2021-11-20Add some information about cap_max_bits().Andrew G. Morgan3-1/+17
2021-11-17Prune the the.Andrew G. Morgan3-4/+4
2021-11-14Force libcap.so to initialize itself when run directly.Andrew G. Morgan4-3/+22
2021-11-14Work around musl not hard-coding the ABI for Linux x86_64.Andrew G. Morgan1-4/+8
2021-11-13Work around a __i386__ compilation issue for runnable .so files.Andrew G. Morgan1-14/+20
2021-11-10Pick the correct topdir in our sucap example.Andrew G. Morgan1-1/+1
2021-11-09Include some helpful debugging for capso.soAndrew G. Morgan2-1/+16
2021-11-07Use calloc'd memory for unix domain socket exchange.Andrew G. Morgan1-24/+43
2021-11-07An example of a shared library object with its own file capability.Andrew G. Morgan5-0/+353
2021-11-06capsh: better error handling for integer parsing.Andrew G. Morgan1-9/+40
2021-11-06setcap: clean up error handling of the ns rootid argument.Andrew G. Morgan1-8/+33
2021-10-22Up the release version to 2.60v1.2.60psx/v1.2.60libcap-korg-2.60libcap-2.60cap/v1.2.60Andrew G. Morgan8-10/+10
2021-10-22Add --quiet and cap_launch() support to capsh.Andrew G. Morgan2-17/+87
2021-10-22Unify the cap package tests for good *Set or *IAB types.Andrew G. Morgan5-33/+58
2021-10-22Concurrency fixes for *cap.Set atomicity.Andrew G. Morgan4-36/+58
2021-10-22Bugfix for (*IAB).Fill() and improve atomicity of API.Andrew G. Morgan3-15/+105
2021-10-22Make cap_launcher_t operations atomic.Andrew G. Morgan4-21/+72
2021-10-22Add a cap_iab_dup() function and make IAB access atomic.Andrew G. Morgan10-16/+97
2021-10-22Make cap_t operations thread safe.Andrew G. Morgan7-57/+152
2021-10-01Implement cap_fill_flag() and cap.FillFlag() APIs.Andrew G. Morgan8-15/+68
2021-10-01Lower the start up memory allocation overhead.Andrew G. Morgan4-7/+16
2021-09-29Fix miscellaneous build and lint warnings.Andrew G. Morgan11-439/+459
2021-09-28Make capshdoc.h stand alone compile friendly.Andrew G. Morgan2-2/+6
2021-09-26Up the release version to 2.59v1.2.59psx/v1.2.59libcap-korg-2.59libcap-2.59cap/v1.2.59Andrew G. Morgan8-10/+10
2021-09-24Fix to 'make clean sudotest' reliablyAndrew G. Morgan1-1/+1
2021-09-24Recognize that NULL is an invalid cap_t and cap_iab_t.Andrew G. Morgan5-13/+33
2021-09-23Update example to avoid reference to deprecated Compare function.Andrew G. Morgan1-1/+1
2021-09-22Spelling fix.Andrew G. Morgan1-1/+1
2021-09-17More compliant cap.Differs documentation.Andrew G. Morgan1-3/+17
2021-09-17Up the release version to 2.58v1.2.58psx/v1.2.58libcap-korg-2.58libcap-2.58cap/v1.2.58Andrew G. Morgan8-10/+10
2021-09-14Fix typo in capsh.Andrew G. Morgan1-1/+1
2021-09-14Add some debugging info for the pam_cap.so deferred callback.Andrew G. Morgan1-0/+18
2021-09-14Another attempt at supporting Ambient vector setting from pam_cap.so.Andrew G. Morgan3-60/+55
2021-09-14Not sure why I didn't include this line before!Andrew G. Morgan1-0/+1
2021-09-13Simplify the contric/sucap/su structure.Andrew G. Morgan2-77/+80
2021-09-13Add PAM "session" support to pam_cap.so.Andrew G. Morgan3-19/+79
2021-09-12Free _cap_proc_dir on exit.Andrew G. Morgan1-0/+13
2021-09-12kdebug shouldn't require sudotest to build uns_test binary.Andrew G. Morgan1-1/+2
2021-09-11Recover the kdebug make rules.Andrew G. Morgan1-1/+1
2021-09-11Add in something the builder can override to augment the GO buildsAndrew G. Morgan2-12/+13
2021-09-10Update pam_cap .gitignore fileAndrew G. Morgan1-0/+1
2021-09-10Another missing dependency for make -j13Andrew G. Morgan1-1/+6
2021-09-10More standard deprecation comment for cap.Compare and cap.IABInitAndrew G. Morgan2-6/+39
2021-09-09Up the release version to 2.57v1.2.57psx/v1.2.57libcap-korg-2.57libcap-2.57cap/v1.2.57Andrew G. Morgan8-10/+10
2021-09-07Implement --strict capsh argument.Andrew G. Morgan3-95/+109
2021-09-07Be more systematic about POSIX.1e value group namesAndrew G. Morgan6-78/+94
2021-09-05Fixed parallel make issuesAndrew G. Morgan3-3/+3
2021-09-05Treat ENOTSUP as an expected error for getcap.Andrew G. Morgan1-1/+1
2021-09-05Add --mode query support to capshAndrew G. Morgan2-27/+41
2021-09-04Refactor top level Makefile to reduce redundant buildingAndrew G. Morgan6-28/+21
2021-09-04Don't build the tests/binaries until we want to run themAndrew G. Morgan1-5/+3
2021-09-04Build system fixesDavid Seifert1-2/+3
2021-09-02Up the release version to 2.56v1.2.56psx/v1.2.56libcap-korg-2.56libcap-2.56cap/v1.2.56Andrew G. Morgan8-10/+10
2021-09-02Document latest option for captree in its man page.Andrew G. Morgan1-1/+8
2021-09-02Make captree use --color on any terminal by default.Andrew G. Morgan1-13/+28
2021-09-01Avoid disecting sub-trees of processes in captree output.Andrew G. Morgan1-12/+84
2021-09-01Don't display duplicate subtrees with captree.Andrew G. Morgan1-0/+8
2021-09-01sucap/su should start with an empty INHERITABLE flag.Andrew G. Morgan1-3/+14
2021-09-01Canonicalize build systemDavid Seifert6-20/+12
2021-09-01cap_iab.3 doc fixes and cleanupAndrew G. Morgan1-34/+31
2021-09-01Permit root to run test_pam_cap without arguments.Andrew G. Morgan1-1/+6
2021-08-31Move $(LDFLAGS) earlier in build command lines.Andrew G. Morgan3-13/+15
2021-08-31Resurrect the $(WARNINGS) for the target buildAndrew G. Morgan2-6/+6
2021-08-30Be more consistent with make variables.Andrew G. Morgan4-25/+27
2021-08-29Up the release version to 2.55v1.2.55psx/v1.2.55libcap-korg-2.55libcap-2.55cap/v1.2.55Andrew G. Morgan8-10/+10
2021-08-29Update man pages.Andrew G. Morgan5-30/+50
2021-08-29Add captree command line options and support process by name.Andrew G. Morgan3-9/+117
2021-08-28Make sudotest more robust against untestable environmentsAndrew G. Morgan7-9/+41
2021-08-28Avoid the build server failure.Andrew G. Morgan2-9/+19
2021-08-27Still unclear where cap_test is crashing.Andrew G. Morgan1-0/+28
2021-08-27Speculative fix for build failure.Andrew G. Morgan3-6/+16
2021-08-27Implement libcap:cap_proc_root() function.Andrew G. Morgan4-4/+74
2021-08-27More fixes for static analysis issues.Andrew G. Morgan9-38/+199
2021-08-26Stop installing the cap and psx packages, but do install captree.Andrew G. Morgan3-7/+33
2021-08-26Eliminate an alignment issue found by clang.Andrew G. Morgan2-79/+81
2021-08-26Fix some static analysis results.Andrew G. Morgan11-8/+69
2021-08-25Up the release version to 2.54v1.2.54psx/v1.2.54libcap-korg-2.54libcap-2.54cap/v1.2.54Andrew G. Morgan8-10/+10
2021-08-25Add a comment about overriding DYNAMIC.Andrew G. Morgan1-0/+1
2021-08-25Support overriding choice of 'sudo'.Andrew G. Morgan5-17/+18
2021-08-25Add some more information to help, and contextual error messages.Andrew G. Morgan1-7/+21
2021-08-25Absorb some of archlinux's Make.Rule customizations.Andrew G. Morgan1-1/+9
2021-08-25Address a compiler warning with the tests/uns_test.Andrew G. Morgan1-1/+3
2021-08-23Make 'progs/getpcaps --iab' act like 'go/captree' in output formatAndrew G. Morgan1-12/+23
2021-08-23Revert most of the LDFLAGS -> LDSTATIC change.Andrew G. Morgan2-11/+17
2021-08-23Allow the builder to force -lpam linkage.Andrew G. Morgan2-7/+25
2021-08-23libcap/Makefile: don't overwrite 'empty' when generating loader.txtArnout Vandecappelle (Essensium/Mind)1-1/+1
2021-08-22Add cap_iab_{compare,get_pid} functions to libcap; --iab to getpcaps.Andrew G. Morgan10-8/+175
2021-08-22Add the captree example.Andrew G. Morgan4-2/+331
2021-08-22Revamp the comparison API of *Set and *IAB tuples; add IABGetPID().Andrew G. Morgan5-13/+157
2021-08-22Fix error code handling for failed cap_reset_ambient()Andrew G. Morgan1-8/+3
2021-08-21Handle libcap allocation failures more explicitly and fix a memory leak.Andrew G. Morgan4-22/+66
2021-08-21Check return values of allocating functionsSamanta Navarro1-0/+12
2021-08-21Fix endless loop with very long stringsSamanta Navarro1-1/+1
2021-08-19Drop non-standard IPATH in favor of CPPFLAGS.Andrew G. Morgan5-23/+31
2021-08-19Make lib*.so files executable.Andrew G. Morgan1-2/+2
2021-08-15Up the release version to 2.53v1.2.53psx/v1.2.53libcap-korg-2.53libcap-2.53cap/v1.2.53Andrew G. Morgan7-9/+9
2021-08-14Fix typos.Samanta Navarro25-59/+59
2021-08-14Complete cap_launch fix.Andrew G. Morgan1-1/+3
2021-08-14Fix cap_launch failures - error propogation.Andrew G. Morgan2-19/+28
2021-08-13Support distributions that build libcap with aggressive link options.Andrew G. Morgan5-21/+54
2021-08-11Support CC=clang again.Andrew G. Morgan4-4/+7
2021-08-10Noticed that this pam_cap/Makefile comment had unintentionally migratedAndrew G. Morgan1-5/+5
2021-08-03Add some documentation concerning the cap.FuncLauncher() behavior.Andrew G. Morgan1-1/+11
2021-08-01Up the release version to 2.52v1.2.52psx/v1.2.52libcap-korg-2.52libcap-2.52cap/v1.2.52Andrew G. Morgan7-9/+9
2021-08-01Revive an ancient 'su' implementation to explore use with libcap.Andrew G. Morgan5-511/+638
2021-08-01Import an old version of su from SimplePAMApps-0.60Andrew G. Morgan3-0/+1534
2021-08-01Add a note about cap_launch callback function return values.Andrew G. Morgan1-8/+17
2021-07-15Clean up allocated memory.Andrew G. Morgan1-2/+11
2021-07-14realloc less at startup executing a .so fileAndrew G. Morgan1-2/+2
2021-07-13Allow for systems with no /proc/self/cmdline file.Andrew G. Morgan2-2/+2
2021-07-12Clarify some cap_launch documentation.Andrew G. Morgan1-2/+6
2021-07-12Support running pam_cap.so as a simple binary.Andrew G. Morgan3-5/+70
2021-07-12Support simply executing the built shared libraries.Andrew G. Morgan6-16/+154
2021-07-02When --suggest'ing also compare against capability namesAndrew G. Morgan1-0/+10
2021-07-02Provide a '--current' command line argument for capsh.Andrew G. Morgan3-13/+33