Hello,everyone! I am learning how to use the selinux userspace apps recent.And I got Segmentation fault when I use the avc_context_to_sid() funtion, dose anyone know how to resolve this problem? Thank you very much! The following is my testing code with avc_context_to_sid() funtion #include <selinux/selinux.h> #include <selinux/avc.h> #include <stdlib.h> #include <stdio.h> int main() { const char *scon = "system_u:object_r:unconfined_t"; security_id_t sid; avc_context_to_sid(scon, &sid); return 0; } Sylar |
_______________________________________________ Selinux mailing list Selinux@xxxxxxxxxxxxx To unsubscribe, send email to Selinux-leave@xxxxxxxxxxxxx. To get help, send an email containing "help" to Selinux-request@xxxxxxxxxxxxx.