Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: rename module to support go install #264

Merged
merged 1 commit into from
Sep 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,9 @@ build:
test:
./tests/test-checksec.sh

.PHONY: compose-test
compose-test: go
docker-compose build
docker-compose run
.PHONY: build-image
build-image:
docker build -t slimm609/checksec .

.PHONY: go
go:
Expand Down
2 changes: 1 addition & 1 deletion cmd/dir.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package cmd

import (
"checksec/pkg/utils"
"github.com/slimm609/checksec/pkg/utils"

"github.com/spf13/cobra"
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/file.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package cmd

import (
"checksec/pkg/utils"
"github.com/slimm609/checksec/pkg/utils"

"github.com/spf13/cobra"
)
Expand Down
5 changes: 3 additions & 2 deletions cmd/fortifyFile.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
package cmd

import (
"checksec/pkg/checksec"
"checksec/pkg/utils"
"fmt"
"os"

"github.com/slimm609/checksec/pkg/checksec"
"github.com/slimm609/checksec/pkg/utils"

"github.com/spf13/cobra"
)

Expand Down
5 changes: 3 additions & 2 deletions cmd/fortifyProc.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
package cmd

import (
"checksec/pkg/checksec"
"checksec/pkg/utils"
"fmt"
"os"
"path/filepath"

"github.com/slimm609/checksec/pkg/checksec"
"github.com/slimm609/checksec/pkg/utils"

"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/kernel.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package cmd

import (
"checksec/pkg/utils"
"github.com/slimm609/checksec/pkg/utils"

"github.com/spf13/cobra"
)
Expand Down
3 changes: 2 additions & 1 deletion cmd/proc.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package cmd

import (
"checksec/pkg/utils"
"fmt"
"os"

"github.com/slimm609/checksec/pkg/utils"

"path/filepath"

"github.com/spf13/cobra"
Expand Down
3 changes: 2 additions & 1 deletion cmd/procAll.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
package cmd

import (
"checksec/pkg/utils"
"fmt"
"os"
"path/filepath"

"github.com/slimm609/checksec/pkg/utils"

"github.com/shirou/gopsutil/v3/process"
"github.com/spf13/cobra"
)
Expand Down
2 changes: 2 additions & 0 deletions cmd/procLibs.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import (
var procLibsCmd = &cobra.Command{
Use: "procLibs",
Short: "check process libraries",
// hide until refactored
Hidden: true,
Run: func(cmd *cobra.Command, args []string) {
fmt.Println("procLibs called")
},
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module checksec
module github.com/slimm609/checksec

go 1.21.4

Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package main

import "checksec/cmd"
import "github.com/slimm609/checksec/cmd"

func main() {
cmd.Execute()
Expand Down
3 changes: 2 additions & 1 deletion pkg/utils/checks.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package utils

import (
"checksec/pkg/checksec"
"reflect"

"github.com/slimm609/checksec/pkg/checksec"
)

// RunFileChecks - Run the file checks
Expand Down
Loading