Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
linglong-box (2.1.0-1) unstable; urgency=medium

* release 2.1.0-1.

-- dengbo <dengbo@deepin.org> Wed, 06 Aug 2025 17:59:08 +0800

linglong-box (1.8.1-1) unstable; urgency=medium

* release 1.8.1-1.

-- dengbo <dengbo@deepin.org> Thu, 10 Apr 2025 13:45:47 +0800
1 change: 1 addition & 0 deletions debian/compat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
11
21 changes: 21 additions & 0 deletions debian/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
Source: linglong-box
Section: admin
Priority: optional
Maintainer: Deepin Packages Builder <packages@deepin.org>
Build-Depends:
debhelper (>= 11),
cmake,
libcli11-dev (>= 2.4.1) | hello,
pkg-config,
libseccomp-dev,
nlohmann-json3-dev (>= 3.5.0) | hello,
libgtest-dev,
libcap-dev
Standards-Version: 4.1.3
Homepage: https://www.deepin.org

Package: linglong-box
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: Deepin sandbox with OCI standard.
Deepin sandbox...
21 changes: 21 additions & 0 deletions debian/copyright
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: linglong-box

Files: *
Copyright: 2025 Deepin Technology Co., Ltd.
License: GPL-3+
This package is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
.
This package is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>
.
On Debian systems, the complete text of the GNU General
Public License version 3 can be found in "/usr/share/common-licenses/GPL-3".
1 change: 1 addition & 0 deletions debian/linglong-box.lintian-overrides
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
linglong-box: statically-linked-binary usr/bin/ll-box-static
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
From c8ad72f807bfc5d6b7522528c2b08edbd36bcf7f Mon Sep 17 00:00:00 2001
From: ComixHe <ComixHe1895@outlook.com>
Date: Thu, 19 Jun 2025 17:08:47 +0800
Subject: [PATCH] feat: write cred before start container process

Signed-off-by: ComixHe <ComixHe1895@outlook.com>
---
src/linyaps_box/container.cpp | 8 ++++++++
1 file changed, 8 insertions(+)

diff --git a/src/linyaps_box/container.cpp b/src/linyaps_box/container.cpp
index 4087b99..f30a2b5 100644
--- a/src/linyaps_box/container.cpp
+++ b/src/linyaps_box/container.cpp
@@ -1219,6 +1219,14 @@ void configure_mounts(const linyaps_box::container &container, const std::filesy
return ss.str();
}();

+ // NOTE: This node only exist in UOS kernel, it is used to identify child process
+ // running in linyaps container
+ auto elf_verify_cred = std::filesystem::path{ "/proc/self/attr/elfverify/cred" };
+ if (std::filesystem::exists(elf_verify_cred)) {
+ std::ofstream ofs(elf_verify_cred);
+ ofs << "1";
+ }
+
execvpe(c_args[0],
const_cast<char *const *>(c_args.data()),
const_cast<char *const *>(c_env.data()));
--
2.50.0

1 change: 1 addition & 0 deletions debian/patches/series
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0001-feat-write-cred-before-start-container-process.patch
9 changes: 9 additions & 0 deletions debian/rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/usr/bin/make -f
include /usr/share/dpkg/default.mk

%:
dh $@ --buildsystem=cmake

EXTRA_OPTION = -DCMAKE_BUILD_TYPE=Release -Dlinyaps-box_ENABLE_CPACK=ON -Dlinyaps-box_CPM_LOCAL_PACKAGES_ONLY=ON
override_dh_auto_configure:
dh_auto_configure -- ${EXTRA_OPTION} ${DH_AUTO_ARGS}
1 change: 1 addition & 0 deletions debian/source/format
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.0 (quilt)
Loading