Commit Graph
31 Commits
Author SHA1 Message Date
RandyTheSilly 081b05659a Use replace syntax for custom sys fork 2025-04-05 16:05:38 -04:00
RandyTheSilly d116525c2b Remove redundant methods 2025-04-05 15:17:24 -04:00
RandyTheSilly dcf2844318 Initial Windows support 2025-04-05 14:43:55 -04:00
RandyTheSilly b563a7af34 Rename creds.UserID() to creds.UID() 2025-04-05 13:59:18 -04:00
RandyTheSilly 0e071fcd68 Switch to fork of golang.org/x/sys to allow getting PIDs 2025-04-04 21:29:31 -04:00
RandyTheSilly 5dc435a56a Remove osGet 2025-04-04 19:01:06 -04:00
RandyTheSilly cfcdc4bfaa Initial FreeBSD PID support 2025-04-04 01:36:14 -04:00
RandyTheSilly 1210f10798 Rename module 2025-04-04 00:47:13 -04:00
RandyTheSilly 5b200e3321 Update test to check for full FreeBSD support 2025-04-04 00:37:25 -04:00
RandyTheSilly b822d55619 Bump Go to v1.24.1; bump golang.org/x/sys to v0.31.0 2025-04-03 23:22:16 -04:00
RandyTheSilly f4afca81ad Strip unneeded functionality 2025-04-03 23:19:49 -04:00
Nahum Shalman 35a0c7bd7e Add support for solaris 2025-01-07 06:37:37 -08:00
Brad Fitzpatrick 6dd762fa3d Run tests on Go 1.18+
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2025-01-07 06:37:37 -08:00
Brad Fitzpatrick b535050b2a Move module from github.com/inetaf to github.com/tailscale
See inetaf/tcpproxy#39

Signed-off-by: Brad Fitzpatrick <brad@danga.com>
2024-02-13 19:07:40 -08:00
Tobias Klauser 0893ea0215 .github/workflows: check formatting
Check gofmt formatting as part of GitHub actions tests.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
2021-09-06 10:41:45 -04:00
Tobias Klauser 5cc0d2929a .github/workflows: add Go 1.17 to test matrix
Drop 1.15 which is no longer supported upstream.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
2021-09-06 10:41:45 -04:00
Tobias Klauser cb2ece2456 Run Go 1.17 gofmt to add //go:build tags
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
2021-09-06 10:41:45 -04:00
Tobias Klauser 4259e17bb7 Run go mod tidy as part of GitHub actions
Make sure go.mod and go.sum match the current source in the module.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
2021-03-18 12:08:34 -07:00
Tobias Klauser 738f593fd1 Add GitHub action for CI testing
Run tests on the currently supported Go versions on Linux and macOS.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
2021-03-03 05:43:38 -08:00
Brad Fitzpatrick 21a9ce5438 Merge pull request #4 from tklauser/cerr-freebsd
Wrap correct raw.Control error on FreeBSD
2021-03-03 05:42:35 -08:00
Tobias Klauser ad37553302 Wrap correct raw.Control error on FreeBSD
Follow #1 after FreeBSD support was merged in #3.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
2021-03-03 08:02:05 +01:00
Brad Fitzpatrick 56e6948971 Merge pull request #1 from tklauser/rawconn-err-return
Wrap correct error on raw.Control failure
2021-03-02 12:21:38 -08:00
Brad Fitzpatrick 77f7f821b4 Merge pull request #3 from DentonGentry/main
Add FreeBSD support
2021-03-02 11:17:14 -08:00
Denton Gentry 7c60c2f019 Update FreeBSD TODO.
Overly aggressive copy+paste from peercred_linux.go.

Signed-off-by: Denton Gentry <dgentry@tailscale.com>
2021-03-02 10:34:41 -08:00
Denton Gentry 6ba7dd52e8 Add FreeBSD support
For FreeBSD 12.2 and before I think we could use SCM_CREDS to get
the pid of the peer. For FreeBSD 13.x and later, the Xucred is
extended with a pid. For now we'll leave it unimplemented and
expect to add FreeBSD 13+ support whern it is released.

Signed-off-by: Denton Gentry <dgentry@tailscale.com>
2021-03-02 06:23:55 -08:00
Denton Gentry 88448a8ba5 Rename to getDarwin
Signed-off-by: Denton Gentry <dgentry@tailscale.com>
2021-03-02 06:23:40 -08:00
Tobias Klauser bb1f659201 Wrap correct error on raw.Control failure
Wrap cerr, the error returned by raw.Control.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
2021-02-17 00:50:47 +01:00
Brad Fitzpatrick 993aa01eac Add darwin support
Updates golang/go#27613
Updates tailscale/tailscale#1347
Updates tailscale/tailscale#1348
2021-02-16 15:17:19 -08:00
Brad Fitzpatrick 37235d97ae fix typo in filename
muscle memory?
2021-02-16 14:55:08 -08:00
Brad Fitzpatrick 215a1c795a Start of peercred package, with Linux only for now. 2021-02-16 10:02:57 -08:00
Brad Fitzpatrick 9aa5636256 Initial commit 2021-02-16 08:11:33 -08:00