Home
last modified time | relevance | path

Searched refs:priv_set (Results 1 – 25 of 35) sorted by relevance

12

/titanic_44/usr/src/lib/libtsol/common/
H A Dprivlib.c45 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_44/usr/src/cmd/cmd-inet/lib/nwamd/
H A Dutil.c84 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_44/usr/src/cmd/acctadm/
H A Dmain.c108 (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 Dutils.c150 (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 Daconf.c189 (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_44/usr/src/cmd/ndmpd/tlm/
H A Dtlm_restore_writer.c2025 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_44/usr/src/cmd/cmd-inet/usr.sbin/
H A Din.tftpd.c202 (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_44/usr/src/lib/libbsm/common/
H A Daudit_ftpd.c259 (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_44/usr/src/uts/common/os/
H A Ddevpolicy.c687 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_44/usr/src/lib/print/libpapi-lpd/common/
H A Dlpd-port.c189 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_44/usr/src/cmd/svr4pkg/libinst/
H A Ddryrun.c111 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_44/usr/src/uts/common/c2/
H A Daudit.h493 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_44/usr/src/uts/common/sys/
H A Dpolicy.h71 struct priv_set;
74 int secpolicy_require_privs(const cred_t *, const struct priv_set *);
H A Dpriv_impl.h44 struct priv_set { struct
H A Dzone.h192 const struct priv_set *zone_privs;
503 struct priv_set *zone_privset; /* limit set for zone */
H A Dpriv.h39 typedef struct priv_set priv_set_t;
/titanic_44/usr/src/head/
H A Dzone.h58 const struct priv_set *, const char *, size_t, const char *, size_t, int *,
H A Dpriv.h53 extern int priv_set(priv_op_t, priv_ptype_t, ...);
/titanic_44/usr/src/lib/libproject/common/
H A Dllib-lproject36 typedef struct priv_set priv_set_t;
/titanic_44/usr/src/lib/librestart/common/
H A Dlibrestart.c2476 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 Dlibrestart.h276 priv_set_t *lpriv_set, *priv_set; member
/titanic_44/usr/src/lib/libc/port/sys/
H A Dzone.c40 zone_create(const char *name, const char *root, const struct priv_set *privs, in zone_create()
/titanic_44/usr/src/cmd/fs.d/nfs/nfsmapid/
H A Dnfsmapid.c354 (void) priv_set(PRIV_OFF, PRIV_PERMITTED, in main()
/titanic_44/usr/src/cmd/svc/configd/
H A Dconfigd.c667 (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_44/usr/src/lib/libc/port/gen/
H A Dprivlib.c48 #pragma weak _priv_set = priv_set
408 priv_set(priv_op_t op, priv_ptype_t setname, ...) in priv_set() function

12