mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 01:33:00 -04:00
userns: Replace user_ns_map_uid and user_ns_map_gid with from_kuid and from_kgid
These function are no longer needed replace them with their more useful equivalents. Acked-by: Serge Hallyn <[email protected]> Signed-off-by: Eric W. Biederman <[email protected]>
This commit is contained in:
parent
078de5f706
commit
76b6db0102
4 changed files with 4 additions and 17 deletions
|
|
@ -538,8 +538,7 @@ static void __do_notify(struct mqueue_inode_info *info)
|
|||
rcu_read_lock();
|
||||
sig_i.si_pid = task_tgid_nr_ns(current,
|
||||
ns_of_pid(info->notify_owner));
|
||||
sig_i.si_uid = user_ns_map_uid(info->notify_user_ns,
|
||||
current_cred(), current_uid());
|
||||
sig_i.si_uid = from_kuid_munged(info->notify_user_ns, current_uid());
|
||||
rcu_read_unlock();
|
||||
|
||||
kill_pid_info(info->notify.sigev_signo,
|
||||
|
|
|
|||
Loading…
Reference in a new issue