All of lore.kernel.org
 help / color / mirror / Atom feed
* Howto transition socket
@ 2011-08-01 15:45 Martin Christian
  2011-08-02  3:10 ` HarryCiao
  2011-08-04 12:30 ` Stephen Smalley
  0 siblings, 2 replies; 4+ messages in thread
From: Martin Christian @ 2011-08-01 15:45 UTC (permalink / raw)
  To: selinux@tycho.nsa.gov

Hi,

excuse this very basic question: How can I define a transition for a socket?

Let's assume I've got a process p with label u_t, denoted as p:u_t. The
process opens a listening tcp socket s on port 80 (e. g. nc -l -p 80).
As far as I understood, s would get the label from the process: s:u_t.
However, I would like the socket to have label o_t. Hence, I define a
transition:

(u, u) -> o

or in policy syntax;

type_transition u_t u_t:tcp_socket o_t;

But this doesn't seem to work. Any ideas?

Regards,

Martin.

--
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] 4+ messages in thread

end of thread, other threads:[~2011-08-04 13:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-01 15:45 Howto transition socket Martin Christian
2011-08-02  3:10 ` HarryCiao
2011-08-04 12:30 ` Stephen Smalley
2011-08-04 13:06   ` Martin Christian

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.