From 3c24487d1cc7af1011914c92c893dc5d4663f7a5 Mon Sep 17 00:00:00 2001 From: James Simmons Date: Thu, 28 Aug 2014 14:58:50 -0400 Subject: [PATCH] LU-4746 libcfs: Use Linux kernel current_umask() function Lustre not using kernel current_umask() function breaks GRSecurity umask handling. This is also needed for the linux api cleanup. Replaces current->fs->umask with more secure current_umask() function Change-Id: Ide0b83eb3e6c69e1e2178ede37ce708227f1c107 Signed-off-by: Andrew Prout Signed-off-by: Cliff White Signed-off-by: James Simmons Reviewed-on: http://review.whamcloud.com/11642 Tested-by: Jenkins Reviewed-by: Bob Glossman Reviewed-by: Andreas Dilger Reviewed-by: John L. Hammond Tested-by: Maloo Reviewed-by: Dmitry Eremin --- libcfs/include/libcfs/linux/libcfs.h | 1 - 1 file changed, 1 deletion(-) diff --git a/libcfs/include/libcfs/linux/libcfs.h b/libcfs/include/libcfs/linux/libcfs.h index f96a780..8c6864f 100644 --- a/libcfs/include/libcfs/linux/libcfs.h +++ b/libcfs/include/libcfs/linux/libcfs.h @@ -127,7 +127,6 @@ struct cfs_stack_trace { * Macros to access common characteristics of "current" UNIX process. */ #define current_pid() (current->pid) -#define current_umask() (current->fs->umask) #define current_comm() (current->comm) /* check if task is running in compat mode.*/ -- 1.8.3.1