mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-19 10:53:58 +00:00
- 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
This commit is contained in:
parent
e376173cab
commit
b944c830ba
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=244383
@ -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:
|
||||
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user