2013-09-19 10:32:19 +05:30
|
|
|
# This publication is intellectual property of Novell Inc. and Canonical
|
|
|
|
# Ltd. Its contents can be duplicated, either in part or in whole, provided
|
|
|
|
# that a copyright label is visibly located on each copy.
|
|
|
|
#
|
|
|
|
# All information found in this book has been compiled with utmost
|
|
|
|
# attention to detail. However, this does not guarantee complete accuracy.
|
|
|
|
# Neither SUSE LINUX GmbH, Canonical Ltd, the authors, nor the translators
|
|
|
|
# shall be held liable for possible errors or the consequences thereof.
|
|
|
|
#
|
|
|
|
# Many of the software and hardware descriptions cited in this book
|
|
|
|
# are registered trademarks. All trade names are subject to copyright
|
|
|
|
# restrictions and may be registered trade marks. SUSE LINUX GmbH
|
|
|
|
# and Canonical Ltd. essentially adhere to the manufacturer's spelling.
|
|
|
|
#
|
|
|
|
# Names of products and trademarks appearing in this book (with or without
|
|
|
|
# specific notation) are likewise subject to trademark and trade protection
|
|
|
|
# laws and may thus fall under copyright restrictions.
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
=pod
|
|
|
|
|
|
|
|
=head1 NAME
|
|
|
|
|
|
|
|
aa-unconfined - output a list of processes with tcp or udp ports that do
|
|
|
|
not have AppArmor profiles loaded
|
|
|
|
|
|
|
|
=head1 SYNOPSIS
|
|
|
|
|
2024-07-06 00:37:01 -07:00
|
|
|
B<aa-unconfined [options] [I<--with-ss> | I<--with-netstat>]>
|
2013-09-19 10:32:19 +05:30
|
|
|
|
|
|
|
=head1 OPTIONS
|
|
|
|
|
2016-12-30 12:15:16 -08:00
|
|
|
=over 4
|
2013-09-19 10:32:19 +05:30
|
|
|
|
2016-12-30 12:15:16 -08:00
|
|
|
=item B<--paranoid>
|
|
|
|
|
2024-07-06 00:37:01 -07:00
|
|
|
Displays all processes visible from F</proc> filesystem, and whether they
|
|
|
|
are confined by a profile or "not confined". Equivalent to
|
|
|
|
I<--show=all>.
|
|
|
|
|
2024-07-07 04:34:27 -07:00
|
|
|
=item B<--show=(all|network|server|client)>
|
2024-07-06 00:37:01 -07:00
|
|
|
|
|
|
|
Determines the set of processes to be displayed.
|
|
|
|
|
|
|
|
I<--show=all> show all processes is equivalent to I<--paranoid>
|
|
|
|
|
2024-07-07 04:34:27 -07:00
|
|
|
I<--show=network> show only process with any sockets open.
|
|
|
|
|
2024-07-06 00:37:01 -07:00
|
|
|
I<--show=server> show only processes with listening sockets open. This is
|
|
|
|
the B<default> value if I<--show=> or I<--paranoid> are not specified.
|
2016-12-30 12:15:16 -08:00
|
|
|
|
2024-07-06 00:38:58 -07:00
|
|
|
I<--show=client> show only processes with non-listening sockets open.
|
|
|
|
|
2016-12-30 12:15:16 -08:00
|
|
|
=item B<--with-ss>
|
|
|
|
|
|
|
|
Use the ss(8) command to find processes listening on network sockets
|
|
|
|
(the default).
|
|
|
|
|
|
|
|
=item B<--with-netstat>
|
|
|
|
|
|
|
|
Use the netstat(8) command to find processes listening on network
|
|
|
|
sockets. This is also what aa-unconfined will fall back to when ss(8)
|
|
|
|
is not available.
|
|
|
|
|
|
|
|
=back
|
2013-09-19 10:32:19 +05:30
|
|
|
|
|
|
|
=head1 DESCRIPTION
|
|
|
|
|
|
|
|
B<aa-unconfined> will use netstat(8) to determine which processes have open
|
|
|
|
network sockets and do not have AppArmor profiles loaded into the kernel.
|
|
|
|
|
|
|
|
=head1 BUGS
|
|
|
|
|
|
|
|
B<aa-unconfined> must be run as root to retrieve the process executable
|
|
|
|
link from the F</proc> filesystem. This program is susceptible to race
|
|
|
|
conditions of several flavours: an unlinked executable will be mishandled;
|
2013-09-20 19:20:41 +05:30
|
|
|
an executable started before an AppArmor profile is loaded will not
|
2013-09-19 10:32:19 +05:30
|
|
|
appear in the output, despite running without confinement; a process that dies
|
|
|
|
between the netstat(8) and further checks will be mishandled. This
|
|
|
|
program only lists processes using TCP and UDP. In short, this
|
|
|
|
program is unsuitable for forensics use and is provided only as an aid
|
|
|
|
to profiling all network-accessible processes in the lab.
|
|
|
|
|
|
|
|
If you find any bugs, please report them at
|
2020-05-02 20:40:55 -07:00
|
|
|
L<https://gitlab.com/apparmor/apparmor/-/issues>.
|
2013-09-19 10:32:19 +05:30
|
|
|
|
|
|
|
=head1 SEE ALSO
|
|
|
|
|
2016-12-30 12:15:16 -08:00
|
|
|
ss(8), netstat(8), apparmor(7), apparmor.d(5), aa_change_hat(2), and
|
2018-09-13 16:28:22 +00:00
|
|
|
L<https://wiki.apparmor.net>.
|
2013-09-19 10:32:19 +05:30
|
|
|
|
|
|
|
=cut
|