Searched defs:privset (Results 1 - 13 of 13) sorted by relevance

/illumos-gate/usr/src/common/smbsrv/
H A Dsmb_token.c55 smb_privset_t *privset; local
61 privset = token->tkn_privileges;
62 for (i = 0; privset->priv_cnt; i++) {
63 if (privset->priv[i].luid.lo_part == priv_id) {
64 if (privset->priv[i].attrs == SE_PRIVILEGE_ENABLED)
/illumos-gate/usr/src/lib/smbsrv/libsmb/common/
H A Dsmb_privilege.c187 smb_privset_validate(smb_privset_t *privset) argument
192 if (privset == 0) {
198 if (privset->priv_cnt != count) {
203 if (privset->priv[i].luid.hi_part != 0) {
207 if (privset->priv[i].luid.lo_part !=
222 smb_privset_init(smb_privset_t *privset) argument
227 if (privset == 0)
232 privset->priv_cnt = count;
233 privset->control = 0;
235 privset
251 smb_privset_t *privset; local
302 smb_privset_free(smb_privset_t *privset) argument
308 smb_privset_enable(smb_privset_t *privset, uint32_t id) argument
322 smb_privset_log(smb_privset_t *privset) argument
349 smb_privset_query(smb_privset_t *privset, uint32_t id) argument
[all...]
/illumos-gate/usr/src/cmd/acctadm/
H A Dmain.c69 priv_set_t *privset; local
78 if ((privset = priv_str_to_set("basic", ",", NULL)) == NULL)
81 (void) priv_addset(privset, PRIV_SYS_ACCT);
82 (void) priv_addset(privset, PRIV_FILE_DAC_WRITE);
83 (void) priv_addset(privset, PRIV_SYS_DL_CONFIG);
84 (void) priv_delset(privset, PRIV_FILE_LINK_ANY);
85 (void) priv_delset(privset, PRIV_PROC_EXEC);
86 (void) priv_delset(privset, PRIV_PROC_FORK);
87 (void) priv_delset(privset, PRIV_PROC_INFO);
88 (void) priv_delset(privset, PRIV_PROC_SESSIO
[all...]
/illumos-gate/usr/src/cmd/hotplugd/
H A Dhotplugd.c191 priv_set_t *privset; local
194 if ((privset = priv_allocset()) != NULL) {
195 if (getppriv(PRIV_EFFECTIVE, privset) == 0) {
196 rv = priv_isfullset(privset);
198 priv_freeset(privset);
/illumos-gate/usr/src/lib/libinstzones/common/
H A Dzones_exec.c390 priv_set_t *privset; local
448 if ((privset = priv_allocset()) == NULL) {
454 if (getppriv(PRIV_EFFECTIVE, privset) != 0) {
457 priv_freeset(privset);
461 if (priv_isfullset(privset) == B_FALSE) {
463 priv_freeset(privset);
466 priv_freeset(privset);
/illumos-gate/usr/src/cmd/dlmgmtd/
H A Ddlmgmt_main.c410 priv_set_t *privset; local
413 if ((privset = priv_str_to_set("zone", ",", NULL)) == NULL)
415 if (setppriv(PRIV_SET, PRIV_EFFECTIVE, privset) == -1)
417 priv_freeset(privset);
/illumos-gate/usr/src/test/os-tests/tests/spoof-ras/
H A Dspoof-ras.c597 priv_set_t *privset = priv_allocset(); local
599 if (privset == NULL) {
604 if (getppriv(PRIV_EFFECTIVE, privset) != 0) {
608 if (!priv_ismember(privset, PRIV_DTRACE_KERNEL)) {
613 if (!priv_ismember(privset, PRIV_SYS_NET_CONFIG)) {
618 if (!priv_ismember(privset, PRIV_NET_ICMPACCESS)) {
623 priv_freeset(privset);
/illumos-gate/usr/src/cmd/vt/
H A Dvtdaemon.c1207 priv_set_t *privset; local
1216 if ((privset = priv_allocset()) == NULL) {
1221 if (getppriv(PRIV_EFFECTIVE, privset) != 0) {
1223 priv_freeset(privset);
1227 if (priv_isfullset(privset) == B_FALSE) {
1230 priv_freeset(privset);
1233 priv_freeset(privset);
/illumos-gate/usr/src/cmd/zlogin/
H A Dzlogin.c201 * later that we couldn't allocate the privset.
1741 priv_set_t *privset; local
1897 if ((privset = priv_allocset()) == NULL) {
1902 if (getppriv(PRIV_EFFECTIVE, privset) != 0) {
1904 priv_freeset(privset);
1908 if (priv_isfullset(privset) == B_FALSE) {
1911 priv_freeset(privset);
1914 priv_freeset(privset);
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/inetd/
H A Dinetd.c2742 priv_set_t *privset; local
2786 privset = mthd_ctxt->priv_set;
2787 if (privset == NULL) {
2788 privset = priv_allocset();
2789 if (privset != NULL &&
2790 getppriv(PRIV_EFFECTIVE, privset) != 0) {
2791 priv_freeset(privset);
2792 privset = NULL;
2796 ae->adt_inetd_connect.privileges = privset;
2801 if (privset !
[all...]
/illumos-gate/usr/src/cmd/zoneadmd/
H A Dzoneadmd.c1831 priv_set_t *privset; local
1996 if ((privset = priv_allocset()) == NULL) {
2001 if (getppriv(PRIV_EFFECTIVE, privset) != 0) {
2003 priv_freeset(privset);
2007 if (priv_isfullset(privset) == B_FALSE) {
2010 priv_freeset(privset);
2013 priv_freeset(privset);
/illumos-gate/usr/src/cmd/zoneadm/
H A Dzoneadm.c1621 priv_set_t *privset; local
1648 if ((privset = priv_allocset()) == NULL) {
1653 if (getppriv(PRIV_EFFECTIVE, privset) != 0) {
1655 priv_freeset(privset);
1659 if (priv_isfullset(privset) == B_FALSE) {
1662 priv_freeset(privset);
1665 priv_freeset(privset);
5375 priv_set_t *privset; local
5387 if ((privset = priv_allocset()) == NULL) {
5392 if (getppriv(PRIV_EFFECTIVE, privset) !
[all...]
/illumos-gate/usr/src/cmd/cpio/
H A Dcpio.c1237 priv_set_t *privset; local
1394 if ((privset = priv_allocset()) == NULL) {
1396 } else if (getppriv(PRIV_EFFECTIVE, privset) != 0) {
1402 privset) == B_TRUE);
1408 if (privset != NULL) {
1409 priv_freeset(privset);

Completed in 118 milliseconds