podman: change permissions on /usr/share/containers/seccomp.json
authorW. Michael Petullo <mike@flyn.org>
Thu, 17 Jun 2021 03:08:01 +0000 (22:08 -0500)
committerDaniel Golle <daniel@makrotopia.org>
Mon, 15 Nov 2021 20:04:58 +0000 (20:04 +0000)
Running podman as users other than root seems to require that those
users can read /usr/share/containers/seccomp.json. This change sets the
permissions on that file to match those used on Fedora.

Signed-off-by: W. Michael Petullo <mike@flyn.org>
(cherry picked from commit a41556af4f2fb5c79b3a7902b4f3ca3b81644920)

utils/podman/Makefile

index 6710ac59d46d0b5363ec0a415ecf87cec0877816..a7976df24af36f91e07493dff51feda5bb7952f1 100644 (file)
@@ -100,7 +100,7 @@ define Package/podman/install
        $(INSTALL_DIR) $(1)/etc/cni/net.d
        $(INSTALL_CONF) $(PKG_BUILD_DIR)/cni/87-podman-bridge.conflist $(1)/etc/cni/net.d/
        $(INSTALL_DIR) $(1)/usr/share/containers
-       $(INSTALL_CONF) $(PKG_BUILD_DIR)/vendor/github.com/containers/common/pkg/seccomp/seccomp.json $(1)/usr/share/containers/
+       $(INSTALL_DATA) $(PKG_BUILD_DIR)/vendor/github.com/containers/common/pkg/seccomp/seccomp.json $(1)/usr/share/containers/
        $(INSTALL_DIR) $(1)/etc/init.d
        $(INSTALL_BIN) ./files/podman.init $(1)/etc/init.d/podman
        $(SED) 's/driver = \"\"/driver = \"overlay\"/g' $(1)/etc/containers/storage.conf