A community for mutual assistance and knowledge sharing

How to disable notification for complain mode's profile violation notification? Reward $1
Created by Aravi, 358 days ago, 1259 views

This is related to my previous question.

I have installed appArmor notify to find out if any thing is blocked by appArmor. But it have landed me in a big trouble. I am getting notification every few mins.

How to disalbe the complain mode's profile violation nofitication without disturbing other apparmor notification?

Operating system is Ubuntu 16.04.3 LTS 64bits.
Facebook Twitter Google+ Addthis

√ Best Answer


ha14358 days ago


No problem..the bug can only be fixed by smb team...yeah check the security risks, notification service (apparmor-notify )


  • downvote


ha14358 days ago


Profiles in complain mode don't enforce any profile rules, just log violation attempts.

How to disable a particular AppArmor profile on Ubuntu

Configuring Security Event Notification

Apparmor and its usage

Ubuntu Linux: Disable Apparmor For Specific Profile / Service Such As Mysqld Server

Intro to Ubuntu Apparmor and How to Configure Apparmor Profiles

  • downvote


Aravi358 days ago

Hi @ha14

Let us understand what it is. In linux os, apparmor just similar to windows defender.It is mandatory access control (MAC).

smbd is related to remote access service which supports windows machine. So I don't want smbd profile out of apparmor. complain mode's logs are minimum required to track.

Apart from apparmor (which is MAC) their is a optional tool called apparmor notification (aa-notify) (notification service for apparmor).

My major concern is that I want to disable its message for complain mode's violation report.

I can't afford to disable apparmor notification completely. Because, in case of blocking, I will land in problem. As I am a new Linux user.

  • downvote


Aravi358 days ago

Friend, just I found the exact problem. Currently samba services are running in user level. This is the problem because the folder /run/samba/msg.lock is owned by root. It is privilege issue.

  • downvote


ha14358 days ago


reinstall Samba!!!

  • downvote


Aravi358 days ago

hi @ha14

find final solution.

1) samba/msg.lock is known issue and reported bug to smb team. So no way to fix it. Also samba should be with user level privilege. So re-installation will not help.

2) currently aa-notify don't offers ignore message option.

the possible solution is either remove the samba profile from apparmor. Or remove the notification service.

I just wasted full day behind this. sorry to waste your time too. I will check with possible security risk and decide which one to keep.

  • downvote


Aravi357 days ago

HI @ha14

Thanks I will try firejail too. The final resolution for the aa-notify is that it is a nonsense. You will be disturbed a log in desktop. It is more better to view the last few 100 lines when you have any issue.

  • downvote
    You have to sign in to answer a question, sign up if you don't have an account.

    Hot Topics
    hutopobd Pc it's too slow
    dxbus Computer sleeps after one minute
    Mwarua Laptop windows 10
    LyndaLu48 Flash won't load in Chrome
    kareemalyemen HP ZBOOK 17 NO POWER
    tcrw2 Registration????????
    Recent users who have won rewards.
    ChessKing won $1
    lybwrsh won $1
    PeteLFX won $1
    PeteLFX won $1
    Davidoff_11 won $4
    PeteLFX won $1
    ChessKing won $1
    Davidoff_11 won $1
    PeteLFX won $4
    ha14 won $1
    Latest Topics
    Stella56 Https://
    gwendolynaldo Writers can write in any format; pay for help with homework!
    anilgs What is Data Recovery?
    james458 How to reset iTunes account on iPhone 6?
    hpprintercustomer1 How can you rectify HP printer not working error?
    LyndaLu48 Flash won't load in Chrome
    Mwarua Laptop windows 10
    Alishabrown how can recover vhd file
    james458 How to reset acer laptop password
    Stella56 Https://
    Get free dollars by installing euask App.