https://bugzilla.novell.com/show_bug.cgi?id=688040 https://bugzilla.novell.com/show_bug.cgi?id=688040#c10 --- Comment #10 from Christian Boltz <suse-beta@cboltz.de> 2011-10-11 13:21:26 CEST --- Based on the discussion on the ML, here's a script to generate an apparmor profile sniplet that includes all shares listed in smb.conf, with the exception of - variables (anything containing a % sign) - "/" - if someone is insane enough to share his complete filesystem, he'll have to modify the apparmor profile himself. testparm turned out to be quite useful :-) echo '# autogenerated at samba start - do not edit!' testparm -s 2>/dev/null |sed -n '/^[ \t]*path[ \t]*=[ \t]*[^% \t]\{2,\}/ s§^[ \t]*path[ \t]*=[ \t]*\(.*\)$§\1/ rk,\n\1/** rwkl,§p' ("[ \t]" means space and tab - ignore the linebreak above) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.