[Bug 1228485] Re: smbd and nmbd can start up before their respective apparmor profiles are loaded

David 1228485 at bugs.launchpad.net
Sat Sep 21 04:02:57 UTC 2013


Diff for nmbd:
diff --git a/etc/init/nmbd.conf b/etc/init/nmbd.conf
index 908c284..8aa4ffb 100644
--- a/init/nmbd.conf
+++ b/init/nmbd.conf
@@ -11,6 +11,7 @@ pre-start script
        [ -f /etc/samba/smb.conf ] || { stop; exit 0; }
 
        install -o root -g root -m 755 -d /var/run/samba
+       /lib/init/apparmor-profile-load usr.sbin.nmbd
        NMBD_DISABLED=`testparm -s --parameter-name='disable netbios' 2>/dev/null || true`
 
        [ "x$NMBD_DISABLED" = xYes ] && { stop; exit 0; }

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

Title:
  smbd and nmbd can start up before their respective apparmor profiles
  are loaded

Status in “samba” package in Ubuntu:
  New

Bug description:
  It is possible for smbd and nmbd to start up before their respective apparmor profiles are loaded. This can be fixed by adding a
  /lib/init/apparmor-profile-load $daemon_location to the pre-start script of the smbd and nmbd  upstart init configuration files.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1228485/+subscriptions



More information about the foundations-bugs mailing list