From 14b89019c6f151d71fd698017bd5f36e1843357d Mon Sep 17 00:00:00 2001 From: green Date: Sat, 9 Oct 1999 20:47:59 +0000 Subject: This implements the RLIMIT_SBSIZE ("sbsize") administrative limits for userland. Currently, it can be enforced by login and csh. More shells supporting sbsize are welcome. --- lib/libutil/login_class.3 | 1 + lib/libutil/login_class.c | 1 + 2 files changed, 2 insertions(+) (limited to 'lib') diff --git a/lib/libutil/login_class.3 b/lib/libutil/login_class.3 index 4bb0185..edbaa89 100644 --- a/lib/libutil/login_class.3 +++ b/lib/libutil/login_class.3 @@ -109,6 +109,7 @@ memoryuse RLIMIT_RSS memorylocked RLIMIT_MEMLOCK maxproc RLIMIT_NPROC openfiles RLIMIT_NOFILE +sbsize RLIMIT_SBSIZE .Ed .It LOGIN_SETPRIORITY Set the scheduling priority for the current process based on the diff --git a/lib/libutil/login_class.c b/lib/libutil/login_class.c index 589ea4f..2cd65bd 100644 --- a/lib/libutil/login_class.c +++ b/lib/libutil/login_class.c @@ -59,6 +59,7 @@ static struct login_res { { "maxproc", login_getcapnum, RLIMIT_NPROC }, { "openfiles", login_getcapnum, RLIMIT_NOFILE }, { "coredumpsize", login_getcapsize, RLIMIT_CORE }, + { "sbsize", login_getcapnum, RLIMIT_SBSIZE }, { NULL, 0, 0 } }; -- cgit v1.1