/titanic_41/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 …]
|
/titanic_41/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 …]
|
/titanic_41/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()
|
/titanic_41/usr/src/cmd/ndmpd/tlm/ |
H A D | tlm_restore_writer.c | 2025 priv_set_t *priv_set; in ndmp_set_eprivs_least() local 2027 if ((priv_set = priv_allocset()) == NULL) { in ndmp_set_eprivs_least() 2032 priv_basicset(priv_set); in ndmp_set_eprivs_least() 2034 (void) priv_addset(priv_set, PRIV_PROC_AUDIT); in ndmp_set_eprivs_least() 2035 (void) priv_addset(priv_set, PRIV_PROC_SETID); in ndmp_set_eprivs_least() 2036 (void) priv_addset(priv_set, PRIV_PROC_OWNER); in ndmp_set_eprivs_least() 2037 (void) priv_addset(priv_set, PRIV_FILE_CHOWN); in ndmp_set_eprivs_least() 2038 (void) priv_addset(priv_set, PRIV_FILE_CHOWN_SELF); in ndmp_set_eprivs_least() 2039 (void) priv_addset(priv_set, PRIV_FILE_DAC_READ); in ndmp_set_eprivs_least() 2040 (void) priv_addset(priv_set, PRIV_FILE_DAC_SEARCH); in ndmp_set_eprivs_least() [all …]
|
/titanic_41/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 …]
|
/titanic_41/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()
|
/titanic_41/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()
|
/titanic_41/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()
|
/titanic_41/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()
|
/titanic_41/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 *);
|
/titanic_41/usr/src/uts/common/sys/ |
H A D | policy.h | 71 struct priv_set; 74 int secpolicy_require_privs(const cred_t *, const struct priv_set *);
|
H A D | priv_impl.h | 44 struct priv_set { struct
|
H A D | zone.h | 192 const struct priv_set *zone_privs; 503 struct priv_set *zone_privset; /* limit set for zone */
|
H A D | priv.h | 39 typedef struct priv_set priv_set_t;
|
/titanic_41/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 | 53 extern int priv_set(priv_op_t, priv_ptype_t, ...);
|
/titanic_41/usr/src/lib/libproject/common/ |
H A D | llib-lproject | 36 typedef struct priv_set priv_set_t;
|
/titanic_41/usr/src/lib/librestart/common/ |
H A D | librestart.c | 2476 ci->priv_set = priv_str_to_set(value, ",", NULL); in get_profile() 2477 if (ci->priv_set == NULL) { in get_profile() 2634 ci->priv_set = priv_str_to_set(vbuf, ",", NULL); in get_ids() 2635 if (ci->priv_set == NULL) { in get_ids() 3617 if (cip->priv_set != NULL) { in restarter_set_method_context() 3618 if (setppriv(PRIV_SET, PRIV_INHERITABLE, cip->priv_set) != 0) { in restarter_set_method_context() 3631 if (cip->lpriv_set == NULL && cip->priv_set != NULL) { in restarter_set_method_context() 3645 if (cip->priv_set != NULL) { in restarter_set_method_context() 3646 if (setppriv(PRIV_SET, PRIV_PERMITTED, cip->priv_set) != 0) { in restarter_set_method_context() 3683 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
|
/titanic_41/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()
|
/titanic_41/usr/src/cmd/fs.d/nfs/nfsmapid/ |
H A D | nfsmapid.c | 354 (void) priv_set(PRIV_OFF, PRIV_PERMITTED, in main()
|
/titanic_41/usr/src/cmd/svc/configd/ |
H A D | configd.c | 667 (void) priv_set(PRIV_OFF, PRIV_PERMITTED, PRIV_FILE_LINK_ANY, in main() 672 (void) priv_set(PRIV_SET, PRIV_INHERITABLE, NULL); in main()
|
/titanic_41/usr/src/lib/libc/port/gen/ |
H A D | privlib.c | 48 #pragma weak _priv_set = priv_set 408 priv_set(priv_op_t op, priv_ptype_t setname, ...) in priv_set() function
|