Re:Pure Bash Web Server
by robinhoodexe on Friday February 16, 2024 @09:42AM
(#39397660)
Out of curiosity, how would you run Python or R workloads in kubernetes without a distro or shell?
[ Parent
| on HN ]
Python is better than shell, so intruder will use it first.
Python needs an ld.so and libc (minimally) but not a shell or other external utilities. Shebang scripts are loaded by ld.so, not the shell.
Shebang scripts are supported directly by the kernel via the exec family of system calls, so ld.so shouldn't be involved.
https://github.com/torvalds/linux/blob/master/fs/Kconfig.bin...
config BINFMT_SCRIPT
tristate "Kernel support for scripts starting with #!"
default y
help
Say Y here if you want to execute interpreted scripts starting with
#! followed by the path to an interpreter.Python with batteries included, doesn't that mean exploit tools included?
No personal attack intended, I am wondering this about my own embedded product which contains Python.
Re:Pure Bash Web Server
by thecodedmessage on Friday February 16, 2024 @11:05AM
(#39398818)
Yeah, I remember reading the code in the kernel that handles shebang a long time ago. ld.so is not involved.