Got Segmentation fault when use avc_context_to_sid() funtion!! can anyone help me? (there is some mistakes in my last emeil ,sorry! )

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

[Index of Archives]     [Selinux Refpolicy]     [Linux SGX]     [Fedora Users]     [Fedora Desktop]     [Yosemite Photos]     [Yosemite Camping]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux