diff --git a/misc/lib/linglong/container/config.d/00-id-mapping b/misc/lib/linglong/container/config.d/00-id-mapping deleted file mode 100644 index 3e575a283..000000000 --- a/misc/lib/linglong/container/config.d/00-id-mapping +++ /dev/null @@ -1,11 +0,0 @@ -#!/usr/bin/env bash - -# SPDX-FileCopyrightText: 2024 UnionTech Software Technology Co., Ltd. -# -# SPDX-License-Identifier: LGPL-3.0-or-later - -echo "This is a placeholder file for using builtin oci configuration generator. -If you want to customize the behavior of current generator, -you could replace this file with a same name executable file." 1>&2 - -exit 255 diff --git a/misc/lib/linglong/container/config.d/05-initialize b/misc/lib/linglong/container/config.d/05-initialize deleted file mode 100644 index 3e575a283..000000000 --- a/misc/lib/linglong/container/config.d/05-initialize +++ /dev/null @@ -1,11 +0,0 @@ -#!/usr/bin/env bash - -# SPDX-FileCopyrightText: 2024 UnionTech Software Technology Co., Ltd. -# -# SPDX-License-Identifier: LGPL-3.0-or-later - -echo "This is a placeholder file for using builtin oci configuration generator. -If you want to customize the behavior of current generator, -you could replace this file with a same name executable file." 1>&2 - -exit 255 diff --git a/misc/lib/linglong/container/config.d/10-basics.json b/misc/lib/linglong/container/config.d/10-basics.json deleted file mode 100644 index cb18820cb..000000000 --- a/misc/lib/linglong/container/config.d/10-basics.json +++ /dev/null @@ -1,110 +0,0 @@ -{ - "ociVersion": "1.0.1", - "patch": [ - { - "op": "add", - "path": "/mounts/-", - "value": { - "destination": "/sys", - "type": "bind", - "source": "/sys", - "options": ["rbind", "nosuid", "noexec", "nodev"] - } - }, - { - "op": "add", - "path": "/mounts/-", - "value": { - "destination": "/proc", - "type": "proc", - "source": "proc" - } - }, - { - "op": "add", - "path": "/mounts/-", - "value": { - "destination": "/dev", - "type": "tmpfs", - "source": "tmpfs", - "options": ["nosuid", "strictatime", "mode=0755", "size=65536k"] - } - }, - { - "op": "add", - "path": "/mounts/-", - "value": { - "destination": "/dev/pts", - "type": "devpts", - "source": "devpts", - "options": [ - "nosuid", - "noexec", - "newinstance", - "ptmxmode=0666", - "mode=0620" - ] - } - }, - { - "op": "add", - "path": "/mounts/-", - "value": { - "destination": "/dev/shm", - "type": "tmpfs", - "source": "shm", - "options": ["nosuid", "noexec", "nodev", "mode=1777"] - } - }, - { - "op": "add", - "path": "/mounts/-", - "value": { - "destination": "/dev/mqueue", - "type": "bind", - "source": "/dev/mqueue", - "options": ["rbind", "nosuid", "noexec", "nodev"] - } - }, - { - "op": "add", - "path": "/mounts/-", - "value": { - "destination": "/sys/fs/cgroup", - "type": "cgroup", - "source": "cgroup", - "options": ["nosuid", "noexec", "nodev", "relatime", "ro"] - } - }, - { - "op": "add", - "path": "/mounts/-", - "value": { - "destination": "/run", - "type": "tmpfs", - "source": "tmpfs", - "options": ["nosuid", "strictatime", "mode=0755", "size=65536k"] - } - }, - { - "op": "add", - "path": "/mounts/-", - "value": { - "destination": "/run/udev", - "type": "bind", - "source": "/run/udev", - "options": ["rbind"] - } - }, - { - "op": "add", - "path": "/mounts/-", - "value": { - "destination": "/etc/passwd", - "type": "bind", - "source": "/etc/passwd", - "options": ["ro", "rbind"] - } - } - ] -} diff --git a/misc/lib/linglong/container/config.d/20-devices b/misc/lib/linglong/container/config.d/20-devices deleted file mode 100644 index 3e575a283..000000000 --- a/misc/lib/linglong/container/config.d/20-devices +++ /dev/null @@ -1,11 +0,0 @@ -#!/usr/bin/env bash - -# SPDX-FileCopyrightText: 2024 UnionTech Software Technology Co., Ltd. -# -# SPDX-License-Identifier: LGPL-3.0-or-later - -echo "This is a placeholder file for using builtin oci configuration generator. -If you want to customize the behavior of current generator, -you could replace this file with a same name executable file." 1>&2 - -exit 255 diff --git a/misc/lib/linglong/container/config.d/25-host-env b/misc/lib/linglong/container/config.d/25-host-env deleted file mode 100644 index 3e575a283..000000000 --- a/misc/lib/linglong/container/config.d/25-host-env +++ /dev/null @@ -1,11 +0,0 @@ -#!/usr/bin/env bash - -# SPDX-FileCopyrightText: 2024 UnionTech Software Technology Co., Ltd. -# -# SPDX-License-Identifier: LGPL-3.0-or-later - -echo "This is a placeholder file for using builtin oci configuration generator. -If you want to customize the behavior of current generator, -you could replace this file with a same name executable file." 1>&2 - -exit 255 diff --git a/misc/lib/linglong/container/config.d/25-host-rootfs.json b/misc/lib/linglong/container/config.d/25-host-rootfs.json deleted file mode 100644 index a44f79beb..000000000 --- a/misc/lib/linglong/container/config.d/25-host-rootfs.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "ociVersion": "1.0.1", - "patch": [ - { - "op": "add", - "path": "/mounts/-", - "value": { - "destination": "/run/host", - "type": "tmpfs", - "source": "tmpfs", - "options": ["nodev", "nosuid", "mode=700"] - } - }, - { - "op": "add", - "path": "/mounts/-", - "value": { - "destination": "/run/host/rootfs", - "type": "bind", - "source": "/", - "options": ["rbind"] - } - } - ] -} diff --git a/misc/lib/linglong/container/config.d/25-host-statics.json b/misc/lib/linglong/container/config.d/25-host-statics.json deleted file mode 100644 index ae305297b..000000000 --- a/misc/lib/linglong/container/config.d/25-host-statics.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "ociVersion": "1.0.1", - "patch": [ - { - "op": "add", - "path": "/mounts/-", - "value": { - "destination": "/usr/share/fonts", - "type": "bind", - "source": "/usr/share/fonts", - "options": ["rbind", "ro"] - } - }, - { - "op": "add", - "path": "/mounts/-", - "value": { - "destination": "/usr/share/icons", - "type": "bind", - "source": "/usr/share/icons", - "options": ["rbind", "ro"] - } - }, - { - "op": "add", - "path": "/mounts/-", - "value": { - "destination": "/etc/ssl/certs", - "type": "bind", - "source": "/etc/ssl/certs", - "options": ["rbind", "ro"] - } - }, - { - "op": "add", - "path": "/mounts/-", - "value": { - "destination": "/etc/machine-id", - "type": "bind", - "source": "/etc/machine-id", - "options": ["rbind", "ro"] - } - }, - { - "op": "add", - "path": "/mounts/-", - "value": { - "destination": "/usr/share/themes", - "type": "bind", - "source": "/usr/share/themes", - "options": ["rbind", "ro"] - } - } - ] -} diff --git a/misc/lib/linglong/container/config.d/30-user-home b/misc/lib/linglong/container/config.d/30-user-home deleted file mode 100644 index 3e575a283..000000000 --- a/misc/lib/linglong/container/config.d/30-user-home +++ /dev/null @@ -1,11 +0,0 @@ -#!/usr/bin/env bash - -# SPDX-FileCopyrightText: 2024 UnionTech Software Technology Co., Ltd. -# -# SPDX-License-Identifier: LGPL-3.0-or-later - -echo "This is a placeholder file for using builtin oci configuration generator. -If you want to customize the behavior of current generator, -you could replace this file with a same name executable file." 1>&2 - -exit 255 diff --git a/misc/lib/linglong/container/config.d/40-host-ipc b/misc/lib/linglong/container/config.d/40-host-ipc deleted file mode 100644 index 3e575a283..000000000 --- a/misc/lib/linglong/container/config.d/40-host-ipc +++ /dev/null @@ -1,11 +0,0 @@ -#!/usr/bin/env bash - -# SPDX-FileCopyrightText: 2024 UnionTech Software Technology Co., Ltd. -# -# SPDX-License-Identifier: LGPL-3.0-or-later - -echo "This is a placeholder file for using builtin oci configuration generator. -If you want to customize the behavior of current generator, -you could replace this file with a same name executable file." 1>&2 - -exit 255 diff --git a/misc/lib/linglong/container/config.d/90-legacy b/misc/lib/linglong/container/config.d/90-legacy deleted file mode 100644 index 3e575a283..000000000 --- a/misc/lib/linglong/container/config.d/90-legacy +++ /dev/null @@ -1,11 +0,0 @@ -#!/usr/bin/env bash - -# SPDX-FileCopyrightText: 2024 UnionTech Software Technology Co., Ltd. -# -# SPDX-License-Identifier: LGPL-3.0-or-later - -echo "This is a placeholder file for using builtin oci configuration generator. -If you want to customize the behavior of current generator, -you could replace this file with a same name executable file." 1>&2 - -exit 255 diff --git a/misc/lib/linglong/container/config.json b/misc/lib/linglong/container/config.json deleted file mode 100644 index 7e9c0a9bf..000000000 --- a/misc/lib/linglong/container/config.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "ociVersion": "1.0.1", - "hostname": "linglong", - "annotations": { - "org.deepin.linglong.appID": "" - }, - "root": { - "path": "" - }, - "linux": { - "namespaces": [ - { - "type": "pid" - }, - { - "type": "mount" - }, - { - "type": "uts" - }, - { - "type": "user" - } - ] - }, - "mounts": [], - "process": { - "env": [], - "cwd": "/", - "args": ["bash"] - } -}