-
Notifications
You must be signed in to change notification settings - Fork 555
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fcopy: Failure to copy file when uid != root #1531
Comments
I can reproduce too, I have the same setup with systemd-resolved. |
I put a fix in for issue: #1547 I think is the same problem, |
No, #1547 is a different issue. I corrected mine a while back using |
Sorry, actualy I removed /var/run/systemd from disable-common.inc, not /run/systemd/resolve/resolv.conf. The fix is in git. |
This issue is NOT resolved. The problem is using fcopy to copy a world readable file but where the owner is not the current user. None of the above mentioned fixes are affecting the problem. |
This problem is currently preventing me from launching Steam, which I have set up to be launched in a --private= home dir.
Launching Steam:
When I copy /run/systemd/resolve/resolv.conf to /etc/resolv.conf it works again, possibly because then it belongs to root:root. |
This is giving me more issues with other apps that can't copy the resolv.conf link. The apps fail to resolve any DNS address. |
I have a fix in, give it a try. I'll reopen it if necessary, thanks. |
The solution does work. However I do think the solution is overly specific. The fundamental solution should be allowing world-readable files to be copied. Not allowing a specific file to be copied. That the issue occurred with systemd-resolved is just one case. |
It didn't work for me, apps firejailed still can't resolve DNS. I recreated the links with |
I am still having this issue with resolv.conf -> /run/systemd/.... is this supposed to be fixed ? |
while using firejail and transmission for a while, this bug has just poop-up on my rpi3 system, for no reason ? |
Isssue #1243 still exists.
My system is configured with systemd-networkd and systemd-resolved.
The file /etc/resolv.conf is symlinked to /run/systemd/resolve/resolv.conf with the following permissions:
-rw-r--r-- systemd-resolve systemd-resolve /run/systemd/resolve/resolv.conf
So the file is world readable, but fcopy still refuses to copy it.
The issue is that fcopy only checks the uid of the file, not respecting the actual permissions set on it.
An example where this would fail terribly is if a file owner had no permissions.
To reproduce:
The text was updated successfully, but these errors were encountered: