Home
last modified time | relevance | path

Searched refs:priv_set (Results 1 – 25 of 35) 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
48 priv_set = priv_allocset(); in set_effective_priv()
49 PRIV_EMPTY(priv_set); in set_effective_priv()
63 priv_freeset(priv_set); in set_effective_priv()
66 (void) priv_addset(priv_set, priv_name); in set_effective_priv()
73 status = setppriv(op, PRIV_EFFECTIVE, 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
99 priv_set = priv_allocset(); in set_inheritable_priv()
101 PRIV_EMPTY(priv_set); in set_inheritable_priv()
[all …]
/illumos-gate/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 …]
/illumos-gate/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 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()
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()
/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()
2036 (void) priv_addset(priv_set, PRIV_PROC_SETID); in ndmp_set_eprivs_least()
2037 (void) priv_addset(priv_set, PRIV_PROC_OWNER); in ndmp_set_eprivs_least()
2038 (void) priv_addset(priv_set, PRIV_FILE_CHOWN); in ndmp_set_eprivs_least()
2039 (void) priv_addset(priv_set, PRIV_FILE_CHOWN_SELF); in ndmp_set_eprivs_least()
2040 (void) priv_addset(priv_set, PRIV_FILE_DAC_READ); in ndmp_set_eprivs_least()
2041 (void) priv_addset(priv_set, PRIV_FILE_DAC_SEARCH); in ndmp_set_eprivs_least()
[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()
818 (void) priv_set(PRIV_OFF, PRIV_EFFECTIVE, PRIV_PROC_FORK, NULL); in tftp()
821 (void) priv_set(PRIV_OFF, PRIV_EFFECTIVE, PRIV_PROC_FORK, NULL); 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 Dzone.h207 const struct priv_set *zone_privs;
527 struct priv_set *zone_privset; /* limit set for zone */
H A Dpriv.h39 typedef struct priv_set priv_set_t;
/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.c2478 ci->priv_set = priv_str_to_set(value, ",", NULL); in get_profile()
2479 if (ci->priv_set == NULL) { in get_profile()
2636 ci->priv_set = priv_str_to_set(vbuf, ",", NULL); in get_ids()
2637 if (ci->priv_set == NULL) { in get_ids()
3751 if (cip->priv_set != NULL) { in restarter_set_method_context()
3752 if (setppriv(PRIV_SET, PRIV_INHERITABLE, cip->priv_set) != 0) { in restarter_set_method_context()
3765 if (cip->lpriv_set == NULL && cip->priv_set != NULL) { in restarter_set_method_context()
3779 if (cip->priv_set != NULL) { in restarter_set_method_context()
3780 if (setppriv(PRIV_SET, PRIV_PERMITTED, cip->priv_set) != 0) { in restarter_set_method_context()
3817 if (mcp->priv_set != NULL) in restarter_free_method_context()
[all …]
H A Dlibrestart.h284 priv_set_t *lpriv_set, *priv_set; member
/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/cmd/fs.d/nfs/nfsmapid/
H A Dnfsmapid.c352 (void) priv_set(PRIV_OFF, PRIV_PERMITTED, in main()
/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/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