Commit Graph
11 Commits
Author SHA1 Message Date
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