2010-02-12 10:14:11 -06:00
|
|
|
# This publication is intellectual property of 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 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. Canonical Ltd
|
|
|
|
# essentially adheres 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
|
|
|
|
|
2010-11-03 17:03:52 -07:00
|
|
|
aa-notify - display information about logged AppArmor messages.
|
2010-02-12 10:14:11 -06:00
|
|
|
|
|
|
|
=head1 SYNOPSIS
|
|
|
|
|
2010-11-03 17:03:52 -07:00
|
|
|
B<aa-notify> [option]
|
2010-02-12 10:14:11 -06:00
|
|
|
|
|
|
|
=head1 DESCRIPTION
|
|
|
|
|
2010-11-03 17:03:52 -07:00
|
|
|
B<aa-notify> will display a summary or provide desktop notifications
|
2010-02-12 10:14:11 -06:00
|
|
|
for AppArmor DENIED messages.
|
|
|
|
|
|
|
|
=head1 OPTIONS
|
|
|
|
|
2010-11-03 17:03:52 -07:00
|
|
|
B<aa-notify> accepts the following arguments:
|
2010-02-12 10:14:11 -06:00
|
|
|
|
|
|
|
=over 4
|
|
|
|
|
2010-05-12 10:46:22 +02:00
|
|
|
=item -p, --poll
|
2010-02-12 10:14:11 -06:00
|
|
|
|
|
|
|
poll AppArmor logs and display desktop notifications. Can be used with '-s'
|
|
|
|
option to display a summary on startup.
|
|
|
|
|
2014-09-08 20:40:33 +02:00
|
|
|
=item --display $DISPLAY
|
|
|
|
|
|
|
|
set the DISPLAY environment variable to $DISPLAY
|
|
|
|
(might be needed if sudo resets $DISPLAY)
|
|
|
|
|
2010-05-12 10:46:22 +02:00
|
|
|
=item -f FILE, --file=FILE
|
2010-03-27 09:16:38 -05:00
|
|
|
|
|
|
|
search FILE for AppArmor messages
|
|
|
|
|
2010-05-12 10:46:22 +02:00
|
|
|
=item -l, --since-last
|
2010-02-12 10:14:11 -06:00
|
|
|
|
|
|
|
show summary since last login.
|
|
|
|
|
2010-05-12 10:46:22 +02:00
|
|
|
=item -s NUM, --since-days=NUM
|
2010-02-12 10:14:11 -06:00
|
|
|
|
|
|
|
show summary for last NUM of days.
|
|
|
|
|
2010-05-12 10:46:22 +02:00
|
|
|
=item -u USER, --user=USER
|
2010-03-30 10:48:51 -05:00
|
|
|
|
2011-08-17 07:49:00 -05:00
|
|
|
user to drop privileges to when running privileged. When used with the -p
|
|
|
|
option, this should be set to the user that will receive desktop notifications.
|
|
|
|
This has no effect when running under sudo.
|
2010-03-30 10:48:51 -05:00
|
|
|
|
2010-05-12 10:46:22 +02:00
|
|
|
=item -w NUM, --wait=NUM
|
2010-03-30 10:48:51 -05:00
|
|
|
|
|
|
|
wait NUM seconds before displaying notifications (for use with -p)
|
|
|
|
|
2010-05-12 10:46:22 +02:00
|
|
|
=item -v, --verbose
|
2010-02-12 10:14:11 -06:00
|
|
|
|
|
|
|
show messages with summaries.
|
|
|
|
|
2010-05-12 10:46:22 +02:00
|
|
|
=item -h, --help
|
2010-02-12 10:14:11 -06:00
|
|
|
|
|
|
|
displays a short usage statement.
|
|
|
|
|
2010-02-12 10:25:02 -06:00
|
|
|
=back
|
|
|
|
|
2010-02-12 10:14:11 -06:00
|
|
|
=head1 CONFIGURATION
|
|
|
|
|
2010-11-03 17:03:52 -07:00
|
|
|
System-wide configuration for B<aa-notify> is done via
|
2010-02-12 10:14:11 -06:00
|
|
|
/etc/apparmor/notify.conf:
|
|
|
|
|
|
|
|
# set to 'yes' to enable AppArmor DENIED notifications
|
|
|
|
show_notifications="yes"
|
|
|
|
|
2010-11-03 17:03:52 -07:00
|
|
|
# only people in use_group can use aa-notify
|
2010-02-12 10:14:11 -06:00
|
|
|
use_group="admin"
|
|
|
|
|
2018-02-26 14:43:19 +11:00
|
|
|
# OPTIONAL - custom notification message body
|
|
|
|
message_body="This is a custom notification message."
|
|
|
|
|
|
|
|
# OPTIONAL - custom notification message footer
|
|
|
|
message_footer="For more information visit https://foo.com"
|
|
|
|
|
2018-10-06 14:09:11 +03:00
|
|
|
Per-user configuration is done via $XDG_CONFIG_HOME/apparmor/notify.conf (or
|
|
|
|
the deprecated ~/.apparmor/notify.conf if it exists):
|
2010-02-12 10:14:11 -06:00
|
|
|
|
|
|
|
# set to 'yes' to enable AppArmor DENIED notifications
|
|
|
|
show_notifications="yes"
|
|
|
|
|
|
|
|
=head1 BUGS
|
|
|
|
|
2010-11-03 17:03:52 -07:00
|
|
|
B<aa-notify> needs to be able to read the logfiles containing the
|
2010-02-12 10:14:11 -06:00
|
|
|
AppArmor DENIED messages.
|
|
|
|
|
2020-05-02 20:40:55 -07:00
|
|
|
If you find any additional bugs, please report them to Gitlab at
|
|
|
|
L<https://gitlab.com/apparmor/apparmor/-/issues>.
|
2010-02-12 10:14:11 -06:00
|
|
|
|
|
|
|
=head1 SEE ALSO
|
|
|
|
|
|
|
|
apparmor(7)
|
|
|
|
|
|
|
|
=cut
|