rpcd / acl.d problem

Paul D newtwen at gmail.com
Sun Mar 3 16:30:23 PST 2024


On 2024-03-02 19:50, Jo-Philipp Wich wrote:
> Hi.
> 
> You need a double backslash to escape the backslash itself.
> 
>> "/usr/bin/find -L /dev -maxdepth 3 -type c -name lp\\[0-9\\]": ["exec"]
> 
> ~ Jo

No go. Still 403.

Pretty sure I've tried all workable permutations in the js and JSON of 
escaping. Restarted rpcd and cleared browser cache between every new test.

JSON:

"/usr/bin/find -L /dev -maxdepth 3 -type c -name lp\\[0-9\\]": ["exec"]

JS
fs.exec_direct('/usr/bin/find', [ '-L', '/dev', '-maxdepth', '3', 
'-type', 'c', '-name', 'lp[0-9]' ])...

403




More information about the openwrt-devel mailing list