Received: from jazzhorn.ncsc.mil (mummy.ncsc.mil [144.51.88.129]) by tycho.ncsc.mil (8.12.8/8.12.8) with ESMTP id j6MEMGgA005677 for ; Fri, 22 Jul 2005 10:22:16 -0400 (EDT) Received: from mx1.redhat.com (jazzhorn.ncsc.mil [144.51.5.9]) by jazzhorn.ncsc.mil (8.12.10/8.12.10) with ESMTP id j6MEGgKk028744 for ; Fri, 22 Jul 2005 14:16:43 GMT Subject: Re: [ libsepol 0/6] Context reorganization From: Ivan Gyurdiev Reply-To: gyurdiev@redhat.com To: Joshua Brindle Cc: selinux@tycho.nsa.gov In-Reply-To: <42E0FE98.20307@tresys.com> References: <1121967118.9844.17.camel@celtics.boston.redhat.com> <42DFE2A7.9020200@tresys.com> <1121969017.9844.50.camel@celtics.boston.redhat.com> <42DFE4CA.1070707@tresys.com> <1121969663.9844.63.camel@celtics.boston.redhat.com> <1122040159.24847.10.camel@celtics.boston.redhat.com> <42E0FC94.2060501@tresys.com> <1122041079.24847.15.camel@celtics.boston.redhat.com> <42E0FE98.20307@tresys.com> Content-Type: text/plain Date: Fri, 22 Jul 2005 10:15:02 -0400 Message-Id: <1122041703.24847.20.camel@celtics.boston.redhat.com> Mime-Version: 1.0 Sender: owner-selinux@tycho.nsa.gov List-Id: selinux@tycho.nsa.gov > you have to index the policy if you want to validate contexts, it's a > necessity that won't go away I maintain the reverse tables properly - I just don't call the functions you expect me to, and neither does sepol_genusers_policydb. It looks like it's necessary to add: /* This pre-expands the roles and users for context validity checking */ if (hashtab_map(p->p_roles.table, policydb_role_cache, p)) return -1; to policydb_reindex_users(). -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with the words "unsubscribe selinux" without quotes as the message.