[systemd-devel] users and per user limits (tmpfs)

Lennart Poettering mzerqung at 0pointer.de
Tue Apr 28 02:39:34 PDT 2015


On Tue, 28.04.15 00:55, MichaƂ Zegan (webczat_200 at poczta.onet.pl) wrote:

> Hello.
> 
> I have discovered how to add resource limits for the user, like how
> much memory the user can use, or how much cpu time.
> Here is the problem: /tmp seems a way for the user to circumvent this
> restriction. Is there a way to protect it too?

Nope. There have been discussions for adding quota to tmpfs, but this
lead nowhere.

You can disable tmpfs-on-/tmp, and run it on xfs or ext4 instead and
use classic per-user quota though.

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list