From 77230f5240d853785717947c9f934c0adb78870b Mon Sep 17 00:00:00 2001 From: ston1th Date: Sat, 8 Oct 2022 16:59:34 +0200 Subject: [PATCH 1/2] update dependencies --- LICENSE | 2 +- go.mod | 4 +++- go.sum | 4 ++-- godrop.go | 3 ++- lookup.go | 3 ++- lookup_test.go | 2 +- pledge.go | 3 ++- pledge_openbsd.go | 3 ++- unveil.go | 3 ++- unveil_openbsd.go | 3 ++- 10 files changed, 19 insertions(+), 11 deletions(-) diff --git a/LICENSE b/LICENSE index 2bb060c..aa39852 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,4 @@ -Copyright (C) 2017 Marius Schellenberger +Copyright (C) 2022 Marius Schellenberger All rights reserved. Redistribution and use in source and binary forms, with or without diff --git a/go.mod b/go.mod index a41c9af..54387f6 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,5 @@ module git.giftfish.de/ston1th/godrop/v2 -require golang.org/x/sys v0.0.0-20181026144532-2772b66316d2 // indirect +go 1.19 + +require golang.org/x/sys v0.0.0-20221006211917-84dc82d7e875 diff --git a/go.sum b/go.sum index 36d0abd..e04231f 100644 --- a/go.sum +++ b/go.sum @@ -1,2 +1,2 @@ -golang.org/x/sys v0.0.0-20181026144532-2772b66316d2 h1:W7CqTdBJ1CmxLKe7LptKDnBYV6PHrVLiGnoyBjaG/JQ= -golang.org/x/sys v0.0.0-20181026144532-2772b66316d2/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20221006211917-84dc82d7e875 h1:AzgQNqF+FKwyQ5LbVrVqOcuuFB67N47F9+htZYH0wFM= +golang.org/x/sys v0.0.0-20221006211917-84dc82d7e875/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= diff --git a/godrop.go b/godrop.go index 55f39ec..37c7e75 100644 --- a/godrop.go +++ b/godrop.go @@ -1,5 +1,6 @@ -// Copyright (C) 2018 Marius Schellenberger +// Copyright (C) 2022 Marius Schellenberger +//go:build go1.11 // +build go1.11 // Package godrop provides a simple library to drop privileges on Linux and OpenBSD. diff --git a/lookup.go b/lookup.go index 2d0e1a9..725dc82 100644 --- a/lookup.go +++ b/lookup.go @@ -1,5 +1,6 @@ -// Copyright (C) 2018 Marius Schellenberger +// Copyright (C) 2022 Marius Schellenberger +//go:build go1.11 // +build go1.11 package godrop diff --git a/lookup_test.go b/lookup_test.go index bdcf7bd..49d2a78 100644 --- a/lookup_test.go +++ b/lookup_test.go @@ -1,4 +1,4 @@ -// Copyright (C) 2018 Marius Schellenberger +// Copyright (C) 2022 Marius Schellenberger package godrop diff --git a/pledge.go b/pledge.go index d0e361e..8c97aba 100644 --- a/pledge.go +++ b/pledge.go @@ -1,5 +1,6 @@ -// Copyright (C) 2018 Marius Schellenberger +// Copyright (C) 2022 Marius Schellenberger +//go:build !openbsd // +build !openbsd package godrop diff --git a/pledge_openbsd.go b/pledge_openbsd.go index 7369b03..0af656a 100644 --- a/pledge_openbsd.go +++ b/pledge_openbsd.go @@ -1,5 +1,6 @@ -// Copyright (C) 2018 Marius Schellenberger +// Copyright (C) 2022 Marius Schellenberger +//go:build openbsd // +build openbsd package godrop diff --git a/unveil.go b/unveil.go index 06c8c90..412851b 100644 --- a/unveil.go +++ b/unveil.go @@ -1,5 +1,6 @@ -// Copyright (C) 2018 Marius Schellenberger +// Copyright (C) 2022 Marius Schellenberger +//go:build !openbsd // +build !openbsd package godrop diff --git a/unveil_openbsd.go b/unveil_openbsd.go index f32d630..f1e4bbc 100644 --- a/unveil_openbsd.go +++ b/unveil_openbsd.go @@ -1,5 +1,6 @@ -// Copyright (C) 2018 Marius Schellenberger +// Copyright (C) 2022 Marius Schellenberger +//go:build openbsd // +build openbsd package godrop From b2f6d0d478f061ffb31effecfa38201a16527f3d Mon Sep 17 00:00:00 2001 From: ston1th Date: Mon, 19 Aug 2024 20:37:21 +0200 Subject: [PATCH 2/2] use latest sys --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index 54387f6..c939651 100644 --- a/go.mod +++ b/go.mod @@ -2,4 +2,4 @@ module git.giftfish.de/ston1th/godrop/v2 go 1.19 -require golang.org/x/sys v0.0.0-20221006211917-84dc82d7e875 +require golang.org/x/sys v0.24.0 diff --git a/go.sum b/go.sum index e04231f..d88e7bd 100644 --- a/go.sum +++ b/go.sum @@ -1,2 +1,2 @@ -golang.org/x/sys v0.0.0-20221006211917-84dc82d7e875 h1:AzgQNqF+FKwyQ5LbVrVqOcuuFB67N47F9+htZYH0wFM= -golang.org/x/sys v0.0.0-20221006211917-84dc82d7e875/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.24.0 h1:Twjiwq9dn6R1fQcyiK+wQyHWfaz/BJB+YIpzU/Cv3Xg= +golang.org/x/sys v0.24.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=