Bug ID 1114680
Summary NetworkManager Hotspot does not assign IP, dnsmasq cannot start because AppArmor
Classification openSUSE
Product openSUSE Tumbleweed
Version Current
Hardware All
OS openSUSE Factory
Status NEW
Severity Major
Priority P5 - None
Component GNOME
Assignee bnc-team-gnome@forge.provo.novell.com
Reporter ailin.nemui@gmail.com
QA Contact qa-bugs@suse.de
Found By ---
Blocker ---

Created attachment 788444 [details]
journalctl log of problem

Opening a Hotspot in Gnome does not work, the dnsmasq fails to start. I
attached the log from journalctl. Important info is 

12:43:31 mybox dnsmasq[12028]: cannot open or create lease file
/var/lib/NetworkManager/dnsmasq-wlan0.leases: Permission denied
12:43:31 mybox dnsmasq[12028]: FAILED to start up

Result is that devices can connect to the hotspot, but do not receive an IP
address (Android is stuck in "obtaining IP address" step)


I could fix this with a change to apparmor profile:

--- /etc/apparmor.d/usr.sbin.dnsmasq~    2018-10-22 11:53:18.000000000 +0200
+++ /etc/apparmor.d/usr.sbin.dnsmasq    2018-11-05 13:09:25.033720448 +0100
@@ -90,6 +90,9 @@
   /{,var/}run/NetworkManager/dnsmasq.conf r,
   /{,var/}run/NetworkManager/dnsmasq.pid w,

+  # NetworkManager Hotspot leases
+  /var/lib/NetworkManager/dnsmasq-*.leases rw,
+
   profile libvirt_leaseshelper {
     #include <abstractions/base>


You are receiving this mail because: