diff options
| author | <gerald.jelinek@sun.com> | 2010-05-25 16:50:45 -0600 |
|---|---|---|
| committer | <gerald.jelinek@sun.com> | 2010-05-25 16:50:45 -0600 |
| commit | bbf58fc531abd667a5f986219eba804086a004ad (patch) | |
| tree | 91fd026d57adb22ae09e5bb758bc9741446d90d3 /usr/src/uts/common/syscall/pset.c | |
| parent | 1d8ccc7bfd8ab0f27a23c5253d95c22ceb9c27f4 (diff) | |
| download | illumos-joyent-bbf58fc531abd667a5f986219eba804086a004ad.tar.gz | |
PSARC/2010/181 PRIV_SYS_RES_BIND privilege
6953849 need ability to bind to processor sets from within a zone
Diffstat (limited to 'usr/src/uts/common/syscall/pset.c')
| -rw-r--r-- | usr/src/uts/common/syscall/pset.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/usr/src/uts/common/syscall/pset.c b/usr/src/uts/common/syscall/pset.c index ce49082d4d..645f005177 100644 --- a/usr/src/uts/common/syscall/pset.c +++ b/usr/src/uts/common/syscall/pset.c @@ -19,8 +19,7 @@ * CDDL HEADER END */ /* - * Copyright 2009 Sun Microsystems, Inc. All rights reserved. - * Use is subject to license terms. + * Copyright (c) 1996, 2010, Oracle and/or its affiliates. All rights reserved. */ #include <sys/types.h> @@ -283,7 +282,7 @@ pset_bind_thread(kthread_t *tp, psetid_t pset, psetid_t *oldpset, void *projbuf, * PSET_NOESCAPE attribute. */ if ((tp->t_cpupart->cp_attr & PSET_NOESCAPE) && - secpolicy_pset(CRED()) != 0) + secpolicy_pbind(CRED()) != 0) return (EPERM); if ((error = cpupart_bind_thread(tp, pset, 0, projbuf, zonebuf)) == 0) @@ -561,7 +560,7 @@ pset_bind(psetid_t pset, idtype_t idtype, id_t id, psetid_t *opset) if (cpupart_get_cpus(&pset, NULL, NULL) != 0) { pool_unlock(); return (set_errno(EINVAL)); - } else if (pset != PS_NONE && secpolicy_pset(CRED()) != 0) { + } else if (pset != PS_NONE && secpolicy_pbind(CRED()) != 0) { pool_unlock(); return (set_errno(EPERM)); } |
