aboutsummaryrefslogtreecommitdiffstats
path: root/progs
AgeCommit message (Expand)AuthorFilesLines
2024-01-29getpcaps: fix program name in help messageJakub Wilk1-1/+1
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. Morgan1-10/+23
2023-04-22Partially revive fully static binaries.Andrew G. Morgan1-0/+5
2023-02-19Update documentation for all API functions.Andrew G. Morgan1-0/+4
2023-02-09Make the compare-cap binary clean up after itself.Andrew G. Morgan1-0/+1
2022-10-15Modify DYNAMIC=no linking to only refer to libcap.aAndrew G. Morgan1-5/+7
2022-09-29Use POSIX `grep`David Seifert2-2/+2
2022-09-04Clean up getpcaps code.Andrew G. Morgan1-51/+52
2022-09-04getpcaps: catch PID parsing errors.Jakub Wilk1-1/+18
2022-04-30Prevent 'capsh --user=xxx --' from generating a bash error.Andrew G. Morgan1-1/+18
2022-04-17Fix syntax error in DEBUG protected setcap.c code.Andrew G. Morgan1-1/+1
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-22Add --quiet and cap_launch() support to capsh.Andrew G. Morgan1-15/+68
2021-09-29Fix miscellaneous build and lint warnings.Andrew G. Morgan5-430/+433
2021-09-28Make capshdoc.h stand alone compile friendly.Andrew G. Morgan2-2/+6
2021-09-24Fix to 'make clean sudotest' reliablyAndrew G. Morgan1-1/+1
2021-09-14Fix typo in capsh.Andrew G. Morgan1-1/+1
2021-09-07Implement --strict capsh argument.Andrew G. Morgan2-88/+89
2021-09-07Be more systematic about POSIX.1e value group namesAndrew G. Morgan1-17/+22
2021-09-05Fixed parallel make issuesAndrew G. Morgan1-1/+1
2021-09-05Treat ENOTSUP as an expected error for getcap.Andrew G. Morgan1-1/+1
2021-09-05Add --mode query support to capshAndrew G. Morgan1-24/+33
2021-09-04Refactor top level Makefile to reduce redundant buildingAndrew G. Morgan1-2/+3
2021-08-31Move $(LDFLAGS) earlier in build command lines.Andrew G. Morgan1-2/+4
2021-08-30Be more consistent with make variables.Andrew G. Morgan1-2/+2
2021-08-28Make sudotest more robust against untestable environmentsAndrew G. Morgan2-6/+19
2021-08-27More fixes for static analysis issues.Andrew G. Morgan2-11/+30
2021-08-26Fix some static analysis results.Andrew G. Morgan3-5/+26
2021-08-25Support overriding choice of 'sudo'.Andrew G. Morgan1-1/+1
2021-08-25Add some more information to help, and contextual error messages.Andrew G. Morgan1-7/+21
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. Morgan1-3/+6
2021-08-22Add cap_iab_{compare,get_pid} functions to libcap; --iab to getpcaps.Andrew G. Morgan1-2/+20
2021-08-19Drop non-standard IPATH in favor of CPPFLAGS.Andrew G. Morgan1-3/+3
2021-08-14Fix typos.Samanta Navarro2-5/+5
2021-08-13Support distributions that build libcap with aggressive link options.Andrew G. Morgan1-4/+4
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. Morgan2-12/+29
2021-06-20Clean up some compilation warningsAndrew G. Morgan1-0/+1
2021-06-19Add kernel test to quicktest.shAndrew G. Morgan2-2/+13
2021-05-28Make capsh an installed binary againAndrew G. Morgan1-2/+2
2021-05-16Add support for --suggest=phrase to capsh.Andrew G. Morgan2-16/+42
2021-05-16Validate that user namespaces require CAP_SETFCAP to map UID=0.Andrew G. Morgan1-0/+5
2021-04-22Fruit of more static analysis resultsAndrew G. Morgan1-6/+18
2021-04-21Bug fixes identified by static code analysis.Andrew G. Morgan1-8/+22
2021-03-27Add --explain=cap_foo support to capsh.Andrew G. Morgan4-8/+496
2021-02-14Trying to stop the DOS attack on me from lawyers.Andrew G. Morgan4-7/+8
2020-12-26Augment NOPRIV libcap mode with the sticky NO_NEW_PRIVS prctl bit.Andrew G. Morgan1-2/+15
2020-12-26People keep emailing me about the license for libcap.Andrew G. Morgan4-41/+65
2020-12-26Clean up the exit status to match other binaries.Andrew G. Morgan1-5/+5
2020-12-23checkpointAndrew G. Morgan3-10/+15
2020-12-22Improve the usage and diagnostic message for setcapAndrew G. Morgan1-14/+30
2020-12-07Make quicktest.sh work again with kernel testAndrew G. Morgan1-1/+3
2020-10-28Guarantee sufficient memory for scratch pathnameAndrew G. Morgan1-1/+1
2020-10-27Support systems with no available pthreads support.Andrew G. Morgan1-7/+8
2020-10-27If needed search PATH for capsh (==) self-execution.Andrew G. Morgan2-2/+56
2020-09-12Be slightly more selective in what to build.Andrew G. Morgan1-2/+4
2020-09-07Migrate all uses of tcapsh-static to sudotest target.Andrew G. Morgan1-1/+1
2020-09-07Support dynamic test compilation and execution.Andrew G. Morgan3-9/+15
2020-07-16capsh.c: Spelling fixes in usage() messageMichael Kerrisk (man-pages)1-2/+2
2020-06-04Better protect some header #define's.Andrew G. Morgan2-0/+3
2020-06-01Work around a bug in glibc.Andrew G. Morgan1-9/+9
2020-05-12Fix typosChristian Kastner1-1/+1
2020-04-05Support overriding the preferred shell for capsh.Andrew G. Morgan2-7/+15
2020-02-25Remove ` character from getcap outputretornam1-2/+2
2020-02-23A convenient IAB abstraction for inherited capability vectors.Andrew G. Morgan2-0/+26
2020-01-27More capsh testing features.Andrew G. Morgan1-3/+34
2020-01-20Add testing features to capsh.Andrew G. Morgan1-2/+51
2020-01-04Add a --help option to getpcaps.Andrew G. Morgan1-5/+26
2020-01-03Refactor the way we do the psx linkage in libcap.Andrew G. Morgan1-0/+7
2019-12-23Ensure that gcc -std=c89 build works.Andrew G. Morgan1-0/+2
2019-12-15More convenience functionality for libcap.Andrew G. Morgan2-30/+102
2019-12-15Break out test into two parts: test or sudotest.Andrew G. Morgan1-0/+2
2019-12-13Restructure the make files into build vs. testAndrew G. Morgan1-1/+9
2019-12-07Minor test enhancement related to ambient capsAndrew G. Morgan2-2/+2
2019-12-05Implement a helper library for POSIX semantics syscalls.Andrew G. Morgan1-2/+1
2019-05-19A Go (golang) implementation of libcap: import "libcap/cap".Andrew G. Morgan3-6/+20
2019-04-21some clean upAndrew G. Morgan1-1/+1
2019-04-13Use strncmp to not read past argument lengthsPauline Middelink1-17/+17
2019-04-13Fix number of characters in --drop check.Pauline Middelink1-1/+1
2018-09-11Ambient test cases - file capabilities trump ambient sets.Andrew G. Morgan1-2/+11
2018-09-11Add support for a -n argument to getcap and setcap.Andrew G. Morgan3-14/+72
2018-09-10getpcaps: fix typo proccess->processGiuseppe Scrivano1-1/+1
2016-02-07Clean up ambient support and add a smoke test for them.Andrew G. Morgan2-80/+227
2016-02-06Add initial support for the ambient set.Andrew G. Morgan1-75/+99
2016-02-06Add something to run libcap's quicktest tests against development kernel.Andrew G. Morgan1-1/+2
2016-01-30setcap: fix errno displayAndrew G. Morgan1-1/+2
2016-01-30Sigh. Compiling capsh statically and we get no getpw*() functions.Andrew G. Morgan1-6/+10
2016-01-30Drop use of libattr for our trivial use case of kernel API.Andrew G. Morgan1-4/+1
2014-05-31don't include FAKEROOT in Makefile variablesBenedikt Morbach1-3/+3
2013-12-24Stop using ping to test privilege use.Andrew G Morgan1-18/+26
2011-07-30setcap: comment to help the user figure out why setcap is failing.Andrew G. Morgan1-2/+25
2011-07-30Fix a compiler warning(error) for format mismatch.Andrew G. Morgan1-1/+2
2011-07-24Change directory to "/" after --chroot operation.Andrew G. Morgan2-1/+13
2011-04-25Add some bounding set capability support to libcap.Andrew G. Morgan1-8/+28
2010-08-08Default to installing setcap with an inheritable capability.Andrew G. Morgan3-2/+9
2010-08-08fix MakefilesTorsten Werner1-2/+2
2010-01-11Clean up of prctl code.Andrew G. Morgan2-10/+4
2010-01-03Add a test for maximal lock-down.Andrew G. Morgan2-29/+70
2009-12-25Oops. Don't reuse index for loop.Andrew G. Morgan1-3/+3
2009-11-23New features (setting user and groups)Andrew G. Morgan1-3/+48
2009-11-22Checkpoint.Andrew G. Morgan1-2/+67
2009-08-26Fix test to actually test setuid-0 scripts don't get capabilities.Andrew G. Morgan1-1/+5
2009-08-26Fix recent compilation issue - by reordering #includes.Andrew G. Morgan1-1/+1
2008-11-20Fix getcap utility in recursive modelibcap-2.15Lukas Kuklinek1-40/+29
2008-11-10Makefile tweaks mostlyAndrew G. Morgan2-2/+26
2008-10-24No longer need verify-caps since setcap -v performs this operation.Andrew G. Morgan2-77/+2
2008-10-24Documentation for setcap reconciled with application.Andrew G. Morgan1-1/+1
2008-10-24Record the fact that setcap has raised CAP_SETFCAP.Andrew G. Morgan1-0/+1
2008-10-23Add a -v (verify) mode to setcapAndrew G. Morgan1-27/+66
2008-10-23A handy --decode=0xYYYYY flag for capsh.Andrew G. Morgan1-0/+25
2008-10-19Make programs dynamically linked.Andrew G. Morgan1-0/+2
2008-10-19Add an example program to verify that a file has specific capabilities.Andrew G. Morgan3-3/+80
2008-07-08Fix cap_copy_int(), add two functions cap_get_pid() and cap_compare()Andrew G. Morgan1-16/+8
2008-06-02Some makefile cleanups.Andrew G. Morgan1-1/+4
2008-04-27Revised numbers for the SECUREBITS prctl()sAndrew G. Morgan1-2/+2
2008-03-29Add cap_clear_flag() function to clear one of the EIP capability flag vectorsAndrew G. Morgan1-1/+5
2008-03-06Added missing rm -f ./ping to quicktest.sh (for early exit)Chris Friedhoff1-0/+1
2008-03-05Clean up more things in progs (side effects of failing quicktest.sh)Andrew G. Morgan1-1/+1
2008-03-05Add a test for all= capability setting etc, support.Andrew G. Morgan1-7/+16
2008-03-01Rearranged order to support bailing early if no securebits support availableAndrew G. Morgan1-17/+25
2008-02-21Extend capsh with --caps= --killit= --forkfor= and == supportAndrew G. Morgan2-6/+115
2008-02-17Add .gitignore filesMike Frysinger1-0/+4
2008-02-17do not use the '-s' flag with `install`Mike Frysinger1-1/+1
2008-02-05We don't need to export _cap_names[] any more.Andrew G. Morgan1-0/+2
2008-02-03Support for prctl based securebits.Andrew G. Morgan2-3/+134
2008-01-24Fix malloc(size) but in capsh and numeric capabilities (for unnamed bits)Andrew G. Morgan1-1/+1
2008-01-21Introduce a capability shell wrapper; capsh.Andrew G. Morgan2-1/+240
2007-12-30Filesystem capabilities are only meaningful on regular files.libcap-2.04Andrew G. Morgan1-0/+2
2007-11-16The following patch to libcap enables to display file capabilitiesKaiGai Kohei1-17/+84
2007-10-31Add support for 64-bit (file) capabilitieslibcap-20071031Andrew Morgan2-18/+21
2007-08-13Build with a pam_cap module.Andrew Morgan1-1/+25
2007-08-13Revived old setcap/getcap manual pages and added support for removing file capsAndrew Morgan1-21/+28
2007-08-13Cleanup output; and permit setcap e value to be superset of ip.Andrew Morgan2-8/+6
2007-08-13Add tentitive support for filesystem capabilities with 2.6.23-mm kernelsAndrew Morgan6-8/+11
2007-07-17Support for static library creation (libcap.a) + miscAndrew Morgan1-1/+1
2007-07-10Prepare for 1.95 release.Andrew Morgan7-117/+17
2007-07-10This is libcap-1.10libcap-1.10Andrew Morgan2-4/+10
2007-07-10This is libcap-1.01libcap-1.01Andrew Morgan14-1294/+20
2007-07-10This is the source for libcap-1.0.tar.gzlibcap-1.0Andrew Morgan16-0/+2009