A file like the following is missing:
cat /etc/apparmor.d/usr.sbin.wpa_supplicant
# Last Modified: Sun Feb 23 09:06:59 2025
abi <abi/4.0>,
include <tunables/global>
/usr/sbin/wpa_supplicant {
include <abstractions/base>
/usr/sbin/wpa_supplicant mr,
capability net_admin,
capability net_raw,
network netlink,
network packet,
/dev/rfkill r,
/etc/group r,
/proc/sys/net/** rw,
/run/dbus/system_bus_socket rw,
/run/wpa_supplicant/ w,
/run/wpa_supplicant/** w,
}
** Package changed: wpasupplicant (Ubuntu) => wpa (Ubuntu)
--
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to wpa in Ubuntu.
https://bugs.launchpad.net/bugs/2099789
Title:
Apparmor failure in wpa_supplicant
Status in wpa package in Ubuntu:
New
Bug description:
Netplan fails to activate my wireless network. Journalctl shows that
an apparmor error occurs:
NetworkManager[2367]: <warn> [1740295808.8946] device (wlp4s0): re-acquiring
supplicant interface (#5).
wpa_supplicant[2371]: netlink: Failed to open netlink socket: Permission
denied
kernel: audit: type=1400 audit(1740295808.894:2944): apparmor="DENIED"
operation="create" class="net" profile="wpa_supplicant" pid=2371
comm="wpa_supplicant" family="netlink" sock_type="raw" protocol=0
requested="create" denied="create"
kernel: audit: type=1400 audit(1740295808.894:2945): apparmor="DENIED"
operation="open" class="file" profile="wpa_supplicant"
name="/sys/devices/pci0000:00/0000:00:01.6/0000:04:00.0/ieee80211/phy0/name"
pid=2371 comm="wpa_supplicant" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
kernel: audit: type=1400 audit(1740295808.894:2946): apparmor="DENIED"
operation="create" class="net" profile="wpa_supplicant" pid=2371
comm="wpa_supplicant" family="inet" sock_type="dgram" protocol=0
requested="create" denied="create"
kernel: audit: type=1400 audit(1740295808.895:2947): apparmor="DENIED"
operation="open" class="file" profile="wpa_supplicant"
name="/sys/devices/pci0000:00/0000:00:01.6/0000:04:00.0/ieee80211/phy0/name"
pid=2371 comm="wpa_supplicant" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
kernel: audit: type=1400 audit(1740295808.895:2948): apparmor="DENIED"
operation="create" class="net" profile="wpa_supplicant" pid=2371
comm="wpa_supplicant" family="inet" sock_type="dgram" protocol=0
requested="create" denied="create"
wpa_supplicant[2371]: Failed to initialize driver 'nl80211'
wpa_supplicant[2371]: socket(PF_INET,SOCK_DGRAM): Permission denied
NetworkManager[2367]: <error> [1740295808.8970] device (wlp4s0): Couldn't
initialize supplicant interface:
GDBus.Error:fi.w1.wpa_supplicant1.UnknownError: wpa_supplicant couldn't grab
this interface.
wpa_supplicant[2371]: socket(PF_INET,SOCK_DGRAM): Permission denied
NetworkManager[2367]: <info> [1740295808.8971] device (wlp4s0): supplicant
interface keeps failing, giving up
wpa_supplicant[2371]: wlp4s0: Failed to initialize driver interface
wpa_supplicant[2371]: wlp4s0: CTRL-EVENT-DSCP-POLICY clear_all
---
ProblemType: Bug
ApportVersion: 2.31.0+git20250220-0ubuntu2
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: KDE
DistroRelease: Ubuntu 25.04
InstallationDate: Installed on 2021-07-01 (1333 days ago)
InstallationMedia: Kubuntu 21.04 "Hirsute Hippo" - Release amd64 (20210420)
Package: wpasupplicant 2:2.10-22
PackageArchitecture: amd64
ProcVersionSignature: Ubuntu 6.12.0-12.12-generic 6.12.4
Tags: plucky
Uname: Linux 6.12.0-12-generic x86_64
UpgradeStatus: Upgraded to plucky on 2024-11-10 (105 days ago)
UserGroups: N/A
_MarkForUpload: True
modified.conffile..etc.dbus-1.system.d.wpa_supplicant.conf: [deleted]
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/wpa/+bug/2099789/+subscriptions
--
Mailing list: https://launchpad.net/~touch-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~touch-packages
More help : https://help.launchpad.net/ListHelp