Lines Matching refs:targprivs
860 priv_set_t *curprivs, *targprivs; in pcidb_drop_privs() local
871 if ((targprivs = priv_allocset()) == NULL) { in pcidb_drop_privs()
883 priv_basicset(targprivs); in pcidb_drop_privs()
884 VERIFY0(priv_delset(targprivs, PRIV_FILE_LINK_ANY)); in pcidb_drop_privs()
885 VERIFY0(priv_delset(targprivs, PRIV_PROC_INFO)); in pcidb_drop_privs()
886 VERIFY0(priv_delset(targprivs, PRIV_PROC_SESSION)); in pcidb_drop_privs()
887 VERIFY0(priv_delset(targprivs, PRIV_PROC_FORK)); in pcidb_drop_privs()
888 VERIFY0(priv_delset(targprivs, PRIV_NET_ACCESS)); in pcidb_drop_privs()
889 VERIFY0(priv_delset(targprivs, PRIV_FILE_WRITE)); in pcidb_drop_privs()
890 VERIFY0(priv_delset(targprivs, PRIV_PROC_EXEC)); in pcidb_drop_privs()
891 VERIFY0(priv_addset(targprivs, PRIV_FILE_DAC_READ)); in pcidb_drop_privs()
893 priv_intersect(curprivs, targprivs); in pcidb_drop_privs()
895 if (setppriv(PRIV_SET, PRIV_EFFECTIVE, targprivs) != 0) { in pcidb_drop_privs()
900 priv_freeset(targprivs); in pcidb_drop_privs()