diff options
Diffstat (limited to 'include/linux/sched')
-rw-r--r-- | include/linux/sched/user.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/sched/user.h b/include/linux/sched/user.h index c7b5f86b91a1..468d2565a9fe 100644 --- a/include/linux/sched/user.h +++ b/include/linux/sched/user.h | |||
@@ -31,6 +31,13 @@ struct user_struct { | |||
31 | atomic_long_t pipe_bufs; /* how many pages are allocated in pipe buffers */ | 31 | atomic_long_t pipe_bufs; /* how many pages are allocated in pipe buffers */ |
32 | 32 | ||
33 | #ifdef CONFIG_KEYS | 33 | #ifdef CONFIG_KEYS |
34 | /* | ||
35 | * These pointers can only change from NULL to a non-NULL value once. | ||
36 | * Writes are protected by key_user_keyring_mutex. | ||
37 | * Unlocked readers should use READ_ONCE() unless they know that | ||
38 | * install_user_keyrings() has been called successfully (which sets | ||
39 | * these members to non-NULL values, preventing further modifications). | ||
40 | */ | ||
34 | struct key *uid_keyring; /* UID specific keyring */ | 41 | struct key *uid_keyring; /* UID specific keyring */ |
35 | struct key *session_keyring; /* UID's default session keyring */ | 42 | struct key *session_keyring; /* UID's default session keyring */ |
36 | #endif | 43 | #endif |