diff options
Diffstat (limited to 'sys/compat/svr4/svr4_resource.c')
-rw-r--r-- | sys/compat/svr4/svr4_resource.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/compat/svr4/svr4_resource.c b/sys/compat/svr4/svr4_resource.c index c559345..8737821 100644 --- a/sys/compat/svr4/svr4_resource.c +++ b/sys/compat/svr4/svr4_resource.c @@ -138,6 +138,8 @@ svr4_sys_getrlimit(p, uap) if (rl == -1) return EINVAL; + /* For p_rlimit. */ + mtx_assert(&Giant, MA_OWNED); blim = p->p_rlimit[rl]; /* @@ -184,6 +186,8 @@ svr4_sys_setrlimit(p, uap) if (rl == -1) return EINVAL; + /* For p_rlimit. */ + mtx_assert(&Giant, MA_OWNED); limp = &p->p_rlimit[rl]; if ((error = copyin(SCARG(uap, rlp), &slim, sizeof(slim))) != 0) @@ -232,6 +236,8 @@ svr4_sys_getrlimit64(p, uap) if (rl == -1) return EINVAL; + /* For p_rlimit. */ + mtx_assert(&Giant, MA_OWNED); blim = p->p_rlimit[rl]; /* @@ -278,6 +284,8 @@ svr4_sys_setrlimit64(p, uap) if (rl == -1) return EINVAL; + /* For p_rlimit. */ + mtx_assert(&Giant, MA_OWNED); limp = &p->p_rlimit[rl]; if ((error = copyin(SCARG(uap, rlp), &slim, sizeof(slim))) != 0) |