aboutsummaryrefslogtreecommitdiff
path: root/net/crowdsec/patches
diff options
context:
space:
mode:
authorKerma Gérald <gandalf@gk2.net>2021-11-22 19:10:41 +0100
committerRosen Penev <rosenp@gmail.com>2021-11-22 16:42:43 -0800
commit2861370567bde7d426a5dda2b41cda321d050f5f (patch)
tree4078a36d7e60257cfa8b2d680079cb1ec37c630d /net/crowdsec/patches
parent95a65fb76e9a01889af4ca93b4f3d730c33ef376 (diff)
crowdsec: update to 1.2.1
crowdsec-firewall-boucer: update to 0.0.16 Signed-off-by: Kerma Gérald <gandalf@gk2.net>
Diffstat (limited to 'net/crowdsec/patches')
-rw-r--r--net/crowdsec/patches/010-fix-32bits-compile.patch29
1 files changed, 0 insertions, 29 deletions
diff --git a/net/crowdsec/patches/010-fix-32bits-compile.patch b/net/crowdsec/patches/010-fix-32bits-compile.patch
deleted file mode 100644
index 58426826c..000000000
--- a/net/crowdsec/patches/010-fix-32bits-compile.patch
+++ /dev/null
@@ -1,29 +0,0 @@
-Author: Kerma Gérald <gandalf@gk2.net>
-Date: Mon Sep 20 10:34:20 2021 +0200
-
- Use math.MaxInt32 instead of math.MaxUint32
-
- To fix 32 bits compilation in v1.2.0
- https://github.com/crowdsecurity/crowdsec/issues/979
-
- Signed-off-by: Kerma Gérald <gandalf@gk2.net>
-
---- a/pkg/csplugin/broker.go
-+++ b/pkg/csplugin/broker.go
-@@ -400,14 +400,14 @@ func getProccessAtr(username string, gro
- if err != nil {
- return nil, err
- }
-- if uid < 0 && uid > math.MaxUint32 {
-+ if uid < 0 && uid > math.MaxInt32 {
- return nil, fmt.Errorf("out of bound uid")
- }
- gid, err := strconv.Atoi(g.Gid)
- if err != nil {
- return nil, err
- }
-- if gid < 0 && gid > math.MaxUint32 {
-+ if gid < 0 && gid > math.MaxInt32 {
- return nil, fmt.Errorf("out of bound gid")
- }
- return &syscall.SysProcAttr{