[Bug 2031398] Re: execve (/bin/true, ...): Permission denied printed, when cloud-init-local run

Calvin Mwadime Makokha 2031398 at bugs.launchpad.net
Wed Aug 23 08:40:43 UTC 2023


** Also affects: isc-dhcp (Ubuntu)
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to isc-dhcp in Ubuntu.
https://bugs.launchpad.net/bugs/2031398

Title:
  execve (/bin/true, ...): Permission denied printed,when cloud-init-
  local run

Status in cloud-init package in Ubuntu:
  Invalid
Status in isc-dhcp package in Ubuntu:
  Triaged

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-script. And when the -sf parameter is used in cloud-init-local to specify the execution of /bin/true, this error occurs during the execve call in the dhclient process.

  
  lsb_release -rd:
  Description:	Ubuntu 22.04.2 LTS
  Release:	22.04

  cloud-init : 23.1.2-0ubuntu0~22.04.1

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/2031398/+subscriptions




More information about the foundations-bugs mailing list