Passing script by fd on Linux and setuid scripts

2016-07-31 Thread Petr Skočík
Hi. The bash reference mentions that /dev/fd/* files are treated specially, as filedescriptors, when used in conditionals. However, they're not if they're passed as script arguments to the bash binary (e.g., `bash /dev/fd/3`). If they were, it would be possible to have a small setuid-root indire

Odd bugs when no job control support

2016-07-31 Thread Olivier Brunel
Hi, (Please Cc me as I'm not subscribed to the list; Thank you.) So I was cross-compiling bash (version 4.3.42(1)-release, x86_64-pc-linux-musl) and came accross some "odd" bugs. It's not quite easy to describe how they occur, so let me use a script to help: ---8<---

Re: change in OS defaults (was: bug in [ -f file ] test)

2016-07-31 Thread Linda Walsh
� wrote: Yes, the can be overridden in /etc/sysctl.d. But I am going to modify the troublesome scripts in the $50k software and leave the security of the OS intact. Thanks. Actually, setting them to "1", is not "leaving the OS security intact" -- it's adding new, non-default security