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

interfaces: allow 'getent' by default with some missing dbs to various interfaces #2956

Merged
merged 3 commits into from Mar 1, 2017
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions interfaces/apparmor/template.go
Expand Up @@ -121,6 +121,7 @@ var defaultTemplate = []byte(`
/{,usr/}bin/find ixr,
/{,usr/}bin/flock ixr,
/{,usr/}bin/fmt ixr,
/{,usr/}bin/getent ixr,
/{,usr/}bin/getopt ixr,
/{,usr/}bin/groups ixr,
/{,usr/}bin/gzip ixr,
Expand Down
3 changes: 3 additions & 0 deletions interfaces/builtin/network_control.go
Expand Up @@ -127,6 +127,9 @@ capability setuid,

# route
/etc/networks r,
/etc/ethers r,

/etc/rpc r,

# TUN/TAP
/dev/net/tun rw,
Expand Down
3 changes: 3 additions & 0 deletions interfaces/builtin/network_observe.go
Expand Up @@ -84,6 +84,9 @@ network inet6 raw,

# route
/etc/networks r,
/etc/ethers r,

/etc/rpc r,

# network devices
/sys/devices/**/net/** r,
Expand Down