AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题 / 1528719
Accepted
Andre
Andre
Asked: 2024-10-02 05:24:01 +0800 CST2024-10-02 05:24:01 +0800 CST 2024-10-02 05:24:01 +0800 CST

升级到 24.04 后,Outline appimage 不再起作用

  • 772

升级到 24.04 后,Outline Client 和 Outline Manager appimages 都不再起作用。

我确实libfuset64按照其他地方的建议进行了安装,但是出现了 SUID 权限错误。

$ ./Outline-Client.AppImage 
[584847:1001/220953.594798:FATAL:setuid_sandbox_host.cc(157)] The SUID sandbox helper binary was found, but is not configured correctly. Rather than run without sandboxing I'm aborting now. You need to make sure that /tmp/.mount_Outlintr1Gf9/chrome-sandbox is owned by root and has mode 4755.
[1]    584847 trace trap (core dumped)  ./Outline-Client.AppImage

如果我运行大纲,./Outline-Client.AppImage --no-sandbox那么它可以完美地工作,但这应该不太安全。

我想知道是否有一种方法可以运行大纲而不必使用--no-sandbox标志

vpn
  • 1 1 个回答
  • 23 Views

1 个回答

  • Voted
  1. Best Answer
    mook765
    2024-10-02T05:52:04+08:002024-10-02T05:52:04+08:00

    我们不应该像这个问题的答案中所建议的那样在我们的系统上完全禁用 AppArmor 的用户命名空间限制,因为这会产生安全问题,请参阅此博客。

    更好的方法是创建一个 apparmor 配置文件,允许特定应用程序使用非特权用户名空间。

    /etc/apparmor.d/ooutline-client创建包含以下内容的文件:

    # This profile allows everything and only exists to give the
    # application a name instead of having the label "unconfined"
    
    abi <abi/4.0>,
    include <tunables/global>
    
    profile obsidian /path/to/Outline-Client.AppImage flags=(unconfined) {
      userns,
    
      # Site-specific additions and overrides. See local/README for details.
      include if exists <local/outline-client>
    }
    

    将其替换/path/to/Outline-Client.AppImage为您的 appimage 的路径。

    保存文件后,运行sudo systemctl reload apparmor.service以重新加载所有 apparmor 配置文件。

    完成,享受您的应用程序图像...

    注意:稍后将 appimage 移动到其他位置或更改其名称,需要使用正确的路径更新 apparmor 配置文件并重新加载 apparmor 配置文件。


    apparmor 包永远不会提供 appimages 的配置文件,因为 appimages 存储在任意位置。我们必须创建自己的配置文件。我用几个 appimages 测试了这种方法,效果很好。

    • 2

相关问题

  • 如何在 GDM 中使用 NetworkManager?

  • 连接到 VPN 会阻止访问正常的网站

  • 如何无缝连接两个局域网?

  • 创建基于 NAT 的 VPN 工具的 hamachi

  • 有没有办法将 VPN (tun0) 适配器链接到假物理 (ethX) 适配器?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve