All of lore.kernel.org
 help / color / mirror / Atom feed
* Switch between struct security_context_t and context_t
@ 2006-06-05 15:10 Mario Fanelli
  2006-06-05 15:38 ` James Antill
  0 siblings, 1 reply; 2+ messages in thread
From: Mario Fanelli @ 2006-06-05 15:10 UTC (permalink / raw)
  To: SeLinux Mailing List

I'm writing some simple program that uses SELinux Api but I don't find any
function that transform a security_context_t variable in context_t. It's
possible to force cast but if exists a function that performance this
operation is better...
Anyone can give me an help?


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Switch between struct security_context_t and context_t
  2006-06-05 15:10 Switch between struct security_context_t and context_t Mario Fanelli
@ 2006-06-05 15:38 ` James Antill
  0 siblings, 0 replies; 2+ messages in thread
From: James Antill @ 2006-06-05 15:38 UTC (permalink / raw)
  To: Mario Fanelli; +Cc: SeLinux Mailing List

[-- Attachment #1: Type: text/plain, Size: 517 bytes --]

On Mon, 2006-06-05 at 17:10 +0200, Mario Fanelli wrote:
> I'm writing some simple program that uses SELinux Api but I don't find any
> function that transform a security_context_t variable in context_t. It's
> possible to force cast but if exists a function that performance this
> operation is better...
> Anyone can give me an help?

 You want to use:

context_t context_new(const char *);

...you can see it being used in the secon program in policycoreutils.

-- 
James Antill <jantill@redhat.com>

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 191 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-06-05 15:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-05 15:10 Switch between struct security_context_t and context_t Mario Fanelli
2006-06-05 15:38 ` James Antill

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.