Home
last modified time | relevance | path

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

12

/illumos-gate/usr/src/lib/libtsol/common/
H A Dprivlib.c43 priv_set_t *priv_set; in set_effective_priv() local
49 PRIV_EMPTY(priv_set); in set_effective_priv()
63 priv_freeset(priv_set); in set_effective_priv()
74 priv_freeset(priv_set); in set_effective_priv()
94 priv_set_t *priv_set; in set_inheritable_priv() local
101 PRIV_EMPTY(priv_set); in set_inheritable_priv()
113 priv_freeset(priv_set); in set_inheritable_priv()
124 priv_freeset(priv_set); in set_inheritable_priv()
144 priv_set_t *priv_set; in set_permitted_priv() local
151 PRIV_EMPTY(priv_set); in set_permitted_priv()
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/lib/nwamd/
H A Dutil.c84 priv_set_t *priv_set; in nwamd_escalate() local
87 if (priv_set == NULL) 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
115 if (priv_set == NULL || allpriv_set == NULL) in nwamd_deescalate()
138 priv_intersect(allpriv_set, priv_set); in nwamd_deescalate()
142 priv_freeset(priv_set); in nwamd_deescalate()
151 priv_freeset(priv_set); in nwamd_deescalate()
160 priv_freeset(priv_set); in nwamd_deescalate()
[all …]
/illumos-gate/usr/src/cmd/acctadm/
H A Dmain.c186 (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()
364 (void) priv_set(PRIV_ON, PRIV_EFFECTIVE, in main()
437 (void) priv_set(PRIV_ON, PRIV_EFFECTIVE, in main()
443 (void) priv_set(PRIV_OFF, PRIV_EFFECTIVE, in main()
462 (void) priv_set(PRIV_ON, PRIV_EFFECTIVE, in main()
466 (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()
/illumos-gate/usr/src/cmd/ndmpd/tlm/
H A Dtlm_restore_writer.c2026 priv_set_t *priv_set; in ndmp_set_eprivs_least() local
2028 if ((priv_set = priv_allocset()) == NULL) { in ndmp_set_eprivs_least()
2033 priv_basicset(priv_set); in ndmp_set_eprivs_least()
2035 (void) priv_addset(priv_set, PRIV_PROC_AUDIT); in ndmp_set_eprivs_least()
2047 (void) priv_addset(priv_set, PRIV_SYS_MOUNT); in ndmp_set_eprivs_least()
2052 priv_freeset(priv_set); in ndmp_set_eprivs_least()
2055 priv_freeset(priv_set); in ndmp_set_eprivs_least()
2062 priv_set_t *priv_set; in ndmp_set_eprivs_all() local
2064 if ((priv_set = priv_allocset()) == NULL) { in ndmp_set_eprivs_all()
2069 priv_fillset(priv_set); in ndmp_set_eprivs_all()
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/
H A Din.tftpd.c203 (void) priv_set(PRIV_OFF, PRIV_ALLSETS, PRIV_PROC_EXEC, in main()
207 (void) priv_set(PRIV_OFF, PRIV_EFFECTIVE, PRIV_PROC_CHROOT, in main()
274 (void) priv_set(PRIV_ON, in main()
281 (void) priv_set(PRIV_OFF, PRIV_EFFECTIVE, PRIV_NET_PRIVADDR, in main()
299 (void) priv_set(PRIV_ON, PRIV_EFFECTIVE, PRIV_PROC_FORK, NULL); in main()
304 (void) priv_set(PRIV_OFF, PRIV_EFFECTIVE, PRIV_PROC_FORK, NULL); in main()
811 (void) priv_set(PRIV_ON, PRIV_EFFECTIVE, PRIV_PROC_FORK, NULL); in tftp()
815 (void) priv_set(PRIV_OFF, PRIV_EFFECTIVE, PRIV_PROC_FORK, NULL); in tftp()
831 (void) priv_set(PRIV_ON, PRIV_EFFECTIVE, PRIV_PROC_CHROOT, in tftp()
843 (void) priv_set(PRIV_OFF, PRIV_EFFECTIVE, PRIV_PROC_CHROOT, in tftp()
[all …]
/illumos-gate/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()
/illumos-gate/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()
/illumos-gate/usr/src/lib/smbsrv/libmlsvc/common/
H A Dsmb_share.c428 (void) priv_set(PRIV_ON, PRIV_EFFECTIVE, in smb_shr_add()
440 (void) priv_set(PRIV_OFF, PRIV_EFFECTIVE, in smb_shr_add()
490 (void) priv_set(PRIV_ON, PRIV_EFFECTIVE, in smb_shr_add()
498 (void) priv_set(PRIV_OFF, PRIV_EFFECTIVE, in smb_shr_add()
562 (void) priv_set(PRIV_ON, PRIV_EFFECTIVE, in smb_shr_remove()
570 (void) priv_set(PRIV_OFF, PRIV_EFFECTIVE, in smb_shr_remove()
644 (void) priv_set(PRIV_ON, PRIV_EFFECTIVE, in smb_shr_rename()
652 (void) priv_set(PRIV_OFF, PRIV_EFFECTIVE, in smb_shr_rename()
830 (void) priv_set(PRIV_ON, PRIV_EFFECTIVE, in smb_shr_modify()
839 (void) priv_set(PRIV_OFF, PRIV_EFFECTIVE, in smb_shr_modify()
[all …]
/illumos-gate/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()
/illumos-gate/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()
/illumos-gate/usr/src/uts/common/c2/
H A Daudit.h495 struct priv_set;
593 void audit_priv(int, const struct priv_set *, int);
594 void audit_setppriv(int, int, const struct priv_set *, const cred_t *);
/illumos-gate/usr/src/uts/common/sys/
H A Dpolicy.h72 struct priv_set;
75 int secpolicy_require_privs(const cred_t *, const struct priv_set *);
H A Dpriv_impl.h42 struct priv_set { struct
H A Dpriv.h39 typedef struct priv_set priv_set_t;
H A Dzone.h207 const struct priv_set *zone_privs;
527 struct priv_set *zone_privset; /* limit set for zone */
/illumos-gate/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, ...);
/illumos-gate/usr/src/lib/librestart/common/
H A Dlibrestart.h279 priv_set_t *lpriv_set, *priv_set; member
H A Dlibrestart.c2477 ci->priv_set = priv_str_to_set(value, ",", NULL); in get_profile()
2478 if (ci->priv_set == NULL) { in get_profile()
2635 ci->priv_set = priv_str_to_set(vbuf, ",", NULL); in get_ids()
2636 if (ci->priv_set == NULL) { in get_ids()
3729 if (cip->priv_set != NULL) { in restarter_set_method_context()
3730 if (setppriv(PRIV_SET, PRIV_INHERITABLE, cip->priv_set) != 0) { in restarter_set_method_context()
3743 if (cip->lpriv_set == NULL && cip->priv_set != NULL) { in restarter_set_method_context()
3757 if (cip->priv_set != NULL) { in restarter_set_method_context()
3758 if (setppriv(PRIV_SET, PRIV_PERMITTED, cip->priv_set) != 0) { in restarter_set_method_context()
3795 if (mcp->priv_set != NULL) in restarter_free_method_context()
[all …]
/illumos-gate/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()
/illumos-gate/usr/src/cmd/fs.d/nfs/nfsmapid/
H A Dnfsmapid.c352 (void) priv_set(PRIV_OFF, PRIV_PERMITTED, in main()
/illumos-gate/usr/src/cmd/svc/configd/
H A Dconfigd.c668 (void) priv_set(PRIV_OFF, PRIV_PERMITTED, PRIV_FILE_LINK_ANY, in main()
673 (void) priv_set(PRIV_SET, PRIV_INHERITABLE, NULL); in main()
/illumos-gate/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