aboutsummaryrefslogtreecommitdiff
path: root/sbin/init/init.c
diff options
context:
space:
mode:
authorJilles Tjoelker <jilles@FreeBSD.org>2013-08-13 18:51:26 +0000
committerJilles Tjoelker <jilles@FreeBSD.org>2013-08-13 18:51:26 +0000
commit595ab5638b1c5db0973608d8c8eda712ed0802ca (patch)
tree5cc0b5677640ea2e1aa29da6294ef45d5dd4137a /sbin/init/init.c
parente05bf4cf95a05601bb919aea0886a23eb5453731 (diff)
Notes
Diffstat (limited to 'sbin/init/init.c')
-rw-r--r--sbin/init/init.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sbin/init/init.c b/sbin/init/init.c
index c19b0700b7490..99041c9165017 100644
--- a/sbin/init/init.c
+++ b/sbin/init/init.c
@@ -1729,7 +1729,8 @@ setprocresources(const char *cname)
login_cap_t *lc;
if ((lc = login_getclassbyname(cname, NULL)) != NULL) {
setusercontext(lc, (struct passwd*)NULL, 0,
- LOGIN_SETPRIORITY | LOGIN_SETRESOURCES);
+ LOGIN_SETPRIORITY | LOGIN_SETRESOURCES |
+ LOGIN_SETLOGINCLASS | LOGIN_SETCPUMASK);
login_close(lc);
}
}