Skip to content

Commit

Permalink
agent: build without landlock support
Browse files Browse the repository at this point in the history
  • Loading branch information
shoenig committed Nov 4, 2023
1 parent ec6c48a commit 8d3c068
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 138 deletions.
2 changes: 2 additions & 0 deletions agent/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ type CoreConfig struct {
SuffixDir string
NoDefaults bool
Forward *Forward
NoLandlock bool
}

// Generate a CoreDNS (Caddy) style configuration block as a string.
Expand Down Expand Up @@ -82,6 +83,7 @@ func ConfigFromEnv(e env.Environment) *CoreConfig {
"DONUT_DNS_UPSTREAM_1": env.String(&upstream1, false),
"DONUT_DNS_UPSTREAM_2": env.String(&upstream2, false),
"DONUT_DNS_UPSTREAM_NAME": env.String(&cc.Forward.ServerName, false),
"DONUT_DNS_NO_LANDLOCK": env.Bool(&cc.NoLandlock, false),
}); err != nil {
panic(err)
}
Expand Down
35 changes: 0 additions & 35 deletions agent/lockdown.go

This file was deleted.

9 changes: 0 additions & 9 deletions agent/lockdown_default.go

This file was deleted.

9 changes: 0 additions & 9 deletions agent/lockdown_linux.go

This file was deleted.

82 changes: 0 additions & 82 deletions agent/lockdown_test.go

This file was deleted.

3 changes: 0 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,6 @@ func setupCC() {
// get core config from environment
cc := getCC()

// sandbox donutdns from filesystem (Linux landlock)
_ = agent.Lockdown(cc)

// set plugin core config
dnsserver.Port = strconv.Itoa(cc.Port)
dnsserver.Directives = directives
Expand Down

0 comments on commit 8d3c068

Please sign in to comment.