gitpod icon indicating copy to clipboard operation
gitpod copied to clipboard

Do not create fuse device if it already exists

Open Furisto opened this issue 1 year ago • 0 comments

Description

Do not create fuse device if it already exists. We will use the generic device plugin and a custom fuse resource in the future to create the fuse device. It will allow us to get rid of modifying the eBPF program that was created by runc in order to allow access to the device. Modifying the eBPF program has the side effect that changes to the eBPF program will get lost if other components also need to overwrite it.

Related Issue(s)

Fixes ENT-338

How to test

  • Open workspace and check that fuse device is still accessible
  • You can use the following program for the check
#define _GNU_SOURCE
#include <unistd.h>

#include <sys/syscall.h>
#include <linux/fs.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <stdio.h>


int main() {
  const char* src_path = "/dev/fuse";
  unsigned int flags = O_RDWR;
  printf("RET: %ld\n", syscall(SYS_openat, AT_FDCWD, src_path, flags));
}
  • Compile with gcc and verify that the program returns 3

Documentation

Preview status

Gitpod was successfully deployed to your preview environment.

Build Options

Build
  • [ ] /werft with-werft Run the build with werft instead of GHA
  • [ ] leeway-no-cache
  • [ ] /werft no-test Run Leeway with --dont-test
Publish
  • [ ] /werft publish-to-npm
  • [ ] /werft publish-to-jb-marketplace
Installer
  • [ ] analytics=segment
  • [ ] with-dedicated-emulation
  • [ ] workspace-feature-flags Add desired feature flags to the end of the line above, space separated
Preview Environment / Integration Tests
  • [ ] /werft with-local-preview If enabled this will build install/preview
  • [x] /werft with-preview
  • [x] /werft with-large-vm
  • [x] /werft with-gce-vm If enabled this will create the environment on GCE infra
  • [ ] /werft preemptible Saves cost. Untick this only if you're really sure you need a non-preemtible machine.
  • [ ] with-integration-tests=all Valid options are all, workspace, webapp, ide, jetbrains, vscode, ssh. If enabled, with-preview and with-large-vm will be enabled.
  • [ ] with-monitoring

/hold

Furisto avatar Jun 25 '24 13:06 Furisto