<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto">strongswan is installed on my host but it happens too on ikev2-05-basic-psk<br><br><div dir="ltr">Sent from my iPhone</div><div dir="ltr"><br><blockquote type="cite">On Sep 24, 2020, at 13:08, Andrew Cagney <andrew.cagney@gmail.com> wrote:<br><br></blockquote></div><blockquote type="cite"><div dir="ltr"><div dir="ltr">Some of the old code used lsw_cp_file() some did not.  Do you have a mysterious /etc/strongswan directory?<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 24 Sep 2020 at 12:19, Paul Wouters <<a href="mailto:paul@nohats.ca">paul@nohats.ca</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
I ended up a few times with test configs on my laptop's /etc/ipsec.* files.<br>
<br>
I did some testing and found out that kvmrunner.py does not do this, but<br>
nsrun --ns does. I made the host files immutable after restoring them and I<br>
see this in the test when using nsrun:<br>
<br>
/testing/guestbin/swan-prep<br>
Traceback (most recent call last):<br>
   File "/testing/guestbin/swan-prep", line 380, in <module><br>
     copy_config_file(hostname, testpath, "/etc/ipsec.conf")<br>
   File "/testing/guestbin/swan-prep", line 162, in copy_config_file<br>
     shutil.copy(src, config_path)<br>
   File "PATH/lib64/python3.9/shutil.py", line 415, in copy<br>
     copyfile(src, dst, follow_symlinks=follow_symlinks)<br>
   File "PATH/lib64/python3.9/shutil.py", line 261, in copyfile<br>
     with open(src, 'rb') as fsrc, open(dst, 'wb') as fdst:<br>
PermissionError: [Errno 1] Operation not permitted: '/etc/ipsec.conf'<br>
east #<br>
<br>
<br>
bisecting this lead to this commit breaking it:<br>
<br>
commit 1e0b14ec0b20c3ba93d41071c1bd2aee05bdcfbc (HEAD)<br>
Author: Andrew Cagney <<a href="mailto:cagney@gnu.org" target="_blank">cagney@gnu.org</a>><br>
Date:   Wed Sep 16 20:19:37 2020 -0400<br>
<br>
     testing: cleanup swan-prep's code looking for config files in ./, baseconfigs/, ...<br>
<br>
<br>
Paul<br>
</blockquote></div>
</div></blockquote></body></html>