All of lore.kernel.org
 help / color / mirror / Atom feed
* context of socket passed between processes
@ 2022-09-07 20:18 Ted Toth
  2022-09-07 20:56 ` Dominick Grift
  2022-09-07 22:46 ` Paul Moore
  0 siblings, 2 replies; 17+ messages in thread
From: Ted Toth @ 2022-09-07 20:18 UTC (permalink / raw)
  To: SELinux

systemd uses a helper process (sd-listen) to create sockets and pass
their fds back to its parent. I've patched systemd to call semanage to
get the context for the port if it exists and create a context using
the returned type when calling setsockcreatecon. Everything looks
right i.e. the port type is retrieved, the context is created and
setsockcreatecon is called without errors. However 'netstat -Z' shows
the listening sockets type as init_t and not the type in the
setsockcreatecon call, is this the expected behavior? Can anyone help
me understand why this is happening?

Ted

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

end of thread, other threads:[~2022-09-19  3:34 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-07 20:18 context of socket passed between processes Ted Toth
2022-09-07 20:56 ` Dominick Grift
2022-09-07 22:48   ` Paul Moore
2022-09-08 13:43     ` Ted Toth
2022-09-08 14:15       ` Ted Toth
2022-09-08 14:28         ` Ondrej Mosnacek
2022-09-08 14:38           ` Dominick Grift
2022-09-08 21:54           ` Ted Toth
2022-09-07 22:46 ` Paul Moore
2022-09-08 13:41   ` Ted Toth
2022-09-08 14:41     ` Paul Moore
2022-09-08 14:48       ` Dominick Grift
2022-09-12 13:11       ` Ted Toth
2022-09-14 13:42         ` Ted Toth
2022-09-14 14:03         ` Paul Moore
2022-09-14 16:44           ` Ted Toth
2022-09-19  3:33             ` Paul Moore

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.