]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - security/keys/compat.c
keys: add keyctl function to get a security label
[linux-2.6-omap-h63xx.git] / security / keys / compat.c
index bcdb285337339d108160e8fb305220088dec9eb5..c766c68a63bc2078c62bf256730e05e14b36268b 100644 (file)
@@ -9,7 +9,6 @@
  * 2 of the License, or (at your option) any later version.
  */
 
-#include <linux/sched.h>
 #include <linux/syscalls.h>
 #include <linux/keyctl.h>
 #include <linux/compat.h>
@@ -80,6 +79,9 @@ asmlinkage long compat_sys_keyctl(u32 option,
        case KEYCTL_ASSUME_AUTHORITY:
                return keyctl_assume_authority(arg2);
 
+       case KEYCTL_GET_SECURITY:
+               return keyctl_get_security(arg2, compat_ptr(arg3), arg4);
+
        default:
                return -EOPNOTSUPP;
        }