aboutsummaryrefslogtreecommitdiff
path: root/include/linux/debugobjects.h
diff options
context:
space:
mode:
authorSerge E. Hallyn <[email protected]>2007-07-17 15:28:17 -0400
committerLinus Torvalds <[email protected]>2007-07-19 14:05:08 -0700
commit626ac545c12e5f9bffe93086d1d03d26c99987ea (patch)
tree3ff83cc510f09bd0561b3b2a8b769beda952ad17 /include/linux/debugobjects.h
parent9550b105b8646f916862aee3ab7b25020ca14159 (diff)
user namespace: fix copy_user_ns return value
When a CONFIG_USER_NS=n and a user tries to unshare some namespace other than the user namespace, the dummy copy_user_ns returns NULL rather than the old_ns. This value then gets assigned to task->nsproxy->user_ns, so that a subsequent setuid, which uses task->nsproxy->user_ns, causes a NULL pointer deref. Fix this by returning old_ns. Signed-off-by: Serge E. Hallyn <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions