From: Mimi Zohar Date: Thu, 22 May 2014 18:02:23 +0000 (-0400) Subject: KEYS: special dot prefixed keyring name bug fix X-Git-Tag: omap-for-v3.17/fixes-against-rc2~151^2~12^2~1^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a4e3b8d79a5c6d40f4a9703abf7fe3abcc6c3b8d;p=pandora-kernel.git KEYS: special dot prefixed keyring name bug fix Dot prefixed keyring names are supposed to be reserved for the kernel, but add_key() calls key_get_type_from_user(), which incorrectly verifies the 'type' field, not the 'description' field. This patch verifies the 'description' field isn't dot prefixed, when creating a new keyring, and removes the dot prefix test in key_get_type_from_user(). Changelog v6: - whitespace and other cleanup Changelog v5: - Only prevent userspace from creating a dot prefixed keyring, not regular keys - Dmitry Reported-by: Dmitry Kasatkin Signed-off-by: Mimi Zohar Acked-by: David Howells --- Reading git-diff-tree failed