<div dir="ltr"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">however, externals are free to *not* use `sys_open` so that could be easily circumvented</blockquote><div> </div><div>yes. I was mostly concerned about user written Pd patches that would be opened by a libpd app, like Pd(Droid)Party, MobMuPlat or so.</div><div>If the developer of the app could lock the write permission to a predefined user directory, it would be safer to try opening patches from other users...</div><div>In the worst case you only could lose other patches or related data.</div><div><br></div><div>Thinking a bit more: actually most mobile APIs already provide such a security...<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le mar. 31 août 2021 à 16:51, IOhannes m zmoelnig <<a href="mailto:zmoelnig@iem.at">zmoelnig@iem.at</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 8/31/21 4:37 PM, Antoine Rousseau wrote:<br>
>><br>
>> i wonder whether it would be possible (with Pd>=0.42) to create a patch<br>
>> that creates a gui-plugin on the fly.<br>
>> if this is true, then you can already do everything that [file] allows you<br>
>> to do - and much more<br>
> <br>
> <br>
> yes, but [file] will be extremely useful in the "-nogui" and libpd contexts.<br>
<br>
yes definitely. and much more.<br>
i didn't write [file] to write exploits but to be useful.<br>
<br>
> <br>
> BTW, and about the "exploits", I'm wondering if this would be feasible to<br>
> implement a safety lock callable from a libpd based application, that would<br>
> restrict the write permission (of every Pd object) to a given list of<br>
> directories.<br>
<br>
we could probably restrict `sys_open` and friends.<br>
however, externals are free to *not* use `sys_open` so that could be <br>
easily circumvented.<br>
<br>
mfgasdr<br>
IOhannes<br>
<br>
_______________________________________________<br>
Pd-dev mailing list<br>
<a href="mailto:Pd-dev@lists.iem.at" target="_blank">Pd-dev@lists.iem.at</a><br>
<a href="https://lists.puredata.info/listinfo/pd-dev" rel="noreferrer" target="_blank">https://lists.puredata.info/listinfo/pd-dev</a><br>
</blockquote></div>