> Cloud-init users on these releases that wish to see no apparmour warnings might locally include this rule themselves via:
>
> echo " /bin/true Uxr," > /etc/apparmor.d/local/sbin.dhclient
Note for other users finding their way here via googling for error messages: On jammy (22.04) at least, you will need to account for /bin being a symlink to /usr/bin, and thus the line becomes (following the standard brace syntax and also the ordering conventions in the default apparmor profiles):
> Cloud-init users on these releases that wish to see no apparmour warnings might locally include this rule themselves via: d/local/ sbin.dhclient
>
> echo " /bin/true Uxr," > /etc/apparmor.
Note for other users finding their way here via googling for error messages: On jammy (22.04) at least, you will need to account for /bin being a symlink to /usr/bin, and thus the line becomes (following the standard brace syntax and also the ordering conventions in the default apparmor profiles):
echo ' /{,usr/}bin/true Uxr,' > /etc/apparmor. d/local/ sbin.dhclient
This will silence the execve warnings in 22.04.