From: Rafal Krypa Date: Mon, 9 Jul 2012 17:36:34 +0000 (+0200) Subject: Smack: don't show empty rules when /smack/load or /smack/load2 is read X-Git-Tag: v3.6-rc1~133^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=65ee7f45cf075adcdd6b6ef365f5a5507f1ea5c5;p=pandora-kernel.git Smack: don't show empty rules when /smack/load or /smack/load2 is read This patch removes empty rules (i.e. with access set to '-') from the rule list presented to user space. Smack by design never removes labels nor rules from its lists. Access for a rule may be set to '-' to effectively disable it. Such rules would show up in the listing generated when /smack/load or /smack/load2 is read. This may cause clutter if many rules were disabled. As a rule with access set to '-' is equivalent to no rule at all, they may be safely hidden from the listing. Targeted for git://git.gitorious.org/smack-next/kernel.git Signed-off-by: Rafal Krypa Signed-off-by: Casey Schaufler --- Reading git-diff-tree failed