根据documentation,“成功则返回零”,但上述函数均未返回0。它们都返回const char *
或void。有人可以说明在哪种情况下将返回0吗?
最佳答案
在selinux官方邮件列表上问了这个问题之后,这是一个错误,他们将予以解决。 context_new实际上分配了内存块
关于linux - selinux context_new返回值,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/12150684/