Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Jan 2013 10:58:20 +0000 (UTC)
From:      Andrey Zonov <zont@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r245415 - stable/9/etc
Message-ID:  <201301141058.r0EAwK4q044423@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: zont
Date: Mon Jan 14 10:58:20 2013
New Revision: 245415
URL: http://svnweb.freebsd.org/changeset/base/245415

Log:
  MFC r244383:
  - 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.
  
  Approved by:	kib (mentor)

Modified:
  stable/9/etc/login.conf
Directory Properties:
  stable/9/etc/   (props changed)

Modified: stable/9/etc/login.conf
==============================================================================
--- stable/9/etc/login.conf	Mon Jan 14 09:11:18 2013	(r245414)
+++ stable/9/etc/login.conf	Mon Jan 14 10:58:20 2013	(r245415)
@@ -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?201301141058.r0EAwK4q044423>