| /onnv-gate/usr/src/lib/libtsol/common/ |
| H A D | privlib.c | 45 priv_set_t *priv_set; in set_effective_priv() local 50 priv_set = priv_allocset(); in set_effective_priv() 51 PRIV_EMPTY(priv_set); in set_effective_priv() 65 priv_freeset(priv_set); in set_effective_priv() 68 (void) priv_addset(priv_set, priv_name); in set_effective_priv() 75 status = setppriv(op, PRIV_EFFECTIVE, priv_set); in set_effective_priv() 76 priv_freeset(priv_set); in set_effective_priv() 96 priv_set_t *priv_set; in set_inheritable_priv() local 101 priv_set = priv_allocset(); in set_inheritable_priv() 103 PRIV_EMPTY(priv_set); in set_inheritable_priv() [all …]
|
| /onnv-gate/usr/src/cmd/cmd-inet/lib/nwamd/ |
| H A D | util.c | 84 priv_set_t *priv_set; in nwamd_escalate() local 85 priv_set = priv_str_to_set("zone", ",", NULL); in nwamd_escalate() 87 if (priv_set == NULL) in nwamd_escalate() 94 if (setppriv(PRIV_SET, PRIV_EFFECTIVE, priv_set) == -1) { in nwamd_escalate() 95 priv_freeset(priv_set); in nwamd_escalate() 101 priv_freeset(priv_set); in nwamd_escalate() 110 priv_set_t *priv_set, *allpriv_set; in nwamd_deescalate() local 113 priv_set = priv_str_to_set("basic", ",", NULL); in nwamd_deescalate() 115 if (priv_set == NULL || allpriv_set == NULL) in nwamd_deescalate() 118 (void) priv_addset(priv_set, PRIV_FILE_CHOWN_SELF); in nwamd_deescalate() [all …]
|
| /onnv-gate/usr/src/cmd/acctadm/ |
| H A D | main.c | 108 (void) priv_set(PRIV_OFF, PRIV_EFFECTIVE, PRIV_FILE_DAC_WRITE, in setup_privs() 186 (void) priv_set(PRIV_OFF, PRIV_PERMITTED, in main() 191 (void) priv_set(PRIV_OFF, PRIV_PERMITTED, in main() 227 (void) priv_set(PRIV_OFF, PRIV_PERMITTED, in main() 313 (void) priv_set(PRIV_ON, PRIV_EFFECTIVE, in main() 317 (void) priv_set(PRIV_OFF, PRIV_EFFECTIVE, in main() 326 (void) priv_set(PRIV_ON, PRIV_EFFECTIVE, PRIV_SYS_ACCT, NULL); in main() 333 (void) priv_set(PRIV_OFF, PRIV_EFFECTIVE, PRIV_SYS_ACCT, NULL); in main() 364 (void) priv_set(PRIV_ON, PRIV_EFFECTIVE, in main() 369 (void) priv_set(PRIV_OFF, PRIV_EFFECTIVE, in main() [all …]
|
| H A D | utils.c | 150 (void) priv_set(PRIV_ON, PRIV_EFFECTIVE, PRIV_FILE_DAC_WRITE, NULL); in open_exacct_file() 172 (void) priv_set(PRIV_OFF, PRIV_PERMITTED, PRIV_FILE_DAC_WRITE, NULL); in open_exacct_file()
|
| H A D | aconf.c | 189 (void) priv_set(PRIV_ON, PRIV_EFFECTIVE, PRIV_SYS_ACCT, NULL); in aconf_setup() 213 (void) priv_set(PRIV_OFF, PRIV_EFFECTIVE, PRIV_SYS_ACCT, NULL); in aconf_setup() 219 (void) priv_set(PRIV_ON, PRIV_EFFECTIVE, PRIV_SYS_DL_CONFIG, in aconf_setup() 224 (void) priv_set(PRIV_OFF, PRIV_EFFECTIVE, PRIV_SYS_DL_CONFIG, in aconf_setup()
|
| /onnv-gate/usr/src/cmd/ndmpd/tlm/ |
| H A D | tlm_restore_writer.c | 1979 priv_set_t *priv_set; in ndmp_set_eprivs_least() local 1981 if ((priv_set = priv_allocset()) == NULL) { in ndmp_set_eprivs_least() 1986 priv_basicset(priv_set); in ndmp_set_eprivs_least() 1988 (void) priv_addset(priv_set, PRIV_PROC_AUDIT); in ndmp_set_eprivs_least() 1989 (void) priv_addset(priv_set, PRIV_PROC_SETID); in ndmp_set_eprivs_least() 1990 (void) priv_addset(priv_set, PRIV_PROC_OWNER); in ndmp_set_eprivs_least() 1991 (void) priv_addset(priv_set, PRIV_FILE_CHOWN); in ndmp_set_eprivs_least() 1992 (void) priv_addset(priv_set, PRIV_FILE_CHOWN_SELF); in ndmp_set_eprivs_least() 1993 (void) priv_addset(priv_set, PRIV_FILE_DAC_READ); in ndmp_set_eprivs_least() 1994 (void) priv_addset(priv_set, PRIV_FILE_DAC_SEARCH); in ndmp_set_eprivs_least() [all …]
|
| /onnv-gate/usr/src/cmd/cmd-inet/usr.sbin/ |
| H A D | in.tftpd.c | 202 (void) priv_set(PRIV_OFF, PRIV_ALLSETS, PRIV_PROC_EXEC, in main() 206 (void) priv_set(PRIV_OFF, PRIV_EFFECTIVE, PRIV_PROC_CHROOT, in main() 273 (void) priv_set(PRIV_ON, in main() 280 (void) priv_set(PRIV_OFF, PRIV_EFFECTIVE, PRIV_NET_PRIVADDR, in main() 298 (void) priv_set(PRIV_ON, PRIV_EFFECTIVE, PRIV_PROC_FORK, NULL); in main() 303 (void) priv_set(PRIV_OFF, PRIV_EFFECTIVE, PRIV_PROC_FORK, NULL); in main() 810 (void) priv_set(PRIV_ON, PRIV_EFFECTIVE, PRIV_PROC_FORK, NULL); in tftp() 814 (void) priv_set(PRIV_OFF, PRIV_EFFECTIVE, PRIV_PROC_FORK, NULL); in tftp() 817 (void) priv_set(PRIV_OFF, PRIV_EFFECTIVE, PRIV_PROC_FORK, NULL); in tftp() 820 (void) priv_set(PRIV_OFF, PRIV_EFFECTIVE, PRIV_PROC_FORK, NULL); in tftp() [all …]
|
| /onnv-gate/usr/src/lib/libbsm/common/ |
| H A D | audit_ftpd.c | 259 (void) priv_set(PRIV_ON, PRIV_EFFECTIVE, PRIV_PROC_AUDIT, NULL); in audit_ftpd_logout() 269 (void) priv_set(PRIV_OFF, PRIV_EFFECTIVE, PRIV_PROC_AUDIT, in audit_ftpd_logout() 301 (void) priv_set(PRIV_OFF, PRIV_EFFECTIVE, PRIV_PROC_AUDIT, NULL); in audit_ftpd_logout()
|
| /onnv-gate/usr/src/head/ |
| H A D | priv.h | 52 extern int priv_set(priv_op_t, priv_ptype_t, ...); 89 extern int priv_set(/* priv_op_t, priv_ptype_t, ... */);
|
| H A D | zone.h | 58 const struct priv_set *, const char *, size_t, const char *, size_t, int *,
|
| /onnv-gate/usr/src/uts/common/os/ |
| H A D | devpolicy.c | 687 priv_str_to_set(const char *priv_name, priv_set_t *priv_set) in priv_str_to_set() argument 690 priv_emptyset(priv_set); in priv_str_to_set() 692 priv_fillset(priv_set); in priv_str_to_set() 701 priv_emptyset(priv_set); in priv_str_to_set() 702 priv_addset(priv_set, priv); in priv_str_to_set()
|
| /onnv-gate/usr/src/cmd/cmd-inet/usr.sbin/in.ftpd/ |
| H A D | privs.c | 53 if (priv_set(PRIV_ON, PRIV_EFFECTIVE, priv, NULL) == -1) in priv_on() 63 if (priv_set(PRIV_OFF, PRIV_EFFECTIVE, priv, NULL) == -1) in priv_off()
|
| /onnv-gate/usr/src/lib/print/libpapi-lpd/common/ |
| H A D | lpd-port.c | 189 if ((priv_set(PRIV_ON, PRIV_EFFECTIVE, in next_job_id() 207 priv_set(PRIV_OFF, PRIV_PERMITTED, in next_job_id() 247 if ((priv_set( in reserved_port() 267 priv_set(PRIV_OFF, PRIV_PERMITTED, PRIV_NET_PRIVADDR, NULL); in reserved_port() 720 if (priv_set(PRIV_OFF, PRIV_EFFECTIVE, PRIV_NET_PRIVADDR, in main()
|
| /onnv-gate/usr/src/cmd/svr4pkg/libinst/ |
| H A D | dryrun.c | 111 unsigned priv_set:1; member 287 wr_OK(fp_dra, "PRIV", dr_info.priv_set, dr_info.priv); in write_dryrun_ascii() 490 dr_info.priv_set = 0; in init_drinfo() 822 if (dr_info.priv_set == 0) { in set_dr_info() 823 dr_info.priv_set = 1; in set_dr_info()
|
| /onnv-gate/usr/src/uts/common/c2/ |
| H A D | audit.h | 493 struct priv_set; 591 void audit_priv(int, const struct priv_set *, int); 592 void audit_setppriv(int, int, const struct priv_set *, const cred_t *);
|
| /onnv-gate/usr/src/uts/common/sys/ |
| H A D | policy.h | 70 struct priv_set; 73 int secpolicy_require_privs(const cred_t *, const struct priv_set *);
|
| H A D | zone.h | 188 const struct priv_set *zone_privs; 479 struct priv_set *zone_privset; /* limit set for zone */
|
| H A D | priv_impl.h | 44 struct priv_set { struct
|
| H A D | priv.h | 37 typedef struct priv_set priv_set_t;
|
| /onnv-gate/usr/src/cmd/perl/contrib/Sun/Solaris/Privilege/ |
| H A D | README | 17 See getppriv(2), setppriv(2), priv_str_to_set(3C), priv_set(3C),
|
| /onnv-gate/usr/src/lib/libproject/common/ |
| H A D | llib-lproject | 36 typedef struct priv_set priv_set_t;
|
| /onnv-gate/usr/src/lib/librestart/common/ |
| H A D | librestart.c | 2475 ci->priv_set = priv_str_to_set(value, ",", NULL); in get_profile() 2476 if (ci->priv_set == NULL) { in get_profile() 2633 ci->priv_set = priv_str_to_set(vbuf, ",", NULL); in get_ids() 2634 if (ci->priv_set == NULL) { in get_ids() 3609 if (cip->priv_set != NULL) { in restarter_set_method_context() 3610 if (setppriv(PRIV_SET, PRIV_INHERITABLE, cip->priv_set) != 0) { in restarter_set_method_context() 3623 if (cip->lpriv_set == NULL && cip->priv_set != NULL) { in restarter_set_method_context() 3637 if (cip->priv_set != NULL) { in restarter_set_method_context() 3638 if (setppriv(PRIV_SET, PRIV_PERMITTED, cip->priv_set) != 0) { in restarter_set_method_context() 3675 if (mcp->priv_set != NULL) in restarter_free_method_context() [all …]
|
| H A D | librestart.h | 276 priv_set_t *lpriv_set, *priv_set; member
|
| /onnv-gate/usr/src/lib/libc/port/sys/ |
| H A D | zone.c | 40 zone_create(const char *name, const char *root, const struct priv_set *privs, in zone_create()
|
| /onnv-gate/usr/src/cmd/fs.d/nfs/nfsmapid/ |
| H A D | nfsmapid.c | 354 (void) priv_set(PRIV_OFF, PRIV_PERMITTED, in main()
|