Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
  • Loading branch information
jessfraz committed Sep 25, 2018
1 parent 0b3ae13 commit d84b348
Show file tree
Hide file tree
Showing 24 changed files with 57 additions and 57 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Expand Up @@ -7,7 +7,7 @@ ENV GOPATH /go
RUN apk add --no-cache \
ca-certificates

COPY . /go/src/github.com/jessfraz/bpfd
COPY . /go/src/github.com/genuinetools/bpfd

RUN set -x \
&& apk add --no-cache --virtual .build-deps \
Expand All @@ -16,7 +16,7 @@ RUN set -x \
libc-dev \
libgcc \
make \
&& cd /go/src/github.com/jessfraz/bpfd \
&& cd /go/src/github.com/genuinetools/bpfd \
&& make static \
&& mv bpfd /usr/bin/bpfd \
&& apk del .build-deps \
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile.dev
Expand Up @@ -31,7 +31,7 @@ RUN go get honnef.co/go/tools/cmd/staticcheck
RUN go get github.com/golang/protobuf/proto
RUN go get github.com/golang/protobuf/protoc-gen-go

COPY . /go/src/github.com/jessfraz/bpfd
COPY . /go/src/github.com/genuinetools/bpfd

WORKDIR /go/src/github.com/jessfraz/bpfd
WORKDIR /go/src/github.com/genuinetools/bpfd
ENTRYPOINT ["sh", "-c"]
2 changes: 1 addition & 1 deletion LICENSE
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2018 Jessica Frazelle
Copyright (c) 2018 The Genuinetools Authors

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion Makefile
@@ -1,6 +1,6 @@
# Setup name variables for the package/tool
NAME := bpfd
PKG := github.com/jessfraz/$(NAME)
PKG := github.com/genuinetools/$(NAME)

CGO_ENABLED := 1

Expand Down
16 changes: 8 additions & 8 deletions README.md
@@ -1,8 +1,8 @@
# bpfd

