[Toybox] [PATCH] Fix cp.test to pass even if you're root or have a restrictive umask.
Rob Landley
rob at landley.net
Tue Jun 25 16:56:16 PDT 2019
Wait...
$ touch walrus
$ chmod 000 walrus
$ sudo /bin/bash
# echo hello > walrus
# ls -l walrus
---------- 1 landley landley 6 Jun 25 18:51 walrus
Really, Linux? Seriously?
That's... wow. Ok, I need to work out how to restructure this test because the
kernel is INSANE. (You can already chmod any file, the ability to accidentally
"dmesg > /bin/sh" is gratuitous bull in a china shop levels of authority here.)
# cat /proc/sysrq-trigger
cat: /proc/sysrq-trigger: Input/output error
They should not need to implement multiple codepaths here. But they did. Sigh...
Rob
More information about the Toybox
mailing list