LU-3289 gss: Interface and code changes for shared key This patch moves and modifies some of the kerberos code to be more general so it can be utilized by the sk and null gss implementations. This includes the userspace portion for lsvcgssd and the kernel pipefs interface. Since the gss interface has changed the version has also been incremented. Signed-off-by: Jeremy Filizetti <jeremy.filizetti@gmail.com> Change-Id: Ib46b74c9b0e01c4f71f16d288eae83c5c1567bfb Reviewed-on: http://review.whamcloud.com/16728 Tested-by: Jenkins Reviewed-by: Andreas Dilger <andreas.dilger@intel.com> Tested-by: Andreas Dilger <andreas.dilger@intel.com> Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
LU-6490 gss: 3.1x kernels adjustments for gssapi code There are a number of changes in 3.1x kernels concerning the GSSAPI: - libgssapi and libgssglue do not exist anymore, so call krb5 primitives directly, and remove associated config checks; - struct cred has no tgcred member anymore, so use cred directly; - struct key_type instantiate and update function prototypes have changed; - add new config checks on struct cred and struct key_type; - u_int is BSD specific, so it is replaced with unsigned int. Signed-off-by: Sebastien Buisson <sebastien.buisson@bull.net> Change-Id: I3b13c2afcb4b800bdcffb3b8713048f8e39f6866 Reviewed-on: http://review.whamcloud.com/15342 Reviewed-by: Bob Glossman <bob.glossman@intel.com> Tested-by: Jenkins Reviewed-by: James Simmons <uja.ornl@yahoo.com> Tested-by: Maloo <hpdd-maloo@intel.com> Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
LU-4629 gss: fix few issues found by Klocwork Insight tool Array 'message_buf' of size 500 may use index value(s) -1 Object 'enc_key.data' was freed at line 164 after being freed by calling 'free' at line 150. Also there are 3 similar errors on line(s) 164. Suspicious dereference of pointer 'vmsg' before NULL check at line 187. Also there are 2 similar errors on line(s) 196, 205. Suspicious dereference of pointer 'rmsg' before NULL check at line 191. Also there are 2 similar errors on line(s) 200, 209. Signed-off-by: Dmitry Eremin <dmitry.eremin@intel.com> Change-Id: I50905ea99d904123df30ba7078b180b44b8a6e06 Reviewed-on: http://review.whamcloud.com/9274 Tested-by: Jenkins Reviewed-by: John L. Hammond <john.hammond@intel.com> Reviewed-by: James Simmons <uja.ornl@gmail.com> Tested-by: Maloo <hpdd-maloo@intel.com> Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
- make HEAD from b_post_cmd3