[![Travis CI](https://img.shields.io/travis/jessfraz/bpfd.svg?style=for-the-badge)](https://travis-ci.org/jessfraz/bpfd)
[![GoDoc](https://img.shields.io/badge/godoc-reference-5272B4.svg?style=for-the-badge)](https://godoc.org/github.com/jessfraz/bpfd)
[![Github All Releases](https://img.shields.io/github/downloads/jessfraz/bpfd/total.svg?style=for-the-badge)](https://github.com/jessfraz/bpfd/releases)
[![Travis CI](https://img.shields.io/travis/genuinetools/bpfd.svg?style=for-the-badge)](https://travis-ci.org/genuinetools/bpfd)
[![GoDoc](https://img.shields.io/badge/godoc-reference-5272B4.svg?style=for-the-badge)](https://godoc.org/github.com/genuinetools/bpfd)
[![Github All Releases](https://img.shields.io/github/downloads/genuinetools/bpfd/total.svg?style=for-the-badge)](https://github.com/genuinetools/bpfd/releases)

Framework for running BPF tracers with rules on Linux as a daemon. Container aware.

Expand Down Expand Up @@ -104,7 +104,7 @@ data struct.

You can also filter based off the container runtime you would like to alert on.
The container runtime must be one of the strings defined
[here](https://github.com/jessfraz/bpfd/blob/master/proc/proc.go#L24).
[here](https://github.com/genuinetools/bpfd/blob/master/proc/proc.go#L24).

If you provide no rules for a tracer, then _all_ the events will be passed to
actions.
Expand All @@ -126,13 +126,13 @@ containerRuntimes = ["docker","kube"]
```

If you are wondering where the `command` key comes from, it's defined in the
`exec` tracer [here](https://github.com/jessfraz/bpfd/blob/master/tracer/exec/exec.go#L200).
`exec` tracer [here](https://github.com/genuinetools/bpfd/blob/master/tracer/exec/exec.go#L200).

Rules can be dynamically controlled via bpfd's [gRPC](https://grpc.io/) interface.
The cli tool can also be used for creating rules dynamically, see
[`create` usage](#create-rules-dynamically).

The protobuf protocol definition is defined in [api/grpc/api.proto](https://github.com/jessfraz/bpfd/blob/master/api/grpc/api.proto)
The protobuf protocol definition is defined in [api/grpc/api.proto](https://github.com/genuinetools/bpfd/blob/master/api/grpc/api.proto)

To interact with the gRPC api you can use the [`--gpc-addr` flag](#usage)
or the default is a sock at `/run/bpfd/bpfd.sock`.
Expand Down Expand Up @@ -168,12 +168,12 @@ To build, you need to have `libbcc` installed [SEE INSTRUCTIONS HERE](https://gi

#### Binaries

For installation instructions from binaries please visit the [Releases Page](https://github.com/jessfraz/bpfd/releases).
For installation instructions from binaries please visit the [Releases Page](https://github.com/genuinetools/bpfd/releases).

#### Via Go

```console
$ go get github.com/jessfraz/bpfd
$ go get github.com/genuinetools/bpfd
```

#### Via Docker
Expand Down
2 changes: 1 addition & 1 deletion action/action.go
Expand Up @@ -3,7 +3,7 @@ package action
import (
"fmt"

"github.com/jessfraz/bpfd/api/grpc"
"github.com/genuinetools/bpfd/api/grpc"
)

var (
Expand Down
4 changes: 2 additions & 2 deletions action/kill/kill.go
Expand Up @@ -4,8 +4,8 @@ import (
"fmt"
"os"

"github.com/jessfraz/bpfd/action"
"github.com/jessfraz/bpfd/api/grpc"
"github.com/genuinetools/bpfd/action"
"github.com/genuinetools/bpfd/api/grpc"
)

const (
Expand Down
4 changes: 2 additions & 2 deletions action/stdout/stdout.go
Expand Up @@ -3,8 +3,8 @@ package stdout
import (
"fmt"

"github.com/jessfraz/bpfd/action"
"github.com/jessfraz/bpfd/api/grpc"
"github.com/genuinetools/bpfd/action"
"github.com/genuinetools/bpfd/api/grpc"
"github.com/sirupsen/logrus"
)

Expand Down
10 changes: 5 additions & 5 deletions api/api.go
Expand Up @@ -6,11 +6,11 @@ import (
"fmt"
"sync"

"github.com/jessfraz/bpfd/action"
"github.com/jessfraz/bpfd/api/grpc"
"github.com/jessfraz/bpfd/proc"
rulespkg "github.com/jessfraz/bpfd/rules"
"github.com/jessfraz/bpfd/tracer"
"github.com/genuinetools/bpfd/action"
"github.com/genuinetools/bpfd/api/grpc"
"github.com/genuinetools/bpfd/proc"
rulespkg "github.com/genuinetools/bpfd/rules"
"github.com/genuinetools/bpfd/tracer"
"github.com/sirupsen/logrus"
)

Expand Down
2 changes: 1 addition & 1 deletion api/event.go
@@ -1,7 +1,7 @@
package api

import (
"github.com/jessfraz/bpfd/api/grpc"
"github.com/genuinetools/bpfd/api/grpc"
)

// addEvent will add a event to the heap.
Expand Down
2 changes: 1 addition & 1 deletion client.go
Expand Up @@ -6,7 +6,7 @@ import (
"net"
"time"

types "github.com/jessfraz/bpfd/api/grpc"
types "github.com/genuinetools/bpfd/api/grpc"
"google.golang.org/grpc"
)

Expand Down
4 changes: 2 additions & 2 deletions create.go
Expand Up @@ -7,8 +7,8 @@ import (
"fmt"
"strings"

"github.com/jessfraz/bpfd/api/grpc"
"github.com/jessfraz/bpfd/rules"
"github.com/genuinetools/bpfd/api/grpc"
"github.com/genuinetools/bpfd/rules"
"github.com/sirupsen/logrus"
)

Expand Down
22 changes: 11 additions & 11 deletions daemon.go
Expand Up @@ -12,23 +12,23 @@ import (
"strings"
"syscall"

"github.com/jessfraz/bpfd/action"
"github.com/jessfraz/bpfd/api"
types "github.com/jessfraz/bpfd/api/grpc"
"github.com/jessfraz/bpfd/rules"
"github.com/jessfraz/bpfd/tracer"
"github.com/genuinetools/bpfd/action"
"github.com/genuinetools/bpfd/api"
types "github.com/genuinetools/bpfd/api/grpc"
"github.com/genuinetools/bpfd/rules"
"github.com/genuinetools/bpfd/tracer"
"github.com/sirupsen/logrus"
"google.golang.org/grpc"

// Register the builtin tracers.
_ "github.com/jessfraz/bpfd/tracer/bashreadline"
_ "github.com/jessfraz/bpfd/tracer/exec"
_ "github.com/jessfraz/bpfd/tracer/open"
_ "github.com/jessfraz/bpfd/tracer/tcpdrop"
_ "github.com/genuinetools/bpfd/tracer/bashreadline"
_ "github.com/genuinetools/bpfd/tracer/exec"
_ "github.com/genuinetools/bpfd/tracer/open"
_ "github.com/genuinetools/bpfd/tracer/tcpdrop"

// Register the builtin actions.
_ "github.com/jessfraz/bpfd/action/kill"
_ "github.com/jessfraz/bpfd/action/stdout"
_ "github.com/genuinetools/bpfd/action/kill"
_ "github.com/genuinetools/bpfd/action/stdout"
)

const daemonHelp = `Start the daemon.`
Expand Down
2 changes: 1 addition & 1 deletion list.go
Expand Up @@ -7,7 +7,7 @@ import (
"os"
"text/tabwriter"

"github.com/jessfraz/bpfd/api/grpc"
"github.com/genuinetools/bpfd/api/grpc"
)

const listHelp = `List rules.`
Expand Down
2 changes: 1 addition & 1 deletion main.go
Expand Up @@ -5,8 +5,8 @@ import (
"errors"
"flag"

"github.com/genuinetools/bpfd/version"
"github.com/genuinetools/pkg/cli"
"github.com/jessfraz/ship/version"
"github.com/sirupsen/logrus"
)

Expand Down
2 changes: 1 addition & 1 deletion remove.go
Expand Up @@ -7,7 +7,7 @@ import (
"fmt"
"strings"

"github.com/jessfraz/bpfd/api/grpc"
"github.com/genuinetools/bpfd/api/grpc"
"github.com/sirupsen/logrus"
)

Expand Down
4 changes: 2 additions & 2 deletions rules/rules.go
Expand Up @@ -8,8 +8,8 @@ import (
"strings"

"github.com/BurntSushi/toml"
"github.com/jessfraz/bpfd/api/grpc"
"github.com/jessfraz/bpfd/proc"
"github.com/genuinetools/bpfd/api/grpc"
"github.com/genuinetools/bpfd/proc"
)

// ParseFiles parses the rules files and returns an array of rules for each tracer.
Expand Down
4 changes: 2 additions & 2 deletions rules/rules_test.go
Expand Up @@ -3,8 +3,8 @@ package rules
import (
"testing"

"github.com/jessfraz/bpfd/api/grpc"
"github.com/jessfraz/bpfd/proc"
"github.com/genuinetools/bpfd/api/grpc"
"github.com/genuinetools/bpfd/proc"
)

func TestMatch(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion trace.go
Expand Up @@ -9,7 +9,7 @@ import (
"os/signal"
"syscall"

"github.com/jessfraz/bpfd/api/grpc"
"github.com/genuinetools/bpfd/api/grpc"
"github.com/sirupsen/logrus"
)

Expand Down
4 changes: 2 additions & 2 deletions tracer/bashreadline/bashreadline.go
Expand Up @@ -6,9 +6,9 @@ import (
"fmt"
"strings"

"github.com/genuinetools/bpfd/api/grpc"
"github.com/genuinetools/bpfd/tracer"
bpf "github.com/iovisor/gobpf/bcc"
"github.com/jessfraz/bpfd/api/grpc"
"github.com/jessfraz/bpfd/tracer"
)

const (
Expand Down
4 changes: 2 additions & 2 deletions tracer/exec/exec.go
Expand Up @@ -6,9 +6,9 @@ import (
"fmt"
"strings"

"github.com/genuinetools/bpfd/api/grpc"
"github.com/genuinetools/bpfd/tracer"
bpf "github.com/iovisor/gobpf/bcc"
"github.com/jessfraz/bpfd/api/grpc"
"github.com/jessfraz/bpfd/tracer"
)

const (
Expand Down
4 changes: 2 additions & 2 deletions tracer/open/open.go
Expand Up @@ -6,9 +6,9 @@ import (
"fmt"
"strings"

"github.com/genuinetools/bpfd/api/grpc"
"github.com/genuinetools/bpfd/tracer"
bpf "github.com/iovisor/gobpf/bcc"
"github.com/jessfraz/bpfd/api/grpc"
"github.com/jessfraz/bpfd/tracer"
)

const (
Expand Down
6 changes: 3 additions & 3 deletions tracer/tcpdrop/tcpdrop.go
Expand Up @@ -11,10 +11,10 @@ import (
"fmt"
"strings"

"github.com/genuinetools/bpfd/api/grpc"
"github.com/genuinetools/bpfd/tcp"
"github.com/genuinetools/bpfd/tracer"
bpf "github.com/iovisor/gobpf/bcc"
"github.com/jessfraz/bpfd/api/grpc"
"github.com/jessfraz/bpfd/tcp"
"github.com/jessfraz/bpfd/tracer"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion tracer/tracer.go
Expand Up @@ -3,7 +3,7 @@ package tracer
import (
"fmt"

"github.com/jessfraz/bpfd/api/grpc"
"github.com/genuinetools/bpfd/api/grpc"
"github.com/sirupsen/logrus"
)

Expand Down

0 comments on commit d84b348

Please sign in to comment.