diff options
author | Eric Paris <eparis@redhat.com> | 2009-02-12 15:01:10 -0500 |
---|---|---|
committer | James Morris <jmorris@namei.org> | 2009-02-13 17:22:27 -0500 |
commit | 4ba0a8ad63e12a03ae01c039482967cc496b9174 (patch) | |
tree | 340aa55aa98cc42c33cff4297f0813f14f46b121 /crypto | |
parent | 200ac532a4bc3134147ca06686c56a6420e66c46 (diff) |
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 <eparis@redhat.com>
Acked-by: Stephen Smalley <sds@tycho.nsa.gov>
Signed-off-by: James Morris <jmorris@namei.org>
Diffstat (limited to 'crypto')
0 files changed, 0 insertions, 0 deletions