Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AnwarShah/347d10cbd754ca1a49fff78b1595602b to your computer and use it in GitHub Desktop.
Save AnwarShah/347d10cbd754ca1a49fff78b1595602b to your computer and use it in GitHub Desktop.
apparmor profile for apm of atom-beta
#include <tunables/global>
/usr/share/atom-beta/resources/app/apm/bin/apm {
#include <abstractions/base>
#include <abstractions/bash>
deny network inet dgram,
deny network inet stream,
deny network netlink raw,
/bin/bash ix,
/bin/uname rix,
/dev/tty rw,
/etc/host.conf r,
/etc/hosts r,
/etc/nsswitch.conf r,
/home/*/ r,
/home/*/.atom/** r,
/home/*/.atom/.apm/.apmrc w,
/proc/filesystems r,
/run/resolvconf/resolv.conf r,
/usr/bin/basename rix,
/usr/bin/dirname rix,
/usr/share/atom-beta/** rw,
/usr/share/atom-beta/resources/app/apm/bin/node rix,
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment