45 Commits

Author SHA1 Message Date
Andrew G. Morgan
1d88048c31 Up the release version to 2.63
Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
2022-01-23 16:36:22 -08:00
Andrew G. Morgan
cc91f55960 Up the release version to 2.62
Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
2021-12-11 18:06:34 -08:00
Andrew G. Morgan
d63835d491 Up the release version to 2.61
Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
2021-11-20 22:20:04 -08:00
Andrew G. Morgan
5306fa23ff Up the release version to 2.60
Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
2021-10-22 21:29:14 -07:00
Andrew G. Morgan
9eb56596ee Up the release version to 2.59
Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
2021-09-26 18:20:33 -07:00
Andrew G. Morgan
dba6efc51b Spelling fix.
Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
2021-09-22 18:57:44 -07:00
Andrew G. Morgan
01627eae86 Up the release version to 2.58
Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
2021-09-17 19:35:42 -07:00
Andrew G. Morgan
3906730197 Up the release version to 2.57
Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
2021-09-09 13:57:36 -07:00
Andrew G. Morgan
0f286b584e Up the release version to 2.56
Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
2021-09-02 20:03:32 -07:00
Andrew G. Morgan
f245f03f43 Make captree use --color on any terminal by default.
Disable with --colo[u]r=false or pipe into something else.

Ex. 'captree | cat'

Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
2021-09-02 18:25:55 -07:00
Andrew G. Morgan
2a3984fe0f Avoid disecting sub-trees of processes in captree output.
Added --color as an argument to make it easier to spot what you
are looking for in the output.

This addresses item (2) of:

   https://bugzilla.kernel.org/show_bug.cgi?id=214269

Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
2021-09-01 22:34:47 -07:00
Andrew G. Morgan
142ad758ff Don't display duplicate subtrees with captree.
This addresses issue (1) of:

  https://bugzilla.kernel.org/show_bug.cgi?id=214269

Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
2021-09-01 20:22:45 -07:00
Andrew G. Morgan
2bfe36c999 Up the release version to 2.55
Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
2021-08-29 18:54:03 -07:00
Andrew G. Morgan
b972c50c09 Add captree command line options and support process by name.
Add some features to captree. I plan to post a companion article
here:

   https://sites.google.com/site/fullycapable/captree

Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
2021-08-29 15:42:17 -07:00
Andrew G. Morgan
386af0edbc Stop installing the cap and psx packages, but do install captree.
We also add the cap.ProcRoot() API to let the user redirect to their
local /proc/ directory - in case anyone runs with an unusual setup
like that.

I've been studying the downstream package definitions and no one
it doesn't seem popular to build the Go packages. Indeed, Go folk
themselves prefer to install via modules anyway, so we're getting
with the program.

However, if folk want to build test the Go stuff as part of a package
build and run an install as well, we reward them with the 'captree'
binary.

Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
2021-08-26 22:26:56 -07:00
Andrew G. Morgan
07cdff9ac9 Up the release version to 2.54
Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
2021-08-25 21:09:19 -07:00
Andrew G. Morgan
596850bf55 Add the captree example.
This is a small command line utility for doing something like pstree
but focused on revealing the full capability state of the processes
and threads shown.

This requires support provided in the cap.IABGetPID() function which
will debut in libcap-2.54. For now, the binary is only buildable from
HEAD in the git repository.

Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
2021-08-22 15:55:24 -07:00
Andrew G. Morgan
797050ca7f Up the release version to 2.53
Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
2021-08-15 19:06:35 -07:00
Samanta Navarro
e721aff543 Fix typos.
Typos found with codespell

Signed-off-by: Samanta Navarro <ferivoz@riseup.net>
Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
2021-08-14 11:03:27 -07:00
Andrew G. Morgan
8070dfec39 Up the release version to 2.52
Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
2021-08-01 17:49:56 -07:00
Andrew G. Morgan
5fabea8cc5 Update comment in gowns sources.
I still have some things I want to explore with this example, so I
don't want to give the impression this is a stable example.

Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
2021-06-21 20:49:35 -07:00
Andrew G. Morgan
3857d17677 Up the release version to 2.51
Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
2021-06-20 16:57:57 -07:00
Andrew G. Morgan
4408d8ae5b Up the release version to 2.50
Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
2021-05-24 12:05:16 -07:00
Andrew G. Morgan
3f1f067e60 Clean up the comments and links in goapps/web/
They had become stale.

Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
2021-04-19 20:15:44 -07:00
Andrew G. Morgan
c8a101dc9d Up the release version to 2.49
Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
2021-03-13 16:26:47 -08:00
Andrew G. Morgan
75a5a9e4dd Upgrade cap and psx Go modules to version 1.2.48
Go has its own notion of major version, and this commit raises
it from 0 to 1. That is, these modules should now be considered
stable.

