Skip to content

Commit d43947f

Browse files
committed
fix: rename module to support go install
- rename module to support go install - minor updates - hide procLibs
1 parent 86d945a commit d43947f

File tree

12 files changed

+22
-16
lines changed

12 files changed

+22
-16
lines changed

Makefile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,9 @@ build:
99
test:
1010
./tests/test-checksec.sh
1111

12-
.PHONY: compose-test
13-
compose-test: go
14-
docker-compose build
15-
docker-compose run
12+
.PHONY: build-image
13+
build-image:
14+
docker build -t slimm609/checksec .
1615

1716
.PHONY: go
1817
go:

cmd/dir.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package cmd
22

33
import (
4-
"checksec/pkg/utils"
4+
"github.com/slimm609/checksec/pkg/utils"
55

66
"github.com/spf13/cobra"
77
)

cmd/file.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package cmd
22

33
import (
4-
"checksec/pkg/utils"
4+
"github.com/slimm609/checksec/pkg/utils"
55

66
"github.com/spf13/cobra"
77
)

cmd/fortifyFile.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
package cmd
22

33
import (
4-
"checksec/pkg/checksec"
5-
"checksec/pkg/utils"
64
"fmt"
75
"os"
86

7+
"github.com/slimm609/checksec/pkg/checksec"
8+
"github.com/slimm609/checksec/pkg/utils"
9+
910
"github.com/spf13/cobra"
1011
)
1112

cmd/fortifyProc.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
package cmd
22

33
import (
4-
"checksec/pkg/checksec"
5-
"checksec/pkg/utils"
64
"fmt"
75
"os"
86
"path/filepath"
97

8+
"github.com/slimm609/checksec/pkg/checksec"
9+
"github.com/slimm609/checksec/pkg/utils"
10+
1011
"github.com/spf13/cobra"
1112
)
1213

cmd/kernel.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package cmd
22

33
import (
4-
"checksec/pkg/utils"
4+
"github.com/slimm609/checksec/pkg/utils"
55

66
"github.com/spf13/cobra"
77
)

cmd/proc.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
package cmd
22

33
import (
4-
"checksec/pkg/utils"
54
"fmt"
65
"os"
76

7+
"github.com/slimm609/checksec/pkg/utils"
8+
89
"path/filepath"
910

1011
"github.com/spf13/cobra"

cmd/procAll.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
package cmd
22

33
import (
4-
"checksec/pkg/utils"
54
"fmt"
65
"os"
76
"path/filepath"
87

8+
"github.com/slimm609/checksec/pkg/utils"
9+
910
"github.com/shirou/gopsutil/v3/process"
1011
"github.com/spf13/cobra"
1112
)

cmd/procLibs.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ import (
1010
var procLibsCmd = &cobra.Command{
1111
Use: "procLibs",
1212
Short: "check process libraries",
13+
// hide until refactored
14+
Hidden: true,
1315
Run: func(cmd *cobra.Command, args []string) {
1416
fmt.Println("procLibs called")
1517
},

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module checksec
1+
module github.com/slimm609/checksec
22

33
go 1.21.4
44

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package main
22

3-
import "checksec/cmd"
3+
import "github.com/slimm609/checksec/cmd"
44

55
func main() {
66
cmd.Execute()

pkg/utils/checks.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
package utils
22

33
import (
4-
"checksec/pkg/checksec"
54
"reflect"
5+
6+
"github.com/slimm609/checksec/pkg/checksec"
67
)
78

89
// RunFileChecks - Run the file checks

0 commit comments

Comments
 (0)