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: misc updates for network-control, firewall-control, unity7 and default policy #2842

Merged
merged 6 commits into from
Feb 16, 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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions interfaces/apparmor/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -343,8 +343,8 @@ var defaultTemplate = []byte(`
/{dev,run}/shm/sem.snap.@{SNAP_NAME}.* rwk,

# Snap-specific XDG_RUNTIME_DIR that is based on the UID of the user
owner /{dev,run}/user/[0-9]*/snap.@{SNAP_NAME}/ rw,
owner /{dev,run}/user/[0-9]*/snap.@{SNAP_NAME}/** mrwklix,
owner /run/user/[0-9]*/snap.@{SNAP_NAME}/ rw,
owner /run/user/[0-9]*/snap.@{SNAP_NAME}/** mrwklix,

# Allow apps from the same package to communicate with each other via an
# abstract or anonymous socket
Expand Down
4 changes: 4 additions & 0 deletions interfaces/builtin/firewall_control.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ unix (bind) type=stream addr="@xtables",
@{PROC}/sys/net/netfilter/** r,
@{PROC}/sys/net/nf_conntrack_max r,

# read netfilter module parameters
/sys/module/nf_*/ r,
/sys/module/nf_*/parameters/{,*} r,

# various firewall related sysctl files
@{PROC}/sys/net/ipv4/conf/*/rp_filter w,
@{PROC}/sys/net/ipv{4,6}/conf/*/accept_source_route w,
Expand Down
4 changes: 4 additions & 0 deletions interfaces/builtin/network_control.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ network sna,
@{PROC}/sys/net/netfilter/** rw,
@{PROC}/sys/net/nf_conntrack_max rw,

# read netfilter module parameters
/sys/module/nf_*/ r,
/sys/module/nf_*/parameters/{,*} r,

# networking tools
/{,usr/}{,s}bin/arp ixr,
/{,usr/}{,s}bin/arpd ixr,
Expand Down
14 changes: 14 additions & 0 deletions interfaces/builtin/unity7.go
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,20 @@ dbus (receive)
member="{GetAll,GetLayout}"
peer=(label=unconfined),

# Allow requesting interest in receiving media key events. This tells Gnome
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️

# settings that our application should be notified when key events we are
# interested in are pressed.
dbus (send)
bus=session
interface=org.gnome.SettingsDaemon.MediaKeys
path=/org/gnome/SettingsDaemon/MediaKeys
peer=(label=unconfined),
dbus (send)
bus=session
interface=org.freedesktop.DBus.Properties
path=/org/gnome/SettingsDaemon/MediaKeys
member="Get{,All}"
peer=(label=unconfined),

# Lttng tracing is very noisy and should not be allowed by confined apps. Can
# safely deny. LP: #1260491
Expand Down