The sources for the 1.2.48 and the 0.2.48 modules are otherwise
identical.

Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
2021-02-04 22:19:16 -08:00
Andrew G. Morgan
cfd4c3b031 Up the release version to 2.48
Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
2021-02-04 21:52:17 -08:00
Andrew G. Morgan
28f5bc7141 Up the release version to 2.47
Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
2021-01-23 18:10:49 -08:00
Andrew G. Morgan
4e966462ea Restructured gowns to default to uid base of getuid().
The whole uid=0 thing is so convoluted with privilege, best to just
avoid it by default.

Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
2021-01-23 17:41:16 -08:00
Andrew G. Morgan
99fcb7c3b8 Up the release version to 2.46
Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
2020-12-12 15:58:11 -08:00
Andrew G. Morgan
69e3383558 Add a go.mod file for building gowns.
Since go 1.15 doesn't require the wrapping linker trick, I'm recommending
that version of Go for building it. Also add a test of building the
setid and gowns sources in the .../go/ directory.

At this stage, I'm imagining a tutorial on how gowns works here:

  https://sites.google.com/site/fullycapable/getting-started-with-go

but I haven't started writing that yet. I first want to confirm the
state of all the features I want to use.

Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
2020-12-08 22:26:34 -08:00
Andrew G. Morgan
6e985f8b53 Clean up gowns invocation for shell etc.
Also, simplify how to set a range of uids/gids from the commandline.

Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
2020-12-07 20:27:32 -08:00
Andrew G. Morgan
2125363881 Demonstrate using libcap and namespaces in Go.
A short program in Go that can invoke a UID namespaced application
it can also be used to launch capability modified programs using
IAB and mode. This is a reduced feature set over the more complete
capsh program - with the exception of namespace support.

Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
2020-11-28 17:01:56 -08:00
Andrew G. Morgan
cf8fb28e42 Up the release version to 2.45
Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
2020-11-02 17:49:24 -08:00
Andrew G. Morgan
2fa105aacc Up the release version to 2.44
Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
2020-10-04 18:45:24 -07:00
Andrew G. Morgan
dbeb06ba29 Up the release version to 2.43
Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
2020-08-15 11:17:55 -07:00
Andrew G. Morgan
312f77fc50 Up the release version to 2.42
Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
2020-08-01 18:41:45 -07:00
Andrew G. Morgan
7ad50365f6 Up the release version to 2.41
Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
2020-07-24 19:39:35 -07:00
Andrew G. Morgan
973c34a216 Up the release version to 2.40
Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
2020-07-19 14:59:05 -07:00
Andrew G. Morgan
dc22ad68b9 Force an update of the go.mod files before building official release.
Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
2020-07-13 19:28:51 -07:00
Andrew G. Morgan
57b1f9e3e0 Remove incorrect and misleading comment.
Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
2020-07-09 08:10:51 -07:00
Andrew G. Morgan
0768b3a798 Add a Go example of changing UID/GID.
This is something pretty fundamental that a number of folk have asked
about. It is essentially the motivating issue for:

   https://github.com/golang/go/issues/1435

Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
2020-07-07 22:20:45 -07:00
Andrew G. Morgan
7afc89f34d Drop the go suffix from module name.
Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
2020-07-06 06:50:14 -07:00
Andrew G. Morgan
19eebc5846 Up the release version to 2.38
Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
2020-07-05 14:07:52 -07:00
Andrew G. Morgan
15d7ecae0c Restructure the tree a little to provide a module example.
I've written up how to build web.go here:

  https://sites.google.com/site/fullycapable/building-go-programs-that-manipulate-capabilities

But it struc me that the code itself does not explain about the
CGO_LDFLAGS_ALLOW workaround, so I've relocated the web.go code
and included a README as well as a pointer to the above explanation.

Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
2020-07-04 19:17:48 -07:00