smbd and nmbd can start up before their respective apparmor profiles are loaded
Bug #1228485 reported by
David
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
samba (Ubuntu) |
Triaged
|
Undecided
|
Unassigned |
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/
To post a comment you must log in.
Diff for smbd:
diff --git a/etc/init/ smbd.conf b/etc/init/ smbd.conf
index 3e85ea4..cdb077c 100644
--- a/init/smbd.conf
+++ b/init/smbd.conf
@@ -14,6 +14,7 @@ pre-start script
[ "$RUN_MODE" = inetd ] && { stop; exit 0; }
install -o root -g root -m 755 -d /var/run/samba apparmor- profile- load usr.sbin.smbd
+ /lib/init/
end script
exec smbd -F