summaryrefslogtreecommitdiff
path: root/goapps
Commit message (Collapse)AuthorAgeFilesLines
* Stop installing the cap and psx packages, but do install captree.Andrew G. Morgan2021-08-261-0/+4
| | | | | | | | | | | | | | | | | 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>
* Up the release version to 2.54Andrew G. Morgan2021-08-254-5/+5
| | | | Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
* Add the captree example.Andrew G. Morgan2021-08-222-0/+324
| | | | | | | | | | | | 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>
* Up the release version to 2.53v1.2.53psx/v1.2.53libcap-korg-2.53libcap-2.53cap/v1.2.53Andrew G. Morgan2021-08-153-4/+4
| | | | Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
* Fix typos.Samanta Navarro2021-08-141-1/+1
| | | | | | | Typos found with codespell Signed-off-by: Samanta Navarro <ferivoz@riseup.net> Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
* Up the release version to 2.52v1.2.52psx/v1.2.52libcap-korg-2.52libcap-2.52cap/v1.2.52Andrew G. Morgan2021-08-013-4/+4
| | | | Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
* Update comment in gowns sources.Andrew G. Morgan2021-06-211-1/+5
| | | | | | | 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>
* Up the release version to 2.51v1.2.51psx/v1.2.51libcap-korg-2.51libcap-2.51cap/v1.2.51Andrew G. Morgan2021-06-203-4/+4
| | | | Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
* Up the release version to 2.50v1.2.50psx/v1.2.50libcap-korg-2.50libcap-2.50cap/v1.2.50Andrew G. Morgan2021-05-243-4/+4
| | | | Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
* Clean up the comments and links in goapps/web/Andrew G. Morgan2021-04-192-18/+9
| | | | | | They had become stale. Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
* Up the release version to 2.49v1.2.49psx/v1.2.49libcap-korg-2.49libcap-2.49cap/v1.2.49Andrew G. Morgan2021-03-133-4/+4
| | | | Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
* Upgrade cap and psx Go modules to version 1.2.48psx/v1.2.48cap/v1.2.48Andrew G. Morgan2021-02-043-4/+4
| | | | | | | | | | | 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>
* Up the release version to 2.48v0.2.48psx/v0.2.48libcap-korg-2.48libcap-2.48cap/v0.2.48Andrew G. Morgan2021-02-043-4/+4
| | | | Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
* Up the release version to 2.47v0.2.47psx/v0.2.47libcap-korg-2.47libcap-2.47cap/v0.2.47Andrew G. Morgan2021-01-233-4/+4
| | | | Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
* Restructured gowns to default to uid base of getuid().Andrew G. Morgan2021-01-231-59/+69
| | | | | | | 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>
* Up the release version to 2.46v0.2.46psx/v0.2.46libcap-korg-2.46libcap-2.46cap/v0.2.46Andrew G. Morgan2020-12-123-4/+4
| | | | Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
* Add a go.mod file for building gowns.Andrew G. Morgan2020-12-081-0/+5
| | | | | | | | | | | | | | | 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>
* Clean up gowns invocation for shell etc.Andrew G. Morgan2020-12-071-28/+86
| | | | | | Also, simplify how to set a range of uids/gids from the commandline. Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
* Demonstrate using libcap and namespaces in Go.Andrew G. Morgan2020-11-281-0/+181
| | | | | | | | | 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>
* Up the release version to 2.45v0.2.45psx/v0.2.45libcap-korg-2.45libcap-2.45cap/v0.2.45Andrew G. Morgan2020-11-022-3/+3
| | | | Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
* Up the release version to 2.44v0.2.44psx/v0.2.44libcap-korg-2.44libcap-2.44cap/v0.2.44Andrew G. Morgan2020-10-042-3/+3
| | | | Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
* Up the release version to 2.43v0.2.43psx/v0.2.43libcap-korg-2.43libcap-2.43cap/v0.2.43Andrew G. Morgan2020-08-152-3/+3
| | | | Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
* Up the release version to 2.42v0.2.42psx/v0.2.42libcap-korg-2.42libcap-2.42cap/v0.2.42Andrew G. Morgan2020-08-012-3/+3
| | | | Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
* Up the release version to 2.41v0.2.41psx/v0.2.41libcap-korg-2.41libcap-2.41cap/v0.2.41Andrew G. Morgan2020-07-242-3/+3
| | | | Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
* Up the release version to 2.40v0.2.40psx/v0.2.40libcap-korg-2.40libcap-2.40cap/v0.2.40Andrew G. Morgan2020-07-192-3/+3
| | | | Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
* Force an update of the go.mod files before building official release.Andrew G. Morgan2020-07-132-3/+3
| | | | Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
* Remove incorrect and misleading comment.Andrew G. Morgan2020-07-091-1/+0
| | | | Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
* Add a Go example of changing UID/GID.Andrew G. Morgan2020-07-072-0/+160
| | | | | | | | | 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>
* Drop the go suffix from module name.Andrew G. Morgan2020-07-061-1/+1
| | | | Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
* Up the release version to 2.38psx/v0.2.38libcap-korg-2.38libcap-2.38cap/v0.2.38Andrew G. Morgan2020-07-051-1/+1
| | | | Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
* Restructure the tree a little to provide a module example.Andrew G. Morgan2020-07-043-0/+162
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>