When enabling private-dev a symlink from /dev/fd -> /proc/self/fd is missing. It might be a good idea to just create it, e.g. bash uses it for process substitution.
We may consider re-examining private-dev contents in general. For example here's the difference between content exposed by firejail vs flatpak:
$ firejail --noprofile --private-dev bash
Warning: an existing sandbox was detected. bash will run without any additional sandboxing features
$ ls /dev
dri full hidraw0 hidraw1 hidraw2 hidraw3 hidraw4 hidraw5 log null ptmx pts random shm snd tty urandom usb zero
$ flatpak run org.freedesktop.Platform
[馃摝 org.freedesktop.Platform ~]$ ls /dev
console core fd full null ptmx pts random shm stderr stdin stdout tty urandom zero
stderr, stdin, stdout will also be used in some scripts.
OK, I'll add /dev/fd,stderr,stdin,stdout. These are symlinks to existing files in /proc.
I'll get rid of /dev/log, it makes sense only for running servers as root. The others are more problematic:
To complete above /dev/snd can be removed with --nosound, /dev/dri by --no3d and /dev/hidraw* + /dev/usb by --nou2f.
The original issue is fixed in f25e8d684659eb001407d3eaa58f90671acdd1a9
Most helpful comment
OK, I'll add /dev/fd,stderr,stdin,stdout. These are symlinks to existing files in /proc.
I'll get rid of /dev/log, it makes sense only for running servers as root. The others are more problematic: