Do ulimits show up in /proc?

Bernd Rinn (bernd@hamilton1.physik.uni-konstanz.de)
Thu, 12 Aug 1999 14:37:45 +0200


Hi,

is there a proper way (or is there a way _at all_) for a process to
see (and modify in the case of authorized processes) the ulimits of
another process, especially RLIMIT_CPU? Something like sys_getrlimit()
with an additional PID-argument? I would expect this information to
show up somewhere in /proc/PID/stat, but the only ulimit present there
is RLIMIT_RSS. Would it be a possible security hole to give this
information in /proc/PID/stat?

And yet another question (but related for our purposes): are there
plans to include a cummulative CPU time limit for a process and all its
children into the kernel, as one needs it for a batch-queuing system to
be able to enforce a 'per request' CPU time limit?

Thank you in advance for your help.

Cheers,

Bernd

PS: Please CC answers to me, because I am not on the list.

-- 
Bernd Rinn
Fakultaet fuer Physik
Universitaet Konstanz

Tel. 07531/88-3812, e-mail: Bernd.Rinn@uni-konstanz.de PGP-Fingerprint: 1F AC 31 64 FF EF A9 67 6E 0D 4C 26 0B E7 ED 5C

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/