LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

aa-unconfined

Find network-listening processes without AppArmor profiles

TLDR

List unconfined processes with open network sockets (using ss by default)
$ sudo aa-unconfined
copy
Use netstat instead of ss to detect open network sockets
$ sudo aa-unconfined --with-netstat
copy
Show all processes from /proc with TCP/UDP ports without confinement
$ sudo aa-unconfined --paranoid
copy
Show only server processes (those with listening sockets)
$ sudo aa-unconfined --show=server
copy

SYNOPSIS

aa-unconfined [--paranoid] [--with-ss | --with-netstat]

DESCRIPTION

aa-unconfined identifies processes that listen on network sockets but lack AppArmor security profiles. It accomplishes this by checking processes with open TCP or UDP connections against loaded kernel AppArmor policies.This tool is useful for identifying services that may benefit from AppArmor confinement.

PARAMETERS

--paranoid

Examines all processes from the /proc filesystem that have active TCP or UDP ports without AppArmor confinement. Equivalent to --show=all.
--show=MODE
Determines the set of processes displayed: all (all processes), network (processes with any sockets), server (processes with listening sockets), client (processes with non-listening sockets).
--with-ss
Uses the ss(8) utility to identify network socket listeners (default).
--with-netstat
Uses the netstat(8) command for network socket discovery instead of ss. Used as fallback when ss is not available.
-h, --help
Display help information.

INSTALL

sudo apk add apparmor-utils
copy
sudo zypper install apparmor-utils
copy
nix profile install nixpkgs#apparmor-utils
copy

CAVEATS

The tool must run with root privileges and has limitations: it cannot reliably handle deleted executables, may miss processes started before profile loading, and is susceptible to race conditions. It only monitors TCP and UDP protocols.

HISTORY

Part of the AppArmor utilities package for managing application security profiles on Linux systems.

SEE ALSO

aa-status(8), aa-genprof(8), ss(8), netstat(8), apparmor(7)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid