GoogleCloudPlatform / compute-virtual-ethernet-linux

Compute Engine Virtual Ethernet Linux driver.
Other
69 stars 31 forks source link

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

Open MKrupauskas opened 6 months ago

MKrupauskas commented 6 months ago

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