Home
last modified time | relevance | path

Searched refs:setppriv (Results 1 – 25 of 41) sorted by relevance

12

/titanic_44/usr/src/lib/libtsol/common/
H A Dprivlib.c75 status = setppriv(op, PRIV_EFFECTIVE, priv_set); in set_effective_priv()
125 status = setppriv(op, PRIV_INHERITABLE, priv_set); in set_inheritable_priv()
175 status = setppriv(op, PRIV_PERMITTED, priv_set); in set_permitted_priv()
/titanic_44/usr/src/lib/libc/port/gen/
H A Dprivlib.c435 ret = setppriv(op, setname, pset); in priv_set()
519 (void) setppriv(PRIV_SET, effective, perm); in __init_daemon_priv()
527 setppriv(PRIV_SET, limit, nset) != 0) in __init_daemon_priv()
532 if (setppriv(PRIV_SET, limit, perm) != 0) in __init_daemon_priv()
537 if (setppriv(PRIV_SET, permitted, nset) != 0) in __init_daemon_priv()
543 ret = setppriv(PRIV_SET, inheritable, nset); in __init_daemon_priv()
585 (void) setppriv(PRIV_OFF, permitted, nset); in __fini_daemon_priv()
661 if ((r = setppriv(PRIV_SET, effective, tmpset)) != 0) in __init_suid_priv()
664 if ((r = setppriv(PRIV_SET, permitted, nset)) != 0) in __init_suid_priv()
671 (r = setppriv(PRIV_SET, limit, nset)) != 0) in __init_suid_priv()
[all …]
H A Dklpdlib.c146 (void) setppriv(PRIV_OFF, PRIV_INHERITABLE, set); in klpd_register_id()
/titanic_44/usr/src/cmd/gss/gssd/
H A Dgssd_getuid.c96 (void) setppriv(PRIV_SET, PRIV_EFFECTIVE, highprivs); in set_gssd_uid()
116 (void) setppriv(PRIV_SET, PRIV_EFFECTIVE, lowprivs); in set_gssd_uid()
/titanic_44/usr/src/lib/libc/port/sys/
H A Dppriv.c29 #pragma weak _setppriv = setppriv
41 setppriv(priv_op_t op, priv_ptype_t type, const priv_set_t *pset) in setppriv() function
/titanic_44/usr/src/cmd/hal/hald/
H A Dutil_helper.c83 (void) setppriv(PRIV_SET, PRIV_PERMITTED, pPrivSet); in drop_privileges()
86 (void) setppriv(PRIV_SET, PRIV_LIMIT, pPrivSet); in drop_privileges()
/titanic_44/usr/src/cmd/cmd-inet/lib/nwamd/
H A Dutil.c94 if (setppriv(PRIV_SET, PRIV_EFFECTIVE, priv_set) == -1) { in nwamd_escalate()
140 if (setppriv(PRIV_SET, PRIV_INHERITABLE, priv_set) == -1) { in nwamd_deescalate()
149 if (setppriv(PRIV_SET, PRIV_PERMITTED, allpriv_set) == -1) { in nwamd_deescalate()
158 if (setppriv(PRIV_SET, PRIV_EFFECTIVE, priv_set) == -1) { in nwamd_deescalate()
/titanic_44/usr/src/cmd/acctadm/
H A Dmain.c90 if (setppriv(PRIV_OFF, PRIV_PERMITTED, privset) == -1) in setup_privs()
100 if (setppriv(PRIV_SET, PRIV_INHERITABLE, privset) == -1 || in setup_privs()
101 setppriv(PRIV_SET, PRIV_LIMIT, privset) == -1) in setup_privs()
/titanic_44/usr/src/cmd/hal/probing/xkb/
H A Dprobe-xkb.c68 if (setppriv(PRIV_SET, PRIV_PERMITTED, pPrivSet) != 0) { in drop_privileges()
79 if (setppriv(PRIV_SET, PRIV_LIMIT, lPrivSet) != 0) { in drop_privileges()
/titanic_44/usr/src/head/
H A Dpriv.h47 extern int setppriv(priv_op_t, priv_ptype_t, const priv_set_t *);
/titanic_44/usr/src/cmd/hal/addons/network-devices/
H A Daddon-network-discovery.c289 if (setppriv(PRIV_SET, PRIV_PERMITTED, pPrivSet) != 0) { in drop_privileges()
300 if (setppriv(PRIV_SET, PRIV_LIMIT, lPrivSet) != 0) { in drop_privileges()
/titanic_44/usr/src/uts/common/syscall/
H A Dppriv.c55 setppriv(priv_op_t op, priv_ptype_t type, priv_set_t *in_pset) in setppriv() function
383 return (setppriv(op, type, buf)); in privsys()
/titanic_44/usr/src/cmd/smbsrv/smbd/
H A Dsmbd_main.c347 (void) setppriv(PRIV_SET, PRIV_EFFECTIVE, perm); in smb_init_daemon_priv()
355 ret = setppriv(PRIV_SET, PRIV_INHERITABLE, perm); in smb_init_daemon_priv()
412 (void) setppriv(PRIV_OFF, PRIV_EFFECTIVE, pset); in smbd_daemonize_fini()
/titanic_44/usr/src/man/man2/
H A DMakefile246 setppriv.2 \
335 setppriv.2 := LINKSRC = getppriv.2
/titanic_44/usr/src/cmd/hal/addons/storage/
H A Daddon-storage.c295 if (setppriv(PRIV_SET, PRIV_PERMITTED, pPrivSet) != 0) { in drop_privileges()
306 if (setppriv(PRIV_SET, PRIV_LIMIT, lPrivSet) != 0) { in drop_privileges()
/titanic_44/usr/src/cmd/dlmgmtd/
H A Ddlmgmt_main.c400 if (err == 0 && setppriv(PRIV_SET, ptype, pset) == -1) in dlmgmt_drop_privileges()
415 if (setppriv(PRIV_SET, PRIV_EFFECTIVE, privset) == -1) in dlmgmt_elevate_privileges()
/titanic_44/usr/src/cmd/pfexec/
H A Dpfexec.c163 if (setppriv(PRIV_ON, PRIV_INHERITABLE, wanted) != 0) { in main()
/titanic_44/usr/src/cmd/hal/probing/storage/
H A Dprobe-storage.c306 if (setppriv(PRIV_SET, PRIV_PERMITTED, pPrivSet) != 0) { in drop_privileges()
317 if (setppriv(PRIV_SET, PRIV_LIMIT, lPrivSet) != 0) { in drop_privileges()
/titanic_44/usr/src/cmd/login/
H A Dlogin_audit.c185 (setppriv(PRIV_SET, PRIV_PERMITTED, priv) != 0)) { in audit_logout()
/titanic_44/usr/src/cmd/ssh/libssh/common/
H A Duidswap.c249 if (setppriv(PRIV_SET, PRIV_PERMITTED, pset) == -1) in permanently_set_uid()
/titanic_44/usr/src/lib/pam_modules/unix_cred/
H A Dunix_cred.c619 if (setppriv(PRIV_SET, PRIV_INHERITABLE, def) != 0) { in pam_sm_setcred()
635 if (setppriv(PRIV_SET, PRIV_LIMIT, lim) != 0) { in pam_sm_setcred()
/titanic_44/usr/src/cmd/hal/probing/volume/
H A Dprobe-volume.c399 if (setppriv(PRIV_SET, PRIV_PERMITTED, pPrivSet) != 0) { in drop_privileges()
410 if (setppriv(PRIV_SET, PRIV_LIMIT, lPrivSet) != 0) { in drop_privileges()
/titanic_44/usr/src/cmd/ndmpd/ndmp/
H A Dndmpd_main.c148 if (pset == NULL || setppriv(PRIV_SET, PRIV_EFFECTIVE, pset) != 0) { in set_privileges()
/titanic_44/usr/src/cmd/ptools/ppriv/
H A Dppriv.c573 if (setppriv(PRIV_SET, PRIV_INHERITABLE, target) != 0) in privupdate_self()
586 if (setppriv(PRIV_SET, PRIV_LIMIT, target) != 0) in privupdate_self()
/titanic_44/usr/src/cmd/zlogin/
H A Dzlogin.c239 if ((setppriv(PRIV_SET, PRIV_PERMITTED, dropprivs)) == -1) { in postfork_dropprivs()
242 if ((setppriv(PRIV_SET, PRIV_LIMIT, dropprivs)) == -1) { in postfork_dropprivs()
245 if ((setppriv(PRIV_SET, PRIV_INHERITABLE, dropprivs)) == -1) { in postfork_dropprivs()

12