From: <ssm...@us...> - 2007-11-05 19:09:12
|
Revision: 2674 http://selinux.svn.sourceforge.net/selinux/?rev=2674&view=rev Author: ssmalley Date: 2007-11-05 11:09:04 -0800 (Mon, 05 Nov 2007) Log Message: ----------- Don't allow self aliasing of types, not that there is anything wrong with that. Modified Paths: -------------- trunk/libsepol/src/link.c Modified: trunk/libsepol/src/link.c =================================================================== --- trunk/libsepol/src/link.c 2007-11-05 19:08:25 UTC (rev 2673) +++ trunk/libsepol/src/link.c 2007-11-05 19:09:04 UTC (rev 2674) @@ -696,6 +696,12 @@ return -1; } + if (!strcmp(id, target_id)) { + ERR(state->handle, "%s: Self aliasing of %s.", + state->cur_mod_name, id); + return -1; + } + base_type = hashtab_search(state->base->p_types.table, id); if (base_type == NULL) { if (state->verbose) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |