Score:0

Can't disable apparmor profile for nmap

jp flag

I'm trying to run nmap on Ubuntu 20.04, but it's unable to create raw socket:

[620103.322455] audit: type=1400 audit(1633414966.421:70): apparmor="DENIED" operation="create" profile="snap.nmap.nmap" pid=150616 comm="nmap" family="inet" sock_type="raw" protocol=255 requested_mask="create" denied_mask="create"

In aa-status it's enabled:

30 profiles are in enforce mode.
   ...
   snap.nmap.nmap
   ...

But I'm unable to disable it:

# aa-disable snap.nmap.nmap
Can't find snap.nmap.nmap in the system path list. If the name of the application
is correct, please run 'which snap.nmap.nmap' as a user with correct PATH
environment set up in order to find the fully-qualified path and
use the full path as parameter.

# aa-disable `which nmap`
Profile for /usr/bin/snap not found, skipping

# aa-disable nmap
Profile for /usr/bin/snap not found, skipping

Any ideas?

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.