static void installAppArmorProfile(String path, String content) throws IOException, ExecutionException {
    File tmpPrifile = FileUtil.createTempFile("apparmor_profile", null, true);
    FileUtil.writeToFile(tmpPrifile, content);

    File installScript = FileUtil.createTempFile("install_apparmor_profile.sh", null, true);
    FileUtil.writeToFile(installScript, """
      #!/bin/sh
      set -e
      cp %s %s
      apparmor_parser -r %s
      """.formatted(tmpPrifile, path, path).stripIndent());

    GeneralCommandLine commandLine = new GeneralCommandLine()
      .withExePath("sh")
      .withParameters(installScript.toString());

    commandLine = ExecUtil.sudoCommand(
      commandLine,
      IdeBundle.message("notification.content.jcef.unprivileged.userns.restricted.install.apparmor.profile.prompt")
        .formatted(ApplicationNamesInfo.getInstance().getFullProductNameWithEdition())
    );

    ProcessOutput output = ExecUtil.execAndGetOutput(commandLine);
    if (output.getExitCode() != 0) {
      throw new ExecutionException(output.getStderr());
    }
  }
static void installAppArmorProfile(String path, String content)