Home
last modified time | relevance | path

Searched refs:new_cred (Results 1 – 7 of 7) sorted by relevance

/linux-6.6.21/security/landlock/
Dsyscalls.c401 struct cred *new_cred; in SYSCALL_DEFINE2() local
426 new_cred = prepare_creds(); in SYSCALL_DEFINE2()
427 if (!new_cred) { in SYSCALL_DEFINE2()
431 new_llcred = landlock_cred(new_cred); in SYSCALL_DEFINE2()
448 return commit_creds(new_cred); in SYSCALL_DEFINE2()
451 abort_creds(new_cred); in SYSCALL_DEFINE2()
/linux-6.6.21/security/keys/
Dprocess_keys.c377 void key_fsuid_changed(struct cred *new_cred) in key_fsuid_changed() argument
380 if (new_cred->thread_keyring) { in key_fsuid_changed()
381 down_write(&new_cred->thread_keyring->sem); in key_fsuid_changed()
382 new_cred->thread_keyring->uid = new_cred->fsuid; in key_fsuid_changed()
383 up_write(&new_cred->thread_keyring->sem); in key_fsuid_changed()
390 void key_fsgid_changed(struct cred *new_cred) in key_fsgid_changed() argument
393 if (new_cred->thread_keyring) { in key_fsgid_changed()
394 down_write(&new_cred->thread_keyring->sem); in key_fsgid_changed()
395 new_cred->thread_keyring->gid = new_cred->fsgid; in key_fsgid_changed()
396 up_write(&new_cred->thread_keyring->sem); in key_fsgid_changed()
/linux-6.6.21/include/linux/
Duser_namespace.h159 extern int unshare_userns(unsigned long unshare_flags, struct cred **new_cred);
195 struct cred **new_cred) in unshare_userns() argument
Dkey.h497 extern void key_fsuid_changed(struct cred *new_cred);
498 extern void key_fsgid_changed(struct cred *new_cred);
/linux-6.6.21/kernel/
Dnsproxy.c214 struct nsproxy **new_nsp, struct cred *new_cred, struct fs_struct *new_fs) in unshare_nsproxy_namespaces() argument
224 user_ns = new_cred ? new_cred->user_ns : current_user_ns(); in unshare_nsproxy_namespaces()
Dfork.c3389 struct cred *new_cred = NULL; in ksys_unshare() local
3432 err = unshare_userns(unshare_flags, &new_cred); in ksys_unshare()
3436 new_cred, new_fs); in ksys_unshare()
3440 if (new_cred) { in ksys_unshare()
3441 err = set_cred_ucounts(new_cred); in ksys_unshare()
3446 if (new_fs || new_fd || do_sysvsem || new_cred || new_nsproxy) { in ksys_unshare()
3480 if (new_cred) { in ksys_unshare()
3482 commit_creds(new_cred); in ksys_unshare()
3483 new_cred = NULL; in ksys_unshare()
3490 if (new_cred) in ksys_unshare()
[all …]
Duser_namespace.c176 int unshare_userns(unsigned long unshare_flags, struct cred **new_cred) in unshare_userns() argument
190 *new_cred = cred; in unshare_userns()