On Fri, 2012-08-24 at 19:35 -0700, William Roberts wrote: > I tried getting mls prefix by doing: > > sepol_context_create(pol.handle,&pol.con); > char *mls = sepol_context_get_mls(pol.con); > > but mls is NULL. Not really sure if I am creating the handle and > context properly. sepol_context_create() just creates an empty context record that you then have to fill. If you want to create it from an existing string security context, then use sepol_context_from_string() to initialize it and then you can use sepol_context_get_* to extract individual fields. -- Stephen Smalley National Security Agency -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to majordomo@xxxxxxxxxxxxx with the words "unsubscribe selinux" without quotes as the message.