This is the current libsepol-patch after the update.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I will leave it to Eric to explain the patch. -----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/
iEYEARECAAYFAk3ABp0ACgkQrlYvE4MpobMVSACfVM7bandSo7Wgoy/KpTJX7PNQ EQgAoJ0a8U3sZ6X/EeM1XmfM6DQN26+z
=meWO
-----END PGP SIGNATURE-----
libsepol/src/expand.c +8 -5
@@ -1181,23 +1181,26 @@ static int copy_role_trans(expand_state_t * state, role_trans_rule_t * rules) cur_trans = state->out->role_tr;while (cur_trans) { +unsigned int mapped_role; + + mapped_role = state->rolemap[cur->new_role -1 ]; +if ((cur_trans->role == i +1 ) && (cur_trans->type == j +1 ) && (cur_trans->tclass == k +1 )) { -if (cur_trans-> - new_role == - cur->new_role) { +if (cur_trans->new_role == mapped_role) {break ; }else {ERR (state->handle, -"Conflicting role trans rule %s %s : %s %s" , +"Conflicting role trans rule %s %s : %s { %s vs %s }" , state->out->p_role_val_to_name[i], state->out->p_type_val_to_name[j], state->out->p_class_val_to_name[k], - state->out->p_role_val_to_name[cur->new_role -1 ]); + state->out->p_role_val_to_name[mapped_role], + state->out->p_role_val_to_name[cur_trans->new_role -1 ]);return -1 ; } }
libsepol/src/policydb.c +1 -0
@@ -2280,6 +2280,7 @@ int filename_trans_read(filename_trans_t **t, struct policy_file *fp) lft->next = ft; else *t = ft; + lft = ft; rc =next_entry (buf, fp,sizeof (uint32_t ));if (rc <0 )return -1 ;
Quoted 1 line · Daniel J Walsh
I will leave it to Eric to explain the patch.
I'll send patches this afternoon with good changelogs and everything.
-Eric
--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.