Skip to content

--ro-bind-data creates world-writable files #337

Closed

Description

@smcv

Originally reported at https://bugs.debian.org/944673. @jwilk writes:

If the file specified by the --ro-bind-data option doesn't exist yet,
bubblewrap creates it as world-writable:

$ umask
0077

$ ls ~/moo
ls: cannot access '/home/jwilk/moo': No such file or directory

$ bwrap --ro-bind / / --bind ~ ~ --ro-bind-data 0 ~/moo -- true < /dev/null

$ ls -l ~/moo
-rw-rw-rw- 1 jwilk users 0 Nov 13 15:51 /home/jwilk/moo

This is bad when the directory for the ro-bind-data file is shared between the
host and the container, as in the example above.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions