From: Eric Paris Date: Thu, 12 Feb 2009 20:01:10 +0000 (-0500) Subject: SELinux: better printk when file with invalid label found X-Git-Tag: v2.6.30-rc1~679^2~22 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4ba0a8ad63e12a03ae01c039482967cc496b9174;p=pandora-kernel.git SELinux: better printk when file with invalid label found Currently when an inode is read into the kernel with an invalid label string (can often happen with removable media) we output a string like: SELinux: inode_doinit_with_dentry: context_to_sid([SOME INVALID LABEL]) returned -22 dor dev=[blah] ino=[blah] Which is all but incomprehensible to all but a couple of us. Instead, on EINVAL only, I plan to output a much more user friendly string and I plan to ratelimit the printk since many of these could be generated very rapidly. Signed-off-by: Eric Paris Acked-by: Stephen Smalley Signed-off-by: James Morris --- Reading git-diff-tree failed