Vadim Zhukov wrote:
> 2015-07-17 1:02 GMT+03:00 Ted Unangst <[email protected]>:
> > Vadim Zhukov wrote:
> >> The manpage recommends using absolute paths for commands, but those
> >> won't work. :) This patch makes everything not in a list of special
> >> characters to be a part of word; this way you can easily put
> >> the following in doas.conf:
> >>
> >>   permit :somepeople cmd /usr/bin/mail [email protected]
> >
> > I don't think this works even so, since there's no argv[1] checking.
> 
> R-r-r-right. But at least the "/usr/bin/mail" part will work now. And
> I do know where to steal arguments handling code...

So what I'm asking is whether we need to add '/' to the allowed set instead,
or as the diff does, and make everything ok except for a few exceptions.

I think it can be weird to parse usernames like "tedu/+banana+" etc.

Reply via email to