Home
last modified time | relevance | path

Searched refs:privset (Results 1 – 14 of 14) sorted by relevance

/titanic_41/usr/src/lib/smbsrv/libsmb/common/
H A Dsmb_privilege.c187 smb_privset_validate(smb_privset_t *privset) in smb_privset_validate() argument
192 if (privset == 0) { in smb_privset_validate()
198 if (privset->priv_cnt != count) { in smb_privset_validate()
203 if (privset->priv[i].luid.hi_part != 0) { in smb_privset_validate()
207 if (privset->priv[i].luid.lo_part != in smb_privset_validate()
222 smb_privset_init(smb_privset_t *privset) in smb_privset_init() argument
227 if (privset == 0) in smb_privset_init()
232 privset->priv_cnt = count; in smb_privset_init()
233 privset->control = 0; in smb_privset_init()
235 privset->priv[i].luid.hi_part = 0; in smb_privset_init()
[all …]
/titanic_41/usr/src/cmd/acctadm/
H A Dmain.c69 priv_set_t *privset; in setup_privs() local
78 if ((privset = priv_str_to_set("basic", ",", NULL)) == NULL) in setup_privs()
81 (void) priv_addset(privset, PRIV_SYS_ACCT); in setup_privs()
82 (void) priv_addset(privset, PRIV_FILE_DAC_WRITE); in setup_privs()
83 (void) priv_addset(privset, PRIV_SYS_DL_CONFIG); in setup_privs()
84 (void) priv_delset(privset, PRIV_FILE_LINK_ANY); in setup_privs()
85 (void) priv_delset(privset, PRIV_PROC_EXEC); in setup_privs()
86 (void) priv_delset(privset, PRIV_PROC_FORK); in setup_privs()
87 (void) priv_delset(privset, PRIV_PROC_INFO); in setup_privs()
88 (void) priv_delset(privset, PRIV_PROC_SESSION); in setup_privs()
[all …]
/titanic_41/usr/src/uts/common/smbsrv/
H A Dsmb_privilege.h179 void smb_privset_init(smb_privset_t *privset);
180 void smb_privset_free(smb_privset_t *privset);
183 void smb_privset_enable(smb_privset_t *privset, uint32_t id);
184 int smb_privset_query(smb_privset_t *privset, uint32_t id);
185 void smb_privset_log(smb_privset_t *privset);
/titanic_41/usr/src/common/smbsrv/
H A Dsmb_token.c55 smb_privset_t *privset; in smb_token_query_privilege() local
61 privset = token->tkn_privileges; in smb_token_query_privilege()
62 for (i = 0; privset->priv_cnt; i++) { in smb_token_query_privilege()
63 if (privset->priv[i].luid.lo_part == priv_id) { in smb_token_query_privilege()
64 if (privset->priv[i].attrs == SE_PRIVILEGE_ENABLED) in smb_token_query_privilege()
/titanic_41/usr/src/cmd/hotplugd/
H A Dhotplugd.c191 priv_set_t *privset; in check_privileges() local
194 if ((privset = priv_allocset()) != NULL) { in check_privileges()
195 if (getppriv(PRIV_EFFECTIVE, privset) == 0) { in check_privileges()
196 rv = priv_isfullset(privset); in check_privileges()
198 priv_freeset(privset); in check_privileges()
/titanic_41/usr/src/lib/libinstzones/common/
H A Dzones_exec.c390 priv_set_t *privset; in _zexec() local
448 if ((privset = priv_allocset()) == NULL) { in _zexec()
454 if (getppriv(PRIV_EFFECTIVE, privset) != 0) { in _zexec()
457 priv_freeset(privset); in _zexec()
461 if (priv_isfullset(privset) == B_FALSE) { in _zexec()
463 priv_freeset(privset); in _zexec()
466 priv_freeset(privset); in _zexec()
/titanic_41/usr/src/cmd/dlmgmtd/
H A Ddlmgmt_main.c410 priv_set_t *privset; in dlmgmt_elevate_privileges() local
413 if ((privset = priv_str_to_set("zone", ",", NULL)) == NULL) in dlmgmt_elevate_privileges()
415 if (setppriv(PRIV_SET, PRIV_EFFECTIVE, privset) == -1) in dlmgmt_elevate_privileges()
417 priv_freeset(privset); in dlmgmt_elevate_privileges()
/titanic_41/usr/src/cmd/vt/
H A Dvtdaemon.c1207 priv_set_t *privset; in main() local
1216 if ((privset = priv_allocset()) == NULL) { in main()
1221 if (getppriv(PRIV_EFFECTIVE, privset) != 0) { in main()
1223 priv_freeset(privset); in main()
1227 if (priv_isfullset(privset) == B_FALSE) { in main()
1230 priv_freeset(privset); in main()
1233 priv_freeset(privset); in main()
/titanic_41/usr/src/cmd/zlogin/
H A Dzlogin.c1741 priv_set_t *privset; in main() local
1897 if ((privset = priv_allocset()) == NULL) { in main()
1902 if (getppriv(PRIV_EFFECTIVE, privset) != 0) { in main()
1904 priv_freeset(privset); in main()
1908 if (priv_isfullset(privset) == B_FALSE) { in main()
1911 priv_freeset(privset); in main()
1914 priv_freeset(privset); in main()
/titanic_41/usr/src/cmd/zoneadmd/
H A Dzoneadmd.c1831 priv_set_t *privset; in main() local
1996 if ((privset = priv_allocset()) == NULL) { in main()
2001 if (getppriv(PRIV_EFFECTIVE, privset) != 0) { in main()
2003 priv_freeset(privset); in main()
2007 if (priv_isfullset(privset) == B_FALSE) { in main()
2010 priv_freeset(privset); in main()
2013 priv_freeset(privset); in main()
/titanic_41/usr/src/cmd/cmd-inet/usr.lib/inetd/
H A Dinetd.c2742 priv_set_t *privset; in exec_method() local
2786 privset = mthd_ctxt->priv_set; in exec_method()
2787 if (privset == NULL) { in exec_method()
2788 privset = priv_allocset(); in exec_method()
2789 if (privset != NULL && in exec_method()
2790 getppriv(PRIV_EFFECTIVE, privset) != 0) { in exec_method()
2791 priv_freeset(privset); in exec_method()
2792 privset = NULL; in exec_method()
2796 ae->adt_inetd_connect.privileges = privset; in exec_method()
2801 if (privset != NULL && mthd_ctxt->priv_set == NULL) in exec_method()
[all …]
/titanic_41/usr/src/cmd/zoneadm/
H A Dzoneadm.c1620 priv_set_t *privset; in sanity_check() local
1647 if ((privset = priv_allocset()) == NULL) { in sanity_check()
1652 if (getppriv(PRIV_EFFECTIVE, privset) != 0) { in sanity_check()
1654 priv_freeset(privset); in sanity_check()
1658 if (priv_isfullset(privset) == B_FALSE) { in sanity_check()
1661 priv_freeset(privset); in sanity_check()
1664 priv_freeset(privset); in sanity_check()
5373 priv_set_t *privset; in apply_func() local
5385 if ((privset = priv_allocset()) == NULL) { in apply_func()
5390 if (getppriv(PRIV_EFFECTIVE, privset) != 0) { in apply_func()
[all …]
/titanic_41/usr/src/cmd/cpio/
H A Dcpio.c1237 priv_set_t *privset; in ckopts() local
1394 if ((privset = priv_allocset()) == NULL) { in ckopts()
1396 } else if (getppriv(PRIV_EFFECTIVE, privset) != 0) { in ckopts()
1402 privset) == B_TRUE); in ckopts()
1408 if (privset != NULL) { in ckopts()
1409 priv_freeset(privset); in ckopts()
/titanic_41/usr/src/cmd/auditrecord/
H A Daudit_record_attr.txt57 token=privset:privilege
1754 comment=privileges before privset:
1755 comment=privileges after privset