* Re: iwd doesn't work with openresolv
@ 2022-01-03 19:05 Denis Kenzior
0 siblings, 0 replies; 2+ messages in thread
From: Denis Kenzior @ 2022-01-03 19:05 UTC (permalink / raw)
To: iwd
[-- Attachment #1: Type: text/plain, Size: 815 bytes --]
Hi Yuri,
<snip>
> [Service]
> ReadWritePaths=/etc/resolv.conf.bak
> ReadWritePaths=/etc/resolv.conf
>
> Others suggested another way to fix it:
>
> RuntimeDirectory=resolvconf
> ReadWritePaths=/etc/resolv.conf
>
> https://bugs.archlinux.org/task/67069
>
> Can src/iwd.service.in be adjusted?
I think this or a similar issue has come up before. The problem is that iwd
supports either systemd-resolved or resolvconf. So for systems that use
systemd-resolved (which iwd defaults to), punching this security policy
exception is not needed and arguably it should not be enabled by default.
Perhaps as a compromise we may be able to ship service.in with these lines added
& commented out. Not sure if this would be of any help though. Other ideas are
welcome.
Regards,
-Denis
^ permalink raw reply [flat|nested] 2+ messages in thread
* iwd doesn't work with openresolv
@ 2021-12-27 11:38 Yuri Kanivetsky
0 siblings, 0 replies; 2+ messages in thread
From: Yuri Kanivetsky @ 2021-12-27 11:38 UTC (permalink / raw)
To: iwd
[-- Attachment #1: Type: text/plain, Size: 837 bytes --]
Hi,
If I run it as is, I get:
Dec 27 13:27:21 yuri iwd[716]: cp: cannot create regular file
'/etc/resolv.conf.bak': Read-only file system
Dec 27 13:27:21 yuri iwd[717]: /usr/lib/resolvconf/libc: line 230:
/etc/resolv.conf: Read-only file system
Dec 27 13:27:21 yuri iwd[761]: cp: cannot create regular file
'/etc/resolv.conf.bak': Read-only file system
Dec 27 13:27:21 yuri iwd[762]: /usr/lib/resolvconf/libc: line 230:
/etc/resolv.conf: Read-only file system
I can work around it by:
touch /etc/resolv.conf.bak
and overriding:
[Service]
ReadWritePaths=/etc/resolv.conf.bak
ReadWritePaths=/etc/resolv.conf
Others suggested another way to fix it:
RuntimeDirectory=resolvconf
ReadWritePaths=/etc/resolv.conf
https://bugs.archlinux.org/task/67069
Can src/iwd.service.in be adjusted?
Regards,
Yuri
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-01-03 19:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-03 19:05 iwd doesn't work with openresolv Denis Kenzior
-- strict thread matches above, loose matches on Subject: below --
2021-12-27 11:38 Yuri Kanivetsky
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).