[pkg-apparmor] Bug#928160: Bug#928160: apparmor-utils: aa-genprof fails with "ERROR: Include file /etc/apparmor.d/local/usr.lib.dovecot.lmtp not found"
Christian Boltz
debian-bugs at cboltz.de
Mon Apr 29 12:00:25 BST 2019
Hello,
Am Montag, 29. April 2019, 04:39:05 CEST schrieb hoxp18:
> On Buster, "aa-genprof SOMEPROG" fails with the error message.
>
> root# aa-enabled
> Yes
> root# aa-genprof {firefox,firefox-esr,gedit,file,vim} # did each
> actually
>
> ERROR: Include file /etc/apparmor.d/local/usr.lib.dovecot.lmtp not
> found
>
> The file does not seem to exist in any package.
>
> user$ apt-file search /etc/apparmor.d/local/usr.lib.dovecot.lmtp
>
> nor in /etc
>
> root# find /etc -name usr.lib.dovecot.lmtp -print
>
> I installed apparmor-profiles and apparmor-profiles-extra, too.
/etc/apparmor.d/local/usr.lib.dovecot.lmtp typically gets included by
/etc/apparmor.d/usr.lib.dovecot.lmtp - if you don't have that profile,
please
grep -r usr.lib.dovecot.lmtp /etc/apparmor.d/
I don't know the Debian packaging ("wrong" distribution ;-) but my guess
is that you copied the dovecot profile(s) from /usr/share/apparmor/ to
/etc/apparmor.d/, or got them proposed by aa-genprof, but nobody/nothing
created the local/ includes for them.
As a workaround, you can simply
touch /etc/apparmor.d/local/usr.lib.dovecot.lmtp
(it's an include file where you can add rules specific for your system,
or let it empty if you don't need additional rules)
If you copied more dovecot profiles to /etc/apparmor.d/, you'll probably
need to create local/ include files for each of them. The error messages
will tell you what's missing ;-)
Regards,
Christian Boltz
--
with people like you for sure we would have been still living in a cave
looking for fruits in forests... Fruits are very tasty, why the hell
should we spend time hunting and cooking...
[Alin M Elena in opensuse-factory]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part.
URL: <http://alioth-lists.debian.net/pipermail/pkg-apparmor-team/attachments/20190429/f9b558b2/attachment-0001.sig>
More information about the pkg-apparmor-team
mailing list