4 ms·
Thanks for piping up. Charliecloud specifically doesn't require setuid, but many HPC systems won't have user namespaces enabled. (It removed the setuid compon
by gnufx 8y ago
Thanks for piping up.
Charliecloud specifically doesn't require setuid, but many HPC systems won't have user namespaces enabled. (It removed the setuid component which allowed it to work on RHEL6, for instance.) You can also easily build a root for it under proot, for instance -- and proot itself is probably OK for running computationally-intensive work. HPC systems already have a privilege escalation mechanism available from the resource manager, but I don't know there's a problem using it for this sort of thing. Shifter controls the images, so you're not at risk from malformed filesystems, at least.
Definitely setuid in Singularity should worry people. It has a non-stellar security record, and has been less than transparent about issues. The last time I looked at the code for instance it still had many calls unchecked for error returns (including all mallocs), and wrote uninitialized memory to image files. It was a mistake to get it into Fedora, and HPC people should be a bit more circumspect. That said, resource managers probably provide most attack surface in HPC systems, in some case completely trivially.
By the way, it's often possible just to run programs from an unpacked filesystem of another distribution just by setting PATH and LD_LIBRARY_PATH.
- mroche 8y agoNot sure when you last looked at Singularity's code base, but it was completely re-written this year into Go, so some of the issues you saw may have been solved. Not sure, just letting you know if you haven't been following its development. > It was a mistake to get it into Fedora, and HPC people should be a bit more circumspect. I never installed it from EPEL, as building from source was relatively easy in 2.x (trivially easy in 3.x) and allowed buildtime configurations specific to a cluster. If you pay for support you get custom repos, but that's up to the cluster maintainers to decide.
- gnufx 8y agoI know it's been re-written, but I don't know why that would restore my faith in it and Sylabs (for multiple reasons). It emphasizes the point about inclusion in Fedora (and other distributions?) for which there's some expectation of security and stability, even if you don't care about that.