3 ms·
Out of curiosity, how would you run Python or R workloads in kubernetes without a distro or shell?
by robinhoodexe 3y ago
Out of curiosity, how would you run Python or R workloads in kubernetes without a distro or shell?
- jonhohle 3y agoPython 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.
- khrbtxyz 3y agoShebang 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.binfmt#L100 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.
- thecodedmessage 3y agoYeah, I remember reading the code in the kernel that handles shebang a long time ago. ld.so is not involved.
- usr1106 3y agoPython 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.
- ttymck 3y agohttps://stackoverflow.com/questions/62581924/is-there-a-way-to-compile-a-python-program-to-binary-and-use-it-with-a-scratch-d https://stackoverflow.com/questions/62581924/is-there-a-way-...
- oneshtein 3y agoPython is better than shell, so intruder will use it first.