Lines Matching refs:tsk
294 void key_fsuid_changed(struct task_struct *tsk) in key_fsuid_changed() argument
297 BUG_ON(!tsk->cred); in key_fsuid_changed()
298 if (tsk->cred->thread_keyring) { in key_fsuid_changed()
299 down_write(&tsk->cred->thread_keyring->sem); in key_fsuid_changed()
300 tsk->cred->thread_keyring->uid = tsk->cred->fsuid; in key_fsuid_changed()
301 up_write(&tsk->cred->thread_keyring->sem); in key_fsuid_changed()
308 void key_fsgid_changed(struct task_struct *tsk) in key_fsgid_changed() argument
311 BUG_ON(!tsk->cred); in key_fsgid_changed()
312 if (tsk->cred->thread_keyring) { in key_fsgid_changed()
313 down_write(&tsk->cred->thread_keyring->sem); in key_fsgid_changed()
314 tsk->cred->thread_keyring->gid = tsk->cred->fsgid; in key_fsgid_changed()
315 up_write(&tsk->cred->thread_keyring->sem); in key_fsgid_changed()