← Back to team overview

debcrafters-packages team mailing list archive

[Bug 2116733] [NEW] nm-dhcp-helper path incorrect in AppArmor profile on Ubuntu 24.04

 

Public bug reported:

On an upgraded Ubuntu 24.04 system using NetworkManager and DHCP (IPv4),
the interface fails to obtain an IPv4 address automatically. The problem
is traced to an outdated path in the AppArmor profile for dhclient.

In the file: /etc/apparmor.d/sbin.dhclient

The following line references a now-invalid path:
  /usr/lib/NetworkManager/nm-dhcp-helper

But in Ubuntu 24.04, the actual path is:
/usr/libexec/nm-dhcp-helper

Because of this mismatch, dhclient cannot launch the helper script,
resulting in silent failure to obtain an IPv4 lease. The log shows:

dhclient: execve (/usr/libexec/nm-dhcp-helper,...) : Permission denied

**Fix:**

Edit the AppArmor profile and replace the correct path.

Thanks for your attention to this issue.

** Affects: network-manager (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of
Debcrafters packages, which is subscribed to network-manager in Ubuntu.
https://bugs.launchpad.net/bugs/2116733

Title:
  nm-dhcp-helper path incorrect in AppArmor profile on Ubuntu 24.04

Status in network-manager package in Ubuntu:
  New

Bug description:
  On an upgraded Ubuntu 24.04 system using NetworkManager and DHCP
  (IPv4), the interface fails to obtain an IPv4 address automatically.
  The problem is traced to an outdated path in the AppArmor profile for
  dhclient.

  In the file: /etc/apparmor.d/sbin.dhclient

  The following line references a now-invalid path:
    /usr/lib/NetworkManager/nm-dhcp-helper

  But in Ubuntu 24.04, the actual path is:
  /usr/libexec/nm-dhcp-helper

  Because of this mismatch, dhclient cannot launch the helper script,
  resulting in silent failure to obtain an IPv4 lease. The log shows:

  dhclient: execve (/usr/libexec/nm-dhcp-helper,...) : Permission denied

  **Fix:**

  Edit the AppArmor profile and replace the correct path.

  Thanks for your attention to this issue.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/2116733/+subscriptions