[GH-ISSUE #5272] fcopy: cannot copy files with private-etc (ACLs) #2938

Closed
opened 2026-05-05 09:36:10 -06:00 by gitea-mirror · 4 comments
Owner

Originally created by @osevan on GitHub (Jul 24, 2022).
Original GitHub issue: https://github.com/netblue30/firejail/issues/5272

I have trouble with firejail and systemd again.
In my debianvm bullseye systemd starting well with php-fpm and user nginx and group nginx, when I disable private-etc.

When I try to start with privare-etc last days working well but now not.

With private-etc nginx in php-fpm.profile:

ul 25 01:26:16 debianb firejail[992]: Copying /etc/passwd to private /etc
Jul 25 01:26:16 debianb firejail[992]: sbox run: /run/firejail/lib/fcopy --follow-link /etc/pas>
Jul 25 01:26:16 debianb firejail[992]: Copying /etc/group to private /etc
Jul 25 01:26:16 debianb firejail[992]: sbox run: /run/firejail/lib/fcopy --follow-link /etc/gro>
Jul 25 01:26:16 debianb firejail[992]: Copying /etc/nginx to private /etc
Jul 25 01:26:16 debianb firejail[992]: sbox run: /run/firejail/lib/fcopy --follow-link /etc/ngi>
Jul 25 01:26:16 debianb systemd[1]: php-fpm.service: Main process exited, code=exited, status=1>
Jul 25 01:26:16 debianb firejail[991]: Error: proc 991 cannot sync with peer: unexpected EOF
Jul 25 01:26:16 debianb firejail[991]: Peer 992 unexpectedly exited with status 1
Jul 25 01:26:16 debianb systemd[1]: php-fpm.service: Failed with result 'exit-code'.

I tried with chown -R nginx:nginx /etc/nginx/, but the same error happens.

root@debianb:~# ls -al /etc/nginx/|cut -f1-9 -d' '

drwxr-xr-x  3 nginx root 4096  7. Jun
drwxr-xr-x 98 root  root 8192 25. Jul 02:57
-rw-r--r--  1 nginx root   99 17.
-rw-r--r--  1 nginx root 1077 15. Mai 15:03
-rw-r--r--  1 nginx root 1077  7. Jun
-rw-r--r--  1 nginx root 1007 15. Mai 15:03
-rw-r--r--  1 nginx root 1007  7. Jun
drwxr-xr-x  2 nginx root   56 19.
-rw-r--r--  1 nginx root 2837  7. Jun
-rw-r--r--  1 nginx root 2223  7. Jun
-rw-r--r--  1 nginx root 5349 15. Mai 15:03
-rw-r--r--  1 nginx root 5349  7. Jun
-rw-r--r--  1 nginx root 6404  7. Jun
-rw-r--r--  1 nginx root 2656  7. Jun
-rw-r--r--  1 nginx root 2656 15. Mai 15:03
-rw-r--r--  1 nginx root 4208 17. Mai 13:12
-rw-r--r--  1 nginx root 1009 17. Mai 16:37
-rw-r--r--  1 nginx root 3918 17. Mai 13:12
-rw-r--r--  1 nginx root  636 15. Mai
-rw-r--r--  1 nginx root  636  7.
-rw-r--r--  1 nginx root 3255 17. Mai 13:12
-rw-r--r--  1 nginx root 3780 17. Mai 13:12
-rw-r--r--  1 nginx root  664 15. Mai
-rw-r--r--  1 nginx root  664  7.
-rw-r--r--  1 nginx root 3610  7. Jun

When I disable private-etc, everything works.

But it appears suddenly... suddenly cant fcopy to new overlayfs I think... week before it could start wity private-etc nginx very well.

Originally created by @osevan on GitHub (Jul 24, 2022). Original GitHub issue: https://github.com/netblue30/firejail/issues/5272 I have trouble with firejail and systemd again. In my debianvm bullseye systemd starting well with php-fpm and user nginx and group nginx, when I disable private-etc. When I try to start with privare-etc last days working well but now not. With `private-etc nginx` in php-fpm.profile: ``` ul 25 01:26:16 debianb firejail[992]: Copying /etc/passwd to private /etc Jul 25 01:26:16 debianb firejail[992]: sbox run: /run/firejail/lib/fcopy --follow-link /etc/pas> Jul 25 01:26:16 debianb firejail[992]: Copying /etc/group to private /etc Jul 25 01:26:16 debianb firejail[992]: sbox run: /run/firejail/lib/fcopy --follow-link /etc/gro> Jul 25 01:26:16 debianb firejail[992]: Copying /etc/nginx to private /etc Jul 25 01:26:16 debianb firejail[992]: sbox run: /run/firejail/lib/fcopy --follow-link /etc/ngi> Jul 25 01:26:16 debianb systemd[1]: php-fpm.service: Main process exited, code=exited, status=1> Jul 25 01:26:16 debianb firejail[991]: Error: proc 991 cannot sync with peer: unexpected EOF Jul 25 01:26:16 debianb firejail[991]: Peer 992 unexpectedly exited with status 1 Jul 25 01:26:16 debianb systemd[1]: php-fpm.service: Failed with result 'exit-code'. ``` I tried with `chown -R nginx:nginx /etc/nginx/`, but the same error happens. ``` root@debianb:~# ls -al /etc/nginx/|cut -f1-9 -d' ' drwxr-xr-x 3 nginx root 4096 7. Jun drwxr-xr-x 98 root root 8192 25. Jul 02:57 -rw-r--r-- 1 nginx root 99 17. -rw-r--r-- 1 nginx root 1077 15. Mai 15:03 -rw-r--r-- 1 nginx root 1077 7. Jun -rw-r--r-- 1 nginx root 1007 15. Mai 15:03 -rw-r--r-- 1 nginx root 1007 7. Jun drwxr-xr-x 2 nginx root 56 19. -rw-r--r-- 1 nginx root 2837 7. Jun -rw-r--r-- 1 nginx root 2223 7. Jun -rw-r--r-- 1 nginx root 5349 15. Mai 15:03 -rw-r--r-- 1 nginx root 5349 7. Jun -rw-r--r-- 1 nginx root 6404 7. Jun -rw-r--r-- 1 nginx root 2656 7. Jun -rw-r--r-- 1 nginx root 2656 15. Mai 15:03 -rw-r--r-- 1 nginx root 4208 17. Mai 13:12 -rw-r--r-- 1 nginx root 1009 17. Mai 16:37 -rw-r--r-- 1 nginx root 3918 17. Mai 13:12 -rw-r--r-- 1 nginx root 636 15. Mai -rw-r--r-- 1 nginx root 636 7. -rw-r--r-- 1 nginx root 3255 17. Mai 13:12 -rw-r--r-- 1 nginx root 3780 17. Mai 13:12 -rw-r--r-- 1 nginx root 664 15. Mai -rw-r--r-- 1 nginx root 664 7. -rw-r--r-- 1 nginx root 3610 7. Jun ``` When I disable private-etc, everything works. But it appears suddenly... suddenly cant fcopy to new overlayfs I think... week before it could start wity private-etc nginx very well.
gitea-mirror 2026-05-05 09:36:10 -06:00
  • closed this issue
  • added the
    duplicate
    label
Author
Owner

@osevan commented on GitHub (Jul 24, 2022):

My fix is, copy files to another location and copy back fixed my problem.

But now new question: setfacl feature ignored by Firejail fcopy? I think so.

I think fcopy cant recognize setfacl users in some directorys i hope it will be fixed in private-etc

<!-- gh-comment-id:1193416881 --> @osevan commented on GitHub (Jul 24, 2022): My fix is, copy files to another location and copy back fixed my problem. But now new question: setfacl feature ignored by Firejail fcopy? I think so. I think fcopy cant recognize setfacl users in some directorys i hope it will be fixed in private-etc
Author
Owner

@smitsohu commented on GitHub (Jul 27, 2022):

But now new question: setfacl feature ignored by Firejail fcopy?

Yes, your are right. fcopy knows nothing about access control lists currently.

<!-- gh-comment-id:1196939306 --> @smitsohu commented on GitHub (Jul 27, 2022): > But now new question: setfacl feature ignored by Firejail fcopy? Yes, your are right. fcopy knows nothing about access control lists currently.
Author
Owner

@osevan commented on GitHub (Jul 29, 2022):

Ok thx for response

Please inform me here if setfacl features are considered and taken into account by Firejail.

Because acl feature is for hardening guys very important.

Thanks and

Best regards

<!-- gh-comment-id:1199196037 --> @osevan commented on GitHub (Jul 29, 2022): Ok thx for response Please inform me here if setfacl features are considered and taken into account by Firejail. Because acl feature is for hardening guys very important. Thanks and Best regards
Author
Owner

@kmk3 commented on GitHub (Sep 5, 2024):

Duplicate of #5341

<!-- gh-comment-id:2332734998 --> @kmk3 commented on GitHub (Sep 5, 2024): Duplicate of #5341
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/firejail#2938
No description provided.