Comment 4 for bug 1841058

Revision history for this message
Orlix (orlin-g) wrote :

Update on kernel 1096 and the issue still persist
in our container we run as non-root user
after sed-ing the file persmission are still rw for the user but the nginx cannot read the file
after chmod u+rw file with same user the file is readable again...

E.g.
docker run --rm -ti --entrypoint=bash -u nginx nginx
nginx@5d5453275231:/$ cd /tmp/
nginx@5d5453275231:/tmp$ echo aaa > test
nginx@5d5453275231:/tmp$ cat test
aaa
nginx@5d5453275231:/tmp$ sed -i 's/a/Q/g' test
nginx@5d5453275231:/tmp$ cat test
cat: test: Permission denied
nginx@5d5453275231:/tmp$ chmod u+rw test
nginx@5d5453275231:/tmp$ cat test
QQQ
nginx@5d5453275231:/tmp$