severity 465287 important
thanks
Hi,
This is the offending line:
result = (char *)selinux_default_type_path();
Which results in:
Function `selinux_default_type_path' implicitly converted to pointer at
selinuxswig_wrap.c:7457
However, the function is defined as:
const char *selinux_default_type_path()
{
return get_path(DEFAULT_TYPE);
}
So the actual definition does return a pointer; and the cast
merely casts away the const. Now, this is still a bug, since there is
no prototype visible, but people seem to have gone to some lengths to
hide the prototype:
./get_default_type_internal.h:4:hidden_proto(selinux_default_type_path)
./selinux_config.c:231:const char *selinux_default_type_path()
./selinux_config.c:236:hidden_def(selinux_default_type_path)
So I'll ask upstream before mucking with this.
manoj
--
"Eat, drink, and be merry, for tomorrow you may work."
Manoj Srivastava <[EMAIL PROTECTED]> <http://www.golden-gryphon.com/>
1024D/BF24424C print 4966 F272 D093 B493 410B 924B 21BA DABB BF24 424C
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]