KEYS: Add a keyctl to install a process's session keyring on its parent [try #6]
[platform/kernel/linux-rpi.git] / arch / arm / kernel / signal.c
index 13dec27..ea4ad3a 100644 (file)
@@ -711,5 +711,7 @@ do_notify_resume(struct pt_regs *regs, unsigned int thread_flags, int syscall)
        if (thread_flags & _TIF_NOTIFY_RESUME) {
                clear_thread_flag(TIF_NOTIFY_RESUME);
                tracehook_notify_resume(regs);
+               if (current->replacement_session_keyring)
+                       key_replace_session_keyring();
        }
 }