GoogleCloudPlatform / GoogleCloudPlatform/compute-virtual-ethernet-linux

debian package directory `/usr/src/gve-1.3.4` missing owner execute permissions

Open
#44 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
91
Forks
44
Avg merge
1h 21m
Merged PRs (30d)
2

Description

The `/usr/src/gve-1.3.4` directory in the debian package is missing execution permissions for the owner. The current permissions for it are `drw-r-xr-x`. Please update the owner permissions for that directory to include execute permissions.

For context some of our automation is failing when unpacking the gve debian package because of this as it traverses the path of the package and extracts it, sets the file permissions to the ones specified in the package (`drw-r-xr-x`), and then fails to write further files under that directory.

```
$ wget https://github.com/GoogleCloudPlatform/compute-virtual-ethernet-linux/releases/download/v1.3.4/gve-dkms_1.3.4_all.deb
...
$ mkdir gve

$ dpkg --extract gve-dkms_1.3.4_all.deb gve

$ ls -l gve/usr/src
total 4
drw-r-xr-x 2 mykolas user 4096 Nov 17 19:30 gve-1.3.4

$ touch gve/usr/src/gve-1.3.4/test
touch: cannot touch 'gve/usr/src/gve-1.3.4/test': Permission denied
```

To fix we need to do this:

```
$ sudo chmod u+x gve/usr/src/gve-1.3.4

$ ls -l gve/usr/src
total 4
drwxr-xrwx 2 mykolas user 4096 Nov 17 19:30 gve-1.3.4

$ touch gve/usr/src/gve-1.3.4/test
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.