<p dir="ltr">If I have multiuser Linux installation with shell and DE access, my users have not places in system, where they able download something from internet and execute:<br>
/ ro,exec<br>
/home rw,noexec<br>
/var rw,noexec<br>
All tmpfs noexec<br>
In Debian wheezy this done and work.<br>
In Debian jessie I have places (/run/users/*), where users may execute dowloaded executables. What I must do with this?<br>
Sorry my english.</p>
<div class="gmail_quote">16.02.2015 14:10 пользователь "Lennart Poettering" <<a href="mailto:lennart@poettering.net">lennart@poettering.net</a>> написал:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">B1;3802;0cOn Sun, 15.02.15 16:31, Павел Самсонов (<a href="mailto:pvsamsonov76@gmail.com">pvsamsonov76@gmail.com</a>) wrote:<br>
<br>
> Good day, I see a new Debian jessie, and I mean, that /var/run/<pid><br>
> filesystems must be mounted with noexec options, so thay have user write<br>
> access. On some installations this very important. Were I may configure<br>
> this, or may be You change your default mount options?<br>
> Sorry my English, best regards, Pavel, Russia.<br>
<br>
I cannot parse this. Do you mean /run/user/<uid>? /var/run/<pid> is<br>
not a separate mount, /run is, and that is not user writable.<br>
<br>
The /run/user/<uid> directory is mounted to implement<br>
XDG_RUNTIME_DIR. We guarantee certain functionality on it, including<br>
the ability to have executable files there, and that's specified in<br>
the XDG_RUNTIME_DIR spec.<br>
<br>
Hence, the only way to change it is by patching logind, and we will<br>
not add a configuration option for this, since it would mean<br>
XDG_RUNTIME_DIR would not provide what it's supposed to provide<br>
anymore.<br>
<br>
Note though that /run/user/<uid> is mounted as per-user tmpfs<br>
instance, with nosuid and nodev, and a size limit applied. It should<br>
hence be a pretty safe thing.<br>
<br>
Also note that "noexec" doesn't really do what people think it does.<br>
<br>
Lennart<br>
<br>
--<br>
Lennart Poettering, Red Hat<br>
</blockquote></div>