All of lore.kernel.org
 help / color / mirror / Atom feed
* 2.4.16 release, ipsec, roles and ECHILD errors
@ 2002-01-17 20:58 Paul Krumviede
  0 siblings, 0 replies; 3+ messages in thread
From: Paul Krumviede @ 2002-01-17 20:58 UTC (permalink / raw)
  To: selinux

ever since the december 2001 release, i've been running into
problems getting frees/wan 1.94 working with the 2.4.16 kernel
when selinux is configured in the kernel. after much experimentation
i noticed something that seems quite strange.

background: attempts to get automatically keyed IPsec
connections to go into the "routed" or "up" states would
yield failures with pclose() with errno set to ECHILD. this
happens when pluto, the user-space key management
daemon, tries to run some of the associated scripts.

by happenstance, things started working a few days ago,
and then stopped working. what seemed to make the
difference was the role i used to login on the console.
if i login with the user_r role, run "newrole -r sysadm_r"
and su, then start (using run_init) the ipsec components
and attempt to bring an IPsec connection into a useful
state (e.g., "ipsec auto --route conn-name"), then things
fail as above.

but if i login with the sysadm_r role, su, and then start
up the ipsec components the same way, things work.
things work if i login as root, in either the user_r or
sysadm_r role.

i'm running in permissive mode, so that shouldn't
be a problem. if i compile the same kernel without
selinux, then there doesn't seem to be any problem
getting the IPsec connections up and running.

i took a quick look at some of the ssh code, which
also uses pclose(), but it seems to never check the
error status, while pluto does.

-paul


--
You have received this message because you are subscribed to the selinux 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] 3+ messages in thread

end of thread, other threads:[~2002-01-18 18:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <72222DC86846D411ABD300A0C9EB08A1015242A0@csoc-mail-box.csoconli ne.com>
2002-01-18 13:39 ` 2.4.16 release, ipsec, roles and ECHILD errors Westerman, Mark
2002-01-18 18:25   ` Paul Krumviede
2002-01-17 20:58 Paul Krumviede

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.