.\" -*- mode: troff; coding: utf-8 -*- .\" Automatically generated by Pod::Man v6.0.2 (Pod::Simple 3.45) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>. .ie n \{\ . ds C` "" . ds C' "" 'br\} .el\{\ . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" .\" Required to disable full justification in groff 1.23.0. .if n .ds AD l .\" ======================================================================== .\" .IX Title "AA-NOTIFY 8" .TH AA-NOTIFY 8 2026-03-10 "AppArmor 4.1.7" AppArmor .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "نام (NAME)" aa-notify \- نمایش اعلان‌های پیام‌های ثبت‌شده AppArmor .SH "خلاصه دستور (SYNOPSIS)" .IX Header "SYNOPSIS" \&\fBaa\-notify\fR [\fIگزینه\fR] .SH "توضیحات (DESCRIPTION)" .IX Header "DESCRIPTION" دستور \&\fBaa\-notify\fR خلاصه‌ای از وضعیت را نمایش می‌دهد یا برای پیام‌های DENIED (رد شده) AppArmor اعلان‌های میزکار ارائه می‌کند. .SH "گزینه‌ها (OPTIONS)" .IX Header "OPTIONS" دستور \&\fBaa\-notify\fR آرگومان‌های زیر را می‌پذیرد: .IP "\-p, \-\-poll" 4 .IX Item "-p, --poll" بررسی مداوم (poll) لاگ‌های AppArmor و نمایش اعلان‌های میزکار. می‌تواند همراه با گزینه \*(Aq\-s\*(Aq برای نمایش خلاصه در زمان راه‌اندازی استفاده شود. .ie n .IP "\-\-display $DISPLAY" 4 .el .IP "\-\-display \f(CW$DISPLAY\fR" 4 .IX Item "--display $DISPLAY" تنظیم متغیر محیطی DISPLAY روی \f(CW$DISPLAY\fR (در صورتی که sudo متغیر \f(CW$DISPLAY\fR را بازنشانی کند ممکن است لازم باشد). .IP "\-f FILE, \-\-file=FILE" 4 .IX Item "-f FILE, --file=FILE" جستجوی FILE برای یافتن پیام‌های AppArmor. .IP "\-l, \-\-since\-last" 4 .IX Item "-l, --since-last" نمایش خلاصه از زمان آخرین ورود به سیستم. .IP "\-s NUM, \-\-since\-days=NUM" 4 .IX Item "-s NUM, --since-days=NUM" نمایش خلاصه برای NUM روز گذشته. .IP "\-u USER, \-\-user=USER" 4 .IX Item "-u USER, --user=USER" کاربری که هنگام اجرای دارای امتیاز، امتیازات به آن کاهش می‌یابد. هنگام استفاده با گزینه \-p، این مقدار باید روی کاربری تنظیم شود که اعلان‌های میزکار را دریافت خواهد کرد. این گزینه هنگام اجرا تحت sudo هیچ اثری ندارد. .IP "\-w NUM, \-\-wait=NUM" 4 .IX Item "-w NUM, --wait=NUM" صبر کردن به مدت NUM ثانیه پیش از نمایش اعلان‌ها (برای استفاده همراه با \-p). .IP "\-v, \-\-verbose" 4 .IX Item "-v, --verbose" نمایش پیام‌ها به همراه خلاصه‌ها با جزئیات بیشتر. .IP "\-h, \-\-help" 4 .IX Item "-h, --help" نمایش راهنمای کوتاه نحوه استفاده. .SH "پیکربندی (CONFIGURATION)" .IX Header "CONFIGURATION" پیکربندی سراسری سیستم برای \&\fBaa\-notify\fR از طریق مسیر /etc/apparmor/notify.conf انجام می‌شود: .PP .Vb 2 \& # Set to 'no' to disable AppArmor notifications globally \& show_notifications="yes" \& \& # Special profiles used to remove privileges for unconfined binaries using user namespaces. If unsure, leave as is. \& userns_special_profiles="unconfined,unprivileged_userns" \& \& # Theme for aa-notify GUI. See https://ttkthemes.readthedocs.io/en/latest/themes.html for available themes. \& interface_theme="ubuntu" \& \& # Binaries for which we ignore userns-related capability denials \& ignore_denied_capability="sudo,su" \& \& # OPTIONAL - kind of operations which display a popup prompt. \& prompt_filter="userns" \& \& # OPTIONAL - restrict using aa-notify to users in the given group \& # (if not set, everybody who has permissions to read the logfile can use it) \& # use_group="admin" \& \& # 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" \& \& # OPTIONAL - custom notification filtering \& # Filters are used to reduce the output of information to only those entries that will match the filter. Filters use Python's regular expression syntax. \& filter.profile="^(foo|bar)$" # Match the profile: Only shows notifications for profiles "foo" or "bar" \& filter.operation="^open$" # Match the operation: Only shows notifications for "open" operation \& filter.name="^(?!/usr/lib/)" # Match the name: Excludes notifications for names starting by "/usr/lib/" \& filter.denied="^r$" # Match the denied_mask: Only shows notifications where "r", and only "r", was denied \& filter.family="^inet$" # Match the network family: Only shows notifications for "inet" family \& filter.socket="stream" # Match the network socket type: Only shows notifications for "stream" sockets .Ve .PP پیکربندی برای هر کاربر از طریق \f(CW$XDG_CONFIG_HOME\fR/apparmor/notify.conf (یا مسیر منسوخ‌شده ~/.apparmor/notify.conf در صورت وجود) انجام می‌شود: .PP .Vb 2 \& # set to 'yes' to enable AppArmor DENIED notifications \& show_notifications="yes" .Ve .SH "اشکالات (BUGS)" .IX Header "BUGS" دستور \&\fBaa\-notify\fR باید بتواند فایل‌های لاگ حاوی پیام‌های DENIED مربوط به AppArmor را بخواند. .PP اگر اشکالات دیگری پیدا کردید، لطفاً آن‌ها را در گیت‌لب گزارش دهید: .SH "همچنین ببینید (SEE ALSO)" .IX Header "SEE ALSO" \&\fBapparmor\fR\|(7)