/illumos-gate/usr/src/lib/libtsol/common/ |
H A D | privlib.c | 45 priv_set_t *priv_set; local 50 priv_set = priv_allocset(); 51 PRIV_EMPTY(priv_set); 65 priv_freeset(priv_set); 68 (void) priv_addset(priv_set, priv_name); 75 status = setppriv(op, PRIV_EFFECTIVE, priv_set); 76 priv_freeset(priv_set); 96 priv_set_t *priv_set; local 101 priv_set = priv_allocset(); 103 PRIV_EMPTY(priv_set); 146 priv_set_t *priv_set; local [all...] |
/illumos-gate/usr/src/lib/libproject/common/ |
H A D | llib-lproject | 36 typedef struct priv_set priv_set_t;
|
/illumos-gate/usr/src/cmd/cmd-inet/lib/nwamd/ |
H A D | util.c | 84 priv_set_t *priv_set; local 85 priv_set = priv_str_to_set("zone", ",", NULL); 87 if (priv_set == NULL) 94 if (setppriv(PRIV_SET, PRIV_EFFECTIVE, priv_set) == -1) { 95 priv_freeset(priv_set); 101 priv_freeset(priv_set); 110 priv_set_t *priv_set, *allpriv_set; local 113 priv_set = priv_str_to_set("basic", ",", NULL); 115 if (priv_set == NULL || allpriv_set == NULL) 118 (void) priv_addset(priv_set, PRIV_FILE_CHOWN_SEL [all...] |
/illumos-gate/usr/src/cmd/acctadm/ |
H A D | main.c | 108 (void) priv_set(PRIV_OFF, PRIV_EFFECTIVE, PRIV_FILE_DAC_WRITE, 186 (void) priv_set(PRIV_OFF, PRIV_PERMITTED, 191 (void) priv_set(PRIV_OFF, PRIV_PERMITTED, 227 (void) priv_set(PRIV_OFF, PRIV_PERMITTED, 313 (void) priv_set(PRIV_ON, PRIV_EFFECTIVE, 317 (void) priv_set(PRIV_OFF, PRIV_EFFECTIVE, 326 (void) priv_set(PRIV_ON, PRIV_EFFECTIVE, PRIV_SYS_ACCT, NULL); 333 (void) priv_set(PRIV_OFF, PRIV_EFFECTIVE, PRIV_SYS_ACCT, NULL); 364 (void) priv_set(PRIV_ON, PRIV_EFFECTIVE, 369 (void) priv_set(PRIV_OF [all...] |
H A D | utils.c | 150 (void) priv_set(PRIV_ON, PRIV_EFFECTIVE, PRIV_FILE_DAC_WRITE, NULL); 172 (void) priv_set(PRIV_OFF, PRIV_PERMITTED, PRIV_FILE_DAC_WRITE, NULL);
|
H A D | aconf.c | 189 (void) priv_set(PRIV_ON, PRIV_EFFECTIVE, PRIV_SYS_ACCT, NULL); 213 (void) priv_set(PRIV_OFF, PRIV_EFFECTIVE, PRIV_SYS_ACCT, NULL); 219 (void) priv_set(PRIV_ON, PRIV_EFFECTIVE, PRIV_SYS_DL_CONFIG, 224 (void) priv_set(PRIV_OFF, PRIV_EFFECTIVE, PRIV_SYS_DL_CONFIG,
|
/illumos-gate/usr/src/head/ |
H A D | zone.h | 58 const struct priv_set *, const char *, size_t, const char *, size_t, int *,
|
H A D | priv.h | 41 #define PRIV_ALLSETS ((priv_ptype_t)0) /* for priv_set() */ 53 extern int priv_set(priv_op_t, priv_ptype_t, ...);
|
/illumos-gate/usr/src/cmd/ndmpd/tlm/ |
H A D | tlm_restore_writer.c | 2025 priv_set_t *priv_set; local 2027 if ((priv_set = priv_allocset()) == NULL) { 2032 priv_basicset(priv_set); 2034 (void) priv_addset(priv_set, PRIV_PROC_AUDIT); 2035 (void) priv_addset(priv_set, PRIV_PROC_SETID); 2036 (void) priv_addset(priv_set, PRIV_PROC_OWNER); 2037 (void) priv_addset(priv_set, PRIV_FILE_CHOWN); 2038 (void) priv_addset(priv_set, PRIV_FILE_CHOWN_SELF); 2039 (void) priv_addset(priv_set, PRIV_FILE_DAC_READ); 2040 (void) priv_addset(priv_set, PRIV_FILE_DAC_SEARC 2061 priv_set_t *priv_set; local [all...] |
/illumos-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, 206 (void) priv_set(PRIV_OFF, PRIV_EFFECTIVE, PRIV_PROC_CHROOT, 273 (void) priv_set(PRIV_ON, 280 (void) priv_set(PRIV_OFF, PRIV_EFFECTIVE, PRIV_NET_PRIVADDR, 298 (void) priv_set(PRIV_ON, PRIV_EFFECTIVE, PRIV_PROC_FORK, NULL); 303 (void) priv_set(PRIV_OFF, PRIV_EFFECTIVE, PRIV_PROC_FORK, NULL); 810 (void) priv_set(PRIV_ON, PRIV_EFFECTIVE, PRIV_PROC_FORK, NULL); 814 (void) priv_set(PRIV_OFF, PRIV_EFFECTIVE, PRIV_PROC_FORK, NULL); 817 (void) priv_set(PRIV_OFF, PRIV_EFFECTIVE, PRIV_PROC_FORK, NULL); 820 (void) priv_set(PRIV_OF [all...] |
/illumos-gate/usr/src/lib/libbsm/common/ |
H A D | audit_ftpd.c | 259 (void) priv_set(PRIV_ON, PRIV_EFFECTIVE, PRIV_PROC_AUDIT, NULL); 269 (void) priv_set(PRIV_OFF, PRIV_EFFECTIVE, PRIV_PROC_AUDIT, 301 (void) priv_set(PRIV_OFF, PRIV_EFFECTIVE, PRIV_PROC_AUDIT, NULL);
|
/illumos-gate/usr/src/uts/common/c2/ |
H A D | audit.h | 494 struct priv_set; 592 void audit_priv(int, const struct priv_set *, int); 593 void audit_setppriv(int, int, const struct priv_set *, const cred_t *);
|
/illumos-gate/usr/src/uts/common/sys/ |
H A D | priv.h | 39 typedef struct priv_set priv_set_t;
|
H A D | priv_impl.h | 44 struct priv_set { struct
|
H A D | policy.h | 71 struct priv_set; 74 int secpolicy_require_privs(const cred_t *, const struct priv_set *);
|
H A D | zone.h | 194 const struct priv_set *zone_privs; 512 struct priv_set *zone_privset; /* limit set for zone */
|
/illumos-gate/usr/src/lib/librestart/common/ |
H A D | librestart.h | 279 priv_set_t *lpriv_set, *priv_set; member in struct:method_context
|
H A D | librestart.c | 2477 ci->priv_set = priv_str_to_set(value, ",", NULL); 2478 if (ci->priv_set == NULL) { 2631 * For default privs, we need to keep priv_set == NULL, as 2635 ci->priv_set = priv_str_to_set(vbuf, ",", NULL); 2636 if (ci->priv_set == NULL) { 3479 * EFAULT - lpriv_set or priv_set has a bad address (setppriv) 3729 if (cip->priv_set != NULL) { 3730 if (setppriv(PRIV_SET, PRIV_INHERITABLE, cip->priv_set) != 0) { 3743 if (cip->lpriv_set == NULL && cip->priv_set != NULL) { 3757 if (cip->priv_set ! [all...] |
/illumos-gate/usr/src/lib/print/libpapi-lpd/common/ |
H A D | lpd-port.c | 189 if ((priv_set(PRIV_ON, PRIV_EFFECTIVE, 191 syslog(LOG_ERR, "lpd_port:next_job_id:priv_set fails: : %m"); 207 priv_set(PRIV_OFF, PRIV_PERMITTED, 247 if ((priv_set( 249 syslog(LOG_ERR, "priv_set fails for net_privaddr %m"); 267 priv_set(PRIV_OFF, PRIV_PERMITTED, PRIV_NET_PRIVADDR, NULL); 709 syslog(LOG_ERR, "lpd_port:setppriv:priv_set failed: %m"); 720 if (priv_set(PRIV_OFF, PRIV_EFFECTIVE, PRIV_NET_PRIVADDR, 722 syslog(LOG_ERR, "lpd_port:priv_set:priv_off failed: %m");
|
/illumos-gate/usr/src/cmd/svr4pkg/libinst/ |
H A D | dryrun.c | 111 unsigned priv_set:1; member in struct:drinfo 287 wr_OK(fp_dra, "PRIV", dr_info.priv_set, dr_info.priv); 490 dr_info.priv_set = 0; 822 if (dr_info.priv_set == 0) { 823 dr_info.priv_set = 1;
|
/illumos-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) argument 690 priv_emptyset(priv_set); 692 priv_fillset(priv_set); 701 priv_emptyset(priv_set); 702 priv_addset(priv_set, priv);
|
/illumos-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,
|
/illumos-gate/usr/src/cmd/fs.d/nfs/nfsmapid/ |
H A D | nfsmapid.c | 354 (void) priv_set(PRIV_OFF, PRIV_PERMITTED,
|
/illumos-gate/usr/src/cmd/svc/configd/ |
H A D | configd.c | 667 (void) priv_set(PRIV_OFF, PRIV_PERMITTED, PRIV_FILE_LINK_ANY, 672 (void) priv_set(PRIV_SET, PRIV_INHERITABLE, NULL);
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | privlib.c | 48 #pragma weak _priv_set = priv_set 401 * priv_set(op, set, priv_id1, priv_id2, ..., NULL) 408 priv_set(priv_op_t op, priv_ptype_t setname, ...) function
|