Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Dec 2012 07:27:51 +0000 (UTC)
From:      Andrey Zonov <zont@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r244383 - head/etc
Message-ID:  <201212180727.qBI7Rp0t084371@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: zont
Date: Tue Dec 18 07:27:50 2012
New Revision: 244383
URL: http://svnweb.freebsd.org/changeset/base/244383

Log:
  - Set memorylocked limit to 64Kb for default login class.
    This prevents unprivileged users to lock too much memory.
  - Set memorylocked limit to 64Mb for daemon login class.
    Some daemons such as amd(8) and watchdogd(8) calls mlockall(2) on
    startup, they are run from init(8) which uses daemon login class.
  - Set memorylocked limit to unlimited for root login class.
  
  Suggested by:	avg
  Approved by:	kib (mentor)
  MFC after:	1 week

Modified:
  head/etc/login.conf

Modified: head/etc/login.conf
==============================================================================
--- head/etc/login.conf	Tue Dec 18 07:26:55 2012	(r244382)
+++ head/etc/login.conf	Tue Dec 18 07:27:50 2012	(r244383)
@@ -32,7 +32,7 @@ default:\
 	:cputime=unlimited:\
 	:datasize=unlimited:\
 	:stacksize=unlimited:\
-	:memorylocked=unlimited:\
+	:memorylocked=64K:\
 	:memoryuse=unlimited:\
 	:filesize=unlimited:\
 	:coredumpsize=unlimited:\
@@ -59,6 +59,7 @@ xuser:\
 staff:\
 	:tc=default:
 daemon:\
+	:memorylocked=64M:\
 	:tc=default:
 news:\
 	:tc=default:
@@ -72,6 +73,7 @@ dialer:\
 #       in preference to 'default'.
 root:\
 	:ignorenologin:\
+	:memorylocked=unlimited:\
 	:tc=default:
 
 #



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201212180727.qBI7Rp0t084371>