Re:Linux 3.8 introduced unprivileged user namespaces [pdf]
by pcwalton on Wednesday December 18, 2019 @12:04PM
(#21826875)
Syzkaller fuzzes that stuff. https://github.com/google/syzkaller
[ Parent
| on HN ]
Re:Linux 3.8 introduced unprivileged user namespaces [pdf]
by rwmj on Wednesday December 18, 2019 @12:05PM
(#21826882)
It fuzzes individual syscalls. Does it string them together into sequences? (Edit: yes it does, but it doesn't look for priv escalations, only crashes, kernel panics and the like)
Re:Linux 3.8 introduced unprivileged user namespaces [pdf]
by simcop2387 on Wednesday December 18, 2019 @04:22PM
(#21829626)
It can be adapted to privlege escalations, but it doesn't do it on it's own. You have to give it a stub to check after running the syscalls to check if the permissions are intact.
Re:Linux 3.8 introduced unprivileged user namespaces [pdf]
by sitkack on Wednesday December 18, 2019 @05:09PM
(#21829993)
Does it trace existing programs and use those as seeds in how to compose syscalls?
Re:Linux 3.8 introduced unprivileged user namespaces [pdf]
by simcop2387 on Thursday December 19, 2019 @01:34PM
(#21837745)
I don't think it's got the ability on it's own to do that, but I can imagine you could do it with strace and some other scripting.
Re:Linux 3.8 introduced unprivileged user namespaces [pdf]
by londons_explore on Wednesday December 18, 2019 @04:08PM
(#21829485)
When you have root, it doesn't take many more random syscalls to cause a panic.
Re:Linux 3.8 introduced unprivileged user namespaces [pdf]
by chipb on Wednesday December 18, 2019 @05:31PM
(#21830160)
Or just try a not-so-random one:
kill(1, 9);
Re:Linux 3.8 introduced unprivileged user namespaces [pdf]
by chipb on Thursday December 19, 2019 @10:54AM
(#21835957)
Huh. I guess it’s not too surprising, but that doesn’t work at all. init gets special treatment for signals.
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/lin...
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/lin...