403Webshell
Server IP : 82.208.35.60  /  Your IP : 216.73.217.33
Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31
System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64
User : studiokobylisy_cz ( 1008)
PHP Version : 7.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/ports/sysutils/datadog-agent/files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/sysutils/datadog-agent/files/patch-pkg_secrets_check__rights__nix.go
--- pkg/secrets/check_rights_nix.go.orig	2020-11-17 11:00:08 UTC
+++ pkg/secrets/check_rights_nix.go
@@ -11,6 +11,7 @@ import (
 	"fmt"
 	"os/user"
 	"syscall"
+	"golang.org/x/sys/unix"
 )
 
 func checkRights(path string, allowGroupExec bool) error {
@@ -64,7 +65,7 @@ func checkGroupPermission(stat *syscall.Stat_t, usr *u
 	}
 
 	// If *group* executable, user can RWX, group can RX, and nothing else for anyone.
-	if stat.Mode&(syscall.S_IRWXO|syscall.S_IWGRP) != 0 {
+	if stat.Mode&(syscall.S_IRWXO|unix.S_IWGRP) != 0 {
 		return fmt.Errorf("invalid executable '%s', 'others' have rights on it or 'group' has write permissions on it", path)
 	}
 
@@ -82,7 +83,7 @@ func checkGroupPermission(stat *syscall.Stat_t, usr *u
 		}
 
 		// Check that *group* can at least exec.
-		if stat.Mode&(syscall.S_IXGRP) == 0 {
+		if stat.Mode&(unix.S_IXGRP) == 0 {
 			return fmt.Errorf("invalid executable: '%s' is not executable by group", path)
 		}
 	}

Youez - 2016 - github.com/yon3zu
LinuXploit