execve (/bin/true, ...): Permission denied printed,when cloud-init-local run
Bug #2031398 reported by
Dong Liang
This bug report is a duplicate of:
Bug #2011628: Apparmor Disallows Disabling Dhclient Scripts.
Edit
Remove
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init (Ubuntu) |
Invalid
|
Low
|
Unassigned | ||
isc-dhcp (Ubuntu) |
Triaged
|
Low
|
Unassigned |
Bug Description
In cloud-init-local stage , using dhclient command to discovery ip and getting metadata from meta-server.
The command which cloud-init-local execute is '/usr/sbin/dhclient -1 -v -lf /run/dhclient.lease -pf /run/dhclient.pid eth0 -sf /bin/true'. However, when the apparmor service is loaded, the kernel prevents the /usr/sbin/dhclient command from executing scripts other than /sbin/dhclient-
lsb_release -rd:
Description: Ubuntu 22.04.2 LTS
Release: 22.04
cloud-init : 23.1.2-
Changed in cloud-init (Ubuntu): | |
status: | Incomplete → New |
Changed in isc-dhcp (Ubuntu): | |
status: | New → Triaged |
Changed in cloud-init (Ubuntu): | |
status: | New → Invalid |
To post a comment you must log in.
Thanks for raising the issue.
Could you please provide us with the cloud-init logs using:
sudo cloud-init collect-logs
and upload the resulting file.
The logs will help us in understanding what is leading to this issue.
Furthermore, Please help us with any additional configurations you have for apparmor on your system.
I am marking this as 'incomplete', change to 'new' when you update the bug with additional content requested.