Bug #78963 [Com]: php-fpm-7.4.0 can't access devices

From: Date: Wed, 18 Dec 2019 11:43:42 +0000
Subject: Bug #78963 [Com]: php-fpm-7.4.0 can't access devices
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-224393@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=78963&edit=1

 ID:                 78963
 Comment by:         jeanmarc dot louviaux at gmail dot com
 Reported by:        jeanmarc dot louviaux at gmail dot com
 Summary:            php-fpm-7.4.0 can't access devices
 Status:             Open
 Type:               Bug
 Package:            FPM related
 Operating System:   Arch
 PHP Version:        7.4.0
 Block user comment: N
 Private report:     N

 New Comment:

Thanks for your kind comment.
I am not the author of communication application but it seem ok to me to have port lock files there
(/var/lock/LCK..)
I don't mind if those files survive a reboot or not


Previous Comments:
------------------------------------------------------------------------
[2019-12-18 11:09:23] bugreports at gmail dot com

> I have set PrivateDevices=false
> but i also have to chmod 777 /run/lock/ to allow lock files from devices

would you mind not f**p your whole setup?

* nobody and nothing has a business to write directly to /run root-dir
* whatever you do below /run won#t survive a reboot
* learn basics like https://www.freedesktop.org/software/systemd/man/tmpfiles.d.html

------------------------------------------------------------------------
[2019-12-18 10:19:47] jeanmarc dot louviaux at gmail dot com

Ok i get it
I have set PrivateDevices=false
but i also have to chmod 777 /run/lock/ to allow lock files from devices
Thanks

------------------------------------------------------------------------
[2019-12-16 10:47:44] happypuzzle9 at gmail dot com

thinks your url

```
[Service]
ProtectHome=false
```

I perfectly solved the problem of home inaccessibility caused by upgrading from 7.3 to
7.4

------------------------------------------------------------------------
[2019-12-16 08:50:17] jeanmarc dot louviaux at gmail dot com

Hi,
thanks for pointing me this but i can't still get it working.
I have tried changing php-fpm.service but adding :

#Access /dev
PrivateDevices=no
DevicePolicy=auto
#DeviceAllow=true

Obviously did systemctl daemon-reload and systemctl restart php-fpm
But can't access to any /dev

Could you please help me with that ?
Cheers

------------------------------------------------------------------------
[2019-12-15 16:32:42] bugreports at gmail dot com

learn about systemd-dropins and set PrivateDevices=no
this change of defaults is completly deserved

https://docs.flatcar-linux.org/os/using-systemd-drop-in-units/

------------------------------------------------------------------------


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    https://bugs.php.net/bug.php?id=78963


--
Edit this bug report at https://bugs.php.net/bug.php?id=78963&edit=1


Thread (10 messages)

« previous php.bugs (#224393) next »