@@ -28,10 +28,11 @@ #include #include #include #include +#include MODULE_LICENSE("GPL"); MODULE_AUTHOR("Alessandro Ghedini and Mike Perry"); MODULE_DESCRIPTION("disable the keyctl() system call"); @@ -42,11 +43,14 @@ #if defined(__enable_32bits_support) static asmlinkage long (*o_ptr32)(int cmd, ...); #endif asmlinkage long nokeyctl(int cmd, ...) { - printk("[nokeyctl] keyctl() invoked by process %i\n", current->pid); + printk("[nokeyctl] keyctl() invoked by process %llu, user id = %llu\n", \ + (unsigned long long) current->pid, \ + (unsigned long long) (get_current_user()->uid.val) + ); return(-EPERM); } static void sys_call_table_make_rw(void **addr);