Skip to content

Commit

Permalink
fine tune apparmor
Browse files Browse the repository at this point in the history
  • Loading branch information
lmagyar committed Jan 26, 2025
1 parent a46ad41 commit 88efb0d
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions tailscale/apparmor.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,21 @@ profile tailscale flags=(attach_disconnected,mediate_deleted) {
# Access to options.json and other files within your addon
/data/** rw,

# Mount
network,
capability,
# General - based on complain
capability net_bind_service,
capability dac_override,
capability fsetid,
capability setgid,
capability setuid,
capability chown,
capability net_bind_service,
mount,
capability kill,

# General - based on Config.yaml
capability net_admin,
capability net_raw,

# Mount for MagicDNS fix
capability sys_admin,
mount options=(rw, rprivate) -> /, # unshare -m
mount options=(rw, bind) /etc/resolv.for-tailscaled.conf -> /etc/resolv.conf, # mount --bind
}

0 comments on commit 88efb0d

Please sign in to comment.