Score:2

How to allow an apparmor profile to create a unix socket

cn flag

On Ubuntu kinetic, I get multiple DENIED operations by apparmor in /var/log/syslog such as:

operation="create" class="net" info="failed type and protocol match" error=-13 profile="/usr/sbin/cupsd" comm="cupsd" family="unix" sock_type="dgram" protocol=0 requested_mask="create" denied_mask="create" addr=none
operation="create" class="net" info="failed type and protocol match" error=-13 profile="/usr/sbin/cupsd" comm="cupsd" family="unix" sock_type="stream" protocol=0 requested_mask="create" denied_mask="create" addr=none

I tried to allow the creation of such a socket in /etc/apparmor.d/local/usr.sbin.cupsd by adding:

  unix (create) type=dgram,
  unix (create) type=stream,

However, restarting the systemd apparmor and cups services does not solve the issue.

Any suggestion?

Estatistics avatar
cn flag
same here: `audit: type=1400 audit(1679493070.946:15840): apparmor="DENIED" operation="create" info="failed type and protocol match" error=-13 profile="/usr/sbin/cupsd" pid=245087 comm="cupsd" family="unix" sock_type="stream" protocol=0 requested_mask="create" denied_mask="create" addr=none` 883 messages! in bookworm sid upgrade.
I sit in a Tesla and translated this thread with Ai:

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.