mirror of
https://github.com/rwinkhart/peercred-mini.git
synced 2026-09-01 14:47:27 -04:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
933aa0680a | ||
|
|
dbfec3b41e | ||
|
|
6f8141d6dd |
@@ -1,2 +1,7 @@
|
|||||||
# peercred-mini
|
# peercred-mini
|
||||||
A simple module for getting the PID and UID of processes accessing UNIX domain sockets and Windows named pipes.
|
A simple module for getting the PID and UID of processes accessing UNIX domain sockets and Windows named pipes.
|
||||||
|
|
||||||
|
# IMPORTANT - READ FOR FreeBSD+Windows SUPPORT!
|
||||||
|
There are replacements in the `go.mod` for this module. Make sure you maintain those
|
||||||
|
same replacements in your importing module, otherwise FreeBSD and Windows support will break
|
||||||
|
(support for those operating systems requires patched modules).
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
module github.com/rwinkhart/peercred-mini
|
module github.com/rwinkhart/peercred-mini
|
||||||
|
|
||||||
go 1.24.6
|
go 1.25.7
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/Microsoft/go-winio v0.6.2
|
github.com/Microsoft/go-winio v0.6.2
|
||||||
golang.org/x/sys v0.35.0
|
golang.org/x/sys v0.41.0
|
||||||
)
|
)
|
||||||
|
|
||||||
replace golang.org/x/sys => github.com/rwinkhart/sys v0.35.0
|
replace golang.org/x/sys => github.com/rwinkhart/sys v0.41.0
|
||||||
|
|
||||||
replace github.com/Microsoft/go-winio => github.com/rwinkhart/go-winio-easy-pipe-handles v0.0.0-20250407031321-96994a0e8410
|
replace github.com/Microsoft/go-winio => github.com/rwinkhart/go-winio v0.1.1
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
github.com/rwinkhart/go-winio-easy-pipe-handles v0.0.0-20250407031321-96994a0e8410 h1:NhHwFM3Pgm6zRUfFKvi0p5ndjfFbVWsRwmmhyFlG4PE=
|
github.com/rwinkhart/go-winio v0.1.1 h1:kAJKiqneR7cUR01Wn5/doAAV4kOGTEGPug4oinXc5N4=
|
||||||
github.com/rwinkhart/go-winio-easy-pipe-handles v0.0.0-20250407031321-96994a0e8410/go.mod h1:yd8OoFMLzJbo9gZq8j5qaps8bJ9aShtEA8Ipt1oGCvU=
|
github.com/rwinkhart/go-winio v0.1.1/go.mod h1:ZWa7ssZJT30CCDGJ7fk/2SBTq9BIQrrVjrcss0UW2s0=
|
||||||
github.com/rwinkhart/sys v0.35.0 h1:6ZikETjyuv9ndnSEnXQmp/M3lxyCHWoHAm3lGzy0pnE=
|
github.com/rwinkhart/sys v0.41.0 h1:pHB6HphVC132UXYZ6yeOk62abqgl+pyl5ZZnsk4iUKg=
|
||||||
github.com/rwinkhart/sys v0.35.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k=
|
github.com/rwinkhart/sys v0.41.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks=
|
||||||
|
|||||||
@@ -46,9 +46,6 @@ func TestUnixSock(t *testing.T) {
|
|||||||
defer c.Close()
|
defer c.Close()
|
||||||
|
|
||||||
creds := Get(c)
|
creds := Get(c)
|
||||||
if err != nil {
|
|
||||||
t.Fatalf("Get: %v", err)
|
|
||||||
}
|
|
||||||
|
|
||||||
uid := creds.UID
|
uid := creds.UID
|
||||||
if uid == "" {
|
if uid == "" {
|
||||||
|
|||||||
Reference in New Issue
Block a user