-
Notifications
You must be signed in to change notification settings - Fork 268
Expand file tree
/
Copy pathapparmor_managing.xml
More file actions
1871 lines (1830 loc) · 61.9 KB
/
apparmor_managing.xml
File metadata and controls
1871 lines (1830 loc) · 61.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?xml version="1.0"?>
<!DOCTYPE chapter [
<!ENTITY % entities SYSTEM "generic-entities.ent">
%entities;
]>
<chapter xmlns="http://docbook.org/ns/docbook" xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0" xml:id="cha-apparmor-managing">
<title>Managing Profiled Applications</title>
<info>
<meta name="description">Maintain your security policy files regularly by updating profiles from system logs and monitoring for rejected actions</meta>
<dm:docmanager xmlns:dm="urn:x-suse:ns:docmanager">
<dm:bugtracker>
</dm:bugtracker>
</dm:docmanager>
<revhistory xml:id="rh-cha-apparmor-managing">
<revision>
<date>2026-04-09</date>
<revdescription>
<para/>
</revdescription>
</revision>
</revhistory>
</info>
<para>
After creating profiles and immunizing your applications,
&productnamereg; becomes more efficient and better protected as long as
you perform &aareg; profile maintenance (which involves analyzing log
files, refining your profiles, backing up your set of profiles and keeping
it up-to-date). You can deal with these issues before they become a
problem by setting up event notification by e-mail, updating profiles from
system log entries by running the aa-logprof tool, and dealing with
maintenance issues.
</para>
<!-- fs 2011-11-09 - see bnc #722915
(reporting is not available in 12.1 (aa-eventd isn't maintained upstream,
and doesn't understand the (not-so-)new audit.log format))
<sect1 id="sec-apparmor-managing-monitor">
<title>Monitoring Your Secured Applications</title>
<para>
Applications that are confined by &aa; security profiles generate
messages when applications execute in unexpected ways or outside of their
specified profile. These messages can be monitored by event notification,
periodic report generation, or integration into a third-party reporting
mechanism.
</para>
<para>
For reporting and alerting, &aa; uses a user space daemon
(<command>/usr/sbin/aa-eventd</command>). This daemon monitors log
traffic, sends out notifications, and runs scheduled reports. It does not
require any end user configuration and it is started automatically as
part of the security event notification through the &yast; &aa; Control
Panel or by the configuration of scheduled reports in the &yast; &aa;
Reports module.
</para>
<para>
Apart from transparently enabling and disabling aa-eventd with the &yast;
modules, you can manually toggle its status with the
<command>rcaaeventd</command> init script. The &aa; event daemon is not
required for proper functioning of the profiling process (such as
enforcement or learning). It is required for reporting only.
</para>
<para>
Find more details on security event notification in
<xref
linkend="sec-apparmor-managing-config-sen"/> and on scheduled
reports in <xref
linkend="sec-apparmor-managing-config-reports"/>.
</para>
<para>
If you prefer a simple way of being notified of any &aa; reject events
that does not require you to check your e-mails or any log files, use the
&aa; Desktop Monitor applet that integrates into the &gnome; desktop. Refer
to <xref linkend="sec-apparmor-managing-dmon"/> for details.
</para>
</sect1>
<sect1 id="sec-apparmor-managing-config-sen">
<title>Configuring Security Event Notification</title>
<para>
Security event notification is a &aa; feature that informs you when
systemic &aa; activity occurs. Activate it by selecting a notification
frequency (receiving daily notification, for example). Enter an e-mail
address so you can be notified by e-mail when &aa; security events
occur. Select one of the following notification types:
</para>
<variablelist>
<varlistentry>
<term>Terse</term>
<listitem>
<para>
Terse notification summarizes the total number of system events
without providing details. For example:
</para>
<screen>&wsIname; has had 41 security events since Mon Sep 10 14:53:16 2007.
</screen>
</listitem>
</varlistentry>
<varlistentry>
<term>Summary Notification</term>
<listitem>
<para>
Summary notification displays the logged &aa; security events and
lists the number of individual occurrences, including the date of the
last occurrence. For example:
</para>
<screen>AppArmor: PERMITTING access to capability ’setgid’ (httpd2-prefork(6347) profile /usr/sbin/httpd2-prefork active /usr/sbin/httpd2-prefork) 2 times, the latest at Sat Oct 9 16:05:54 2004.</screen>
</listitem>
</varlistentry>
<varlistentry>
<term>Verbose Notification</term>
<listitem>
<para>
Verbose notification displays unmodified, logged &aa; security
events. It tells you every time an event occurs and writes a new line
in the verbose log. These security events include the date and time
the event occurred, when the application profile permits and rejects
access, and the type of file permission access that is permitted or
rejected. Verbose notification also reports several messages that the
aa-logprof tool (see
<xref linkend="sec-apparmor-commandline-profiling-summary-logprof"/>)
uses to interpret profiles. For example:
</para>
<screen>type=APPARMOR_DENIED msg=audit(1189428793.218:2880):
operation="file_permission" requested_mask="::w" denied_mask="::w" fsuid=1000 name="/var/log/apache2/error_log" pid=22969 profile="/usr/sbin/httpd2-prefork"
</screen>
</listitem>
</varlistentry>
</variablelist>
<note>
<para>
You must set up a mail server that can send outgoing mail using the SMTP
protocol (for example, postfix or exim) for event notification to work.
</para>
</note>
<procedure>
<step>
<para>
In the <guimenu>Enable Security Event Notification</guimenu> section of
the <guimenu>&aa; Configuration</guimenu> window, click
<guimenu>Configure</guimenu>.
</para>
<informalfigure>
<mediaobject>
<textobject role="description"><phrase>Security event
notification window</phrase>
</textobject>
<imageobject role="fo">
<imagedata fileref="eventnotif.png" width="75%"/>
</imageobject>
<imageobject role="html">
<imagedata fileref="eventnotif.png" width="75%"/>
</imageobject>
</mediaobject>
</informalfigure>
</step>
<step>
<para>
In the <guimenu>Security Event Notification</guimenu> window, enable
<guimenu>Terse</guimenu>, <guimenu>Summary</guimenu>, or
<guimenu>Verbose</guimenu> event notification.
</para>
<substeps>
<step>
<para>
In each applicable notification type section, enter the e-mail
addresses of those who should receive notification in the field
provided. If notification is enabled, you must enter an e-mail
address. Separate multiple e-mail addresses with commas.
</para>
</step>
<step>
<para>
For each notification type enabled, select the frequency of
notification.
</para>
<para>
Select a notification frequency from the following options:
</para>
<itemizedlist>
<listitem>
<para>
Disabled
</para>
</listitem>
<listitem>
<para>
1 minute
</para>
</listitem>
<listitem>
<para>
5 minutes
</para>
</listitem>
<listitem>
<para>
10 minutes
</para>
</listitem>
<listitem>
<para>
15 minutes
</para>
</listitem>
<listitem>
<para>
30 minutes
</para>
</listitem>
<listitem>
<para>
1 hour
</para>
</listitem>
<listitem>
<para>
1 day
</para>
</listitem>
<listitem>
<para>
1 week
</para>
</listitem>
</itemizedlist>
</step>
<step>
<para>
For each selected notification type, select the lowest severity level
for which a notification should be sent. Security events are logged
and the notifications are sent at the time indicated by the interval
when events are equal to or greater than the selected severity level.
If the interval is <guimenu>1 day</guimenu>, the notification is sent
daily, if security events occur.
</para>
<note>
<title>Severity Levels</title>
<para>
&aa; sends out event messages for things that are in the severity
database and above the level selected. Severity levels are numbered
1 through 10, with 10 being the most severe security incident. The
<filename>/etc/severity.db</filename> file defines the severity
level of potential security events. The severity levels are
determined by the importance of different security events, such as
certain resources accessed or services denied.
</para>
</note>
</step>
</substeps>
</step>
<step>
<para>
Click <guimenu>OK</guimenu>.
</para>
</step>
<step>
<para>
Click <guimenu>Done</guimenu> in the <guimenu>&aa;
Configuration</guimenu> window.
</para>
</step>
<step>
<para>
Click <menuchoice> <guimenu>File</guimenu> <guimenu>Quit</guimenu>
</menuchoice> in the &yast; Control Center.
</para>
</step>
</procedure>
<para>
After configuring security event notification, read the reports and
determine whether events require follow up. Follow up may include the
procedures outlined in
<xref linkend="sec-apparmor-managing-react"/>.
</para>
</sect1>
<sect1 id="sec-apparmor-managing-config-reports">
<title>Configuring Reports</title>
<para>
&aa;'s reporting feature adds flexibility by enhancing the way users can
view security event data. The reporting tool performs the following:
</para>
<itemizedlist>
<listitem>
<para>
Creates on-demand reports
</para>
</listitem>
<listitem>
<para>
Exports reports
</para>
</listitem>
<listitem>
<para>
Schedules periodic reports for archiving
</para>
</listitem>
<listitem>
<para>
E-mails periodic reports
</para>
</listitem>
<listitem>
<para>
Filters report data by date
</para>
</listitem>
<listitem>
<para>
Filters report data by other options, such as program name
</para>
</listitem>
</itemizedlist>
<para>
Using reports, you can read important &aa; security events reported in
the log files without manually sifting through the messages only useful
to the aa-logprof tool. Narrow down the size of the report by filtering
by date range or program name. You can also export an
<filename>html</filename> or <filename>csv</filename> file.
</para>
<para>
The following are the three types of reports available in &aa;:
</para>
<variablelist>
<varlistentry>
<term>Executive Security Summary</term>
<listitem>
<para>
A combined report, consisting of one or more security incident reports
from one or more machines. This report can provide a single view of
security events on multiple machines. For more details, refer to
<xref linkend="sec-apparmor-managing-config-reports-view-ess"/>.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>Application Audit Report</term>
<listitem>
<para>
<remark role="clarity">
2006-11-14 - jjaeger: SP1, provide an example for an application server
</remark>
An auditing tool that reports which application servers are running
and whether the applications are confined by &aa;. Application servers
are applications that accept incoming network connections. For more
details, refer to
<xref linkend="sec-apparmor-managing-config-reports-view-audit"/>.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>Security Incident Report</term>
<listitem>
<para>
A report that displays application security for a single host. It
reports policy violations for locally confined applications during a
specific time period. You can edit and customize this report or add
new versions. For more details, refer to
<xref linkend="sec-apparmor-managing-config-reports-view-sir"/>.
</para>
</listitem>
</varlistentry>
</variablelist>
<para>
To use the &aa; reporting features, proceed with the following steps:
</para>
<procedure>
<step>
<para>
Open <menuchoice> <guimenu>&yast;</guimenu> <guimenu>&aa;</guimenu>
</menuchoice>.
</para>
</step>
<step>
<para>
In <guimenu>&aa;</guimenu>, click <guimenu>&aa; Reports</guimenu>. The
<guimenu>&aa; Security Event Reports</guimenu> window appears. From the
<guimenu>Reports</guimenu> window, select an option and proceed to the
respective section for instructions:
</para>
<informalfigure>
<mediaobject>
<textobject role="description"><phrase>Reports window</phrase>
</textobject>
<imageobject role="fo">
<imagedata fileref="report1.png" width="75%"/>
</imageobject>
<imageobject role="html">
<imagedata fileref="report1.png" width="75%"/>
</imageobject>
</mediaobject>
</informalfigure>
<variablelist>
<varlistentry>
<term>View Archive</term>
<listitem>
<para>
Displays all reports that have been run and stored in
<filename>/var/log/apparmor/reports-archived/</filename>. Select the
report you want to see in detail and click <guimenu>View</guimenu>.
For <guimenu>View Archive</guimenu> instructions, proceed to
<xref linkend="sec-apparmor-managing-config-reports-view"/>.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>Run Now</term>
<listitem>
<para>
Produces an instant version of the selected report type. If you
select a security incident report, it can be further filtered in
various ways. For <guimenu>Run Now</guimenu> instructions, proceed
to
<xref linkend="sec-apparmor-managing-config-reports-on-demand"/>.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>Add</term>
<listitem>
<para>
Creates a scheduled security incident report. For
<guimenu>Add</guimenu> instructions, proceed to
<xref linkend="sec-apparmor-managing-config-reports-new"/>.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>Edit</term>
<listitem>
<para>
Edits a scheduled security incident report.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>Delete</term>
<listitem>
<para>
Deletes a scheduled security incident report. All stock or canned
reports cannot be deleted.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>Back</term>
<listitem>
<para>
Returns you to the &aa; main screen.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>Abort</term>
<listitem>
<para>
Returns you to the &aa; main screen.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>Next</term>
<listitem>
<para>
Performs the same function as the <guimenu>Run Now</guimenu> button.
</para>
</listitem>
</varlistentry>
</variablelist>
</step>
</procedure>
<sect2 id="sec-apparmor-managing-config-reports-view">
<title>Viewing Archived Reports</title>
<para>
<guimenu>View Reports</guimenu> enables you to specify the location of a
collection of reports from one or more systems, including the ability to
filter by date or names of programs accessed and display them all
together in one report.
</para>
<procedure>
<step>
<para>
From the <guimenu>&aa; Security Event Report</guimenu> window, select
<guimenu>View Archive</guimenu>.
</para>
<informalfigure>
<mediaobject>
<textobject role="description"><phrase>Security Event Report</phrase>
</textobject>
<imageobject role="fo">
<imagedata fileref="reports_viewarch_pg1.png" width="75%"/>
</imageobject>
<imageobject role="html">
<imagedata fileref="reports_viewarch_pg1.png" width="75%"/>
</imageobject>
</mediaobject>
</informalfigure>
</step>
<step>
<para>
Select the report type to view. Toggle between the different types:
<guimenu>SIR</guimenu> (Security Incident Report), <guimenu>App
Aud</guimenu> (Application Audit), and <guimenu>ESS</guimenu>
(Executive Security Summary).
</para>
</step>
<step>
<para>
You can alter the directory location of the archived reports in
<guimenu>Location of Archived Reports</guimenu>. Select
<guimenu>Accept</guimenu> to use the current directory or select
<guimenu>Browse</guimenu> to find a new report location. The default
directory is <filename>/var/log/apparmor/reports-archived</filename>.
</para>
</step>
<step>
<para>
To view all the reports in the archive, select <guimenu>View
All</guimenu>. To view a specific report, select a report file listed
in the <guimenu>Report</guimenu> field then select
<guimenu>View</guimenu>.
</para>
</step>
<step>
<para>
For <guimenu>Application Audit</guimenu> and <guimenu>Executive
Security Summary</guimenu> reports, proceed to
<xref linkend="ste-apparmor-managing-config-reports-view-toc"/>.
</para>
</step>
<step>
<para>
The <guimenu>Report Configuration Dialog</guimenu> opens for
<guimenu>Security Incident</guimenu> reports.
</para>
<informalfigure>
<mediaobject>
<textobject role="description"><phrase>Report Configuration</phrase>
</textobject>
<imageobject role="fo">
<imagedata fileref="report_config.png" width="75%"/>
</imageobject>
<imageobject role="html">
<imagedata fileref="report_config.png" width="75%"/>
</imageobject>
</mediaobject>
</informalfigure>
</step>
<step>
<para>
The <guimenu>Report Configuration</guimenu> dialog enables you to
filter the reports selected in the previous screen. Enter the desired
filter details. The fields are:
</para>
<variablelist>
<varlistentry>
<term>Date Range</term>
<listitem>
<para>
To display reports for a certain time period, select
<guimenu>Filter By Date Range</guimenu>. Enter the start and end
dates that define the scope of the report.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>Program Name</term>
<listitem>
<para>
When you enter a program name or pattern that matches the name of
the binary executable of the program of interest, the report
displays security events that have occurred for a specific program.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>Profile Name</term>
<listitem>
<para>
When you enter the name of the profile, the report displays the
security events that are generated for the specified profile. You
can use this to see what is being confined by a specific profile.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>PID Number</term>
<listitem>
<para>
<guimenu>PID number</guimenu> is a number that uniquely identifies
one specific process or running program (this number is valid only
during the lifetime of that process).
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>Severity</term>
<listitem>
<para>
Select the lowest severity level for security events to include in
the report. The selected severity level (and above) are then
included in the reports.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>Detail</term>
<listitem>
<para>
A source to which the profile has denied access. This includes
capabilities and files. You can use this field to report the
resources to which profiles prevent access.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>Access Type</term>
<listitem>
<para>
The access type describes what is actually happening with the
security event. The options are <option>PERMITTING</option>,
<option>REJECTING</option>, or <option>AUDITING</option>.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>Mode</term>
<listitem>
<para>
The <guimenu>Mode</guimenu> is the permission that the profile
grants to the program or process to which it is applied. The
options are <option>all</option> (all modes without filtering),
<option>r</option> (read), <option>w</option> (write),
<option>l</option> (link),<option>x</option> (execute), and
<option>m</option> (mmap).
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>Export Type</term>
<listitem>
<para>
Enables you to export a CSV (comma separated values) or HTML file.
The CSV file separates pieces of data in the log entries with
commas using a standard data format for importing into
table-oriented applications. You can enter a path for your exported
report by typing the full path in the field provided.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>Location to Store Log</term>
<listitem>
<para>
Enables you to change the location at which to store the exported
report. The default location is
<filename>/var/log/apparmor/reports-exported</filename>. When you
change this location, select <guimenu>Accept</guimenu>. Select
<guimenu>Browse</guimenu> to browse the file system.
</para>
</listitem>
</varlistentry>
</variablelist>
</step>
<step>
<para>
To see the report, filtered as desired, select
<guimenu>Next</guimenu>. One of the three reports displays.
</para>
</step>
<step id="ste-apparmor-managing-config-reports-view-toc">
<para>
Refer to the following sections for detailed information about each
type of report.
</para>
<itemizedlist>
<listitem>
<para>
For the application audit report, refer to
<xref linkend="sec-apparmor-managing-config-reports-view-audit"/>.
</para>
</listitem>
<listitem>
<para>
For the security incident report, refer to
<xref linkend="sec-apparmor-managing-config-reports-view-sir"/>.
</para>
</listitem>
<listitem>
<para>
For the executive summary report, refer to
<xref linkend="sec-apparmor-managing-config-reports-view-ess"/>.
</para>
</listitem>
</itemizedlist>
</step>
</procedure>
<sect3 id="sec-apparmor-managing-config-reports-view-audit">
<title>Application Audit Report</title>
<para>
An application audit report is an auditing tool that reports which
application servers are running and whether they are confined by &aa;.
</para>
<informalfigure>
<mediaobject>
<textobject role="description"><phrase>Application audit report</phrase>
</textobject>
<imageobject role="fo">
<imagedata fileref="reports_run_appaudit.png" width="75%"/>
</imageobject>
<imageobject role="html">
<imagedata fileref="reports_run_appaudit.png" width="75%"/>
</imageobject>
</mediaobject>
</informalfigure>
<para>
The following fields are provided in an application audit report:
</para>
<variablelist>
<varlistentry>
<term>Host</term>
<listitem>
<para>
The machine protected by &aa; for which the security events are
reported.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>Date</term>
<listitem>
<para>
The date during which security events occurred.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>Program</term>
<listitem>
<para>
The name and path of the executing process.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>Profile</term>
<listitem>
<para>
The absolute name of the security profile that is applied to the
process.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>PID</term>
<listitem>
<para>
A number that uniquely identifies one specific process or running
program (this number is valid only during the lifetime of that
process).
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>State</term>
<listitem>
<para>
This field reveals whether the program listed in the program field
is confined. If it is not confined, consider creating a profile for
it.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>Type</term>
<listitem>
<para>
This field reveals the type of confinement the security event
represents (either complain or enforce). If the application is not
confined (state), no type of confinement is reported.
</para>
</listitem>
</varlistentry>
</variablelist>
</sect3>
<sect3 id="sec-apparmor-managing-config-reports-view-sir">
<title>Security Incident Report</title>
<para>
A security incident report displays security events of interest to an
administrator. The SIR reports policy violations for locally confined
applications during a specified time period. It also reports policy
exceptions and policy engine state changes. These two types of security
events are defined as follows:
</para>
<variablelist>
<varlistentry>
<term>Policy Exceptions</term>
<listitem>
<para>
When an application requests a resource that is not defined within
its profile, a security event is triggered. A report is generated
that displays security events of interest to an administrator. The
SIR reports policy violations for locally confined applications
during a specified time period. The SIR reports policy exceptions
and policy engine state changes.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>Policy Engine State Changes</term>
<listitem>
<para>
Enforces policy for applications and maintains its own state,
including when engines start or stop, when a policy is reloaded, and
when global security feature are enabled or disabled.
</para>
</listitem>
</varlistentry>
</variablelist>
<informalfigure>
<mediaobject>
<textobject role="description"><phrase>Security incident report</phrase>
</textobject>
<imageobject role="fo">
<imagedata fileref="reports_run_sir.png" width="75%"/>
</imageobject>
<imageobject role="html">
<imagedata fileref="reports_run_sir.png" width="75%"/>
</imageobject>
</mediaobject>
</informalfigure>
<para>
The fields in the SIR report have the following meanings:
</para>
<variablelist>
<varlistentry>
<term>Host</term>
<listitem>
<para>
The machine protected by &aa; for which the security events are
reported.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>Date</term>
<listitem>
<para>
The date during which security events occurred.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>Program</term>
<listitem>
<para>
The name of the executing process.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>Profile</term>
<listitem>
<para>
The absolute name of the security profile that is applied to the
process.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>PID</term>
<listitem>
<para>
A number that uniquely identifies one specific process or running
program (this number is valid only during the lifetime of that
process).
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>Severity</term>
<listitem>
<para>
Severity levels of events are reported from the severity database.
The severity database defines the importance of potential security
events and numbers them 1 through 10, 10 being the most severe
security incident. The severity levels are determined by the threat
or importance of different security events, such as certain
resources accessed or services denied.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>Mode</term>
<listitem>
<para>
The mode is the permission that the profile grants to the program or
process to which it is applied. The options are <option>r</option>
(read), <option>w</option> (write), <option>l</option> (link), and
<option>x</option> (execute).
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>Detail</term>
<listitem>
<para>
A source to which the profile has denied access. This includes
capabilities and files. You can use this field to report the
resources to which the profile prevents access.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>Access Type</term>
<listitem>
<para>
The access type describes what is actually happening with the
security event. The options are <option>PERMITTING</option>,
<option>REJECTING</option>, or <option>AUDITING</option>.
</para>
</listitem>
</varlistentry>
</variablelist>
</sect3>
<sect3 id="sec-apparmor-managing-config-reports-view-ess">
<title>Executive Security Summary</title>
<para>
A combined report consisting of one or more high-level reports from one
or more machines. This report can provide a single view of security
events on multiple machines as long as each machine's data is copied to
the report archive directory, which is
<filename>/var/log/apparmor/reports-archived</filename>. One line of
the ESS report represents a range of SIR reports.
</para>
fs: 2006-06-06: commented out for 11.0
<informalfigure>
<mediaobject>
<textobject role="description"><phrase>Executive security
summary</phrase>
</textobject>
<imageobject role="fo">
<imagedata fileref="reports_run_execsummary.png" width="75%"/>
</imageobject>
<imageobject role="html">
<imagedata fileref="reports_run_execsummary.png" width="75%"
/>
</imageobject>
</mediaobject>
</informalfigure>
<para>
The following fields are provided in an executive security summary:
</para>
<variablelist>
<varlistentry>
<term>Host</term>
<listitem>
<para>
The machine protected by &aa; for which the security events are
reported.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>Start Date</term>
<listitem>
<para>
The first date in a range of dates during which security events are
reported.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>End Date</term>
<listitem>
<para>
The last date in a range of dates during which security events are
reported.
</para>