kernel version 4.4.0-1090-aws docker file system issue

Bug #1841058 reported by Orlix
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux-aws (Ubuntu)
New
Undecided
Unassigned
sed (Ubuntu)
New
Undecided
Unassigned

Bug Description

When using kernel version 4.4.0-1090-aws
if you have running container and you do sed on some files then you cannot access them inside the container any more

we use the nginx image and we can reproduce it everytime

in the container we have chown and then sed commands on some nginx.conf files
after the sed we are getting persmission denied inside the container even that we use root.

Revision history for this message
stentor (stentor-bgyk) wrote :
Revision history for this message
Dan Streetman (ddstreet) wrote :

i'm setting this as invalid for linux-aws, as this certainly seems like a sed bug.

Changed in linux-aws (Ubuntu):
status: New → Invalid
Revision history for this message
Dan Streetman (ddstreet) wrote :

Unsetting linux-aws back to New, as further investigation seems to indicate there is a kernel bug (as well as sed bug)

Changed in linux-aws (Ubuntu):
status: Invalid → New
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$

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.