aboutsummaryrefslogtreecommitdiff
path: root/goapps/web/README.md
blob: 970d10e181cb450c57bfde7b5bf588440c567d71 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Web serving with/without privilege

## Building

This sample program needs to be built as follows (when built with Go
prior to 1.15):
```
   export CGO_LDFLAGS_ALLOW="-Wl,-?-wrap[=,][^-.@][^,]*"
   go mod tidy
   go build web.go
```
go1.15+ does not require the `CGO_LDFLAGS_ALLOW` environment variable
and can build this code with:
```
   go mod tidy
   go build web.go
```

## Further discussion

A more complete walk through of what this code does is provided on the
[Fully Capable
website](https://sites.google.com/site/fullycapable/getting-started-with-go/building-go-programs-that-manipulate-capabilities).

## Reporting bugs

Go compilers prior to go1.11.13 are not expected to work. Report more
recent issues to the [`libcap` bug tracker](https://bugzilla.kernel.org/buglist.cgi?component=libcap&list_id=1065141&product=Tools&resolution=---).