/* Returns a pointer to the appropraite Smack label if there is one, otherwise a pointer to the invalid Smack label.  */
char* smack_from_secid(const u32 secid)
/* Returns a pointer to the appropraite Smack label if there is one, otherwise a pointer to the invalid Smack label.  */
char* smack_from_secid(const u32 secid)
{
	struct smack_known *skp;
	rcu_read_lock();
	list_for_each_entry_rcu(skp, &smack_known_list, list) {
		if (skp->smk_secid == secid) {
			rcu_read_unlock();
			return skp->smk_known;
		}
	}
	rcu_read_unlock();
	return smack_known_invalid.smk_known;
}