Re: Bug#762839: bash without importing shell functions from the environment
Brian May <brian@microcomaustralia.com.au> writes:
> No, I don't think that is the case. I believe sudo interprets those
> assignments itself (as also shown in man page), and the error I got
> clearly shows this to be the case.
> brian@aquitard:~$ sudo echo='() { /bin/echo bar; id; }' ./test.sh
> sudo: sorry, you are not allowed to set the following environment
> variables: echo
Ah! You're right. I totally missed that capability of sudo.
--
Russ Allbery (rra@debian.org) <http://www.eyrie.org/~eagle/>
Reply to: