Compare commits

...

12 Commits

Author SHA1 Message Date
openeuler-ci-bot
5a360d648e
!11 upgrade version to v1.2.3
From: @duyiwei7w 
Reviewed-by: @jianli-97 
Signed-off-by: @jianli-97
2024-04-12 07:00:11 +00:00
duyiwei
481f9a8e36 upgrade version to v1.2.3 2024-04-12 14:03:15 +08:00
openeuler-ci-bot
2938a8e4a8
!9 upgrade to 1.2.2
From: @jianli-97 
Reviewed-by: @duyiwei7w 
Signed-off-by: @duyiwei7w
2024-01-12 08:56:36 +00:00
jianli-97
16301e1622 upgrade to 1.2.2 2024-01-03 15:44:08 +08:00
openeuler-ci-bot
528a269478
!7 Specification NestOS Project Component Description File
From: @duyiwei7w 
Reviewed-by: @fu-shanqing 
Signed-off-by: @fu-shanqing
2023-06-21 07:17:17 +00:00
duyiwei
ea311b3666
Specification NestOS Project Component Description File
Signed-off-by: duyiwei <duyiwei@kylinos.cn>
2023-06-21 06:41:13 +00:00
openeuler-ci-bot
c4ab491763
!6 Modify compliance irregularities
From: @lauk001 
Reviewed-by: @duyiwei7w 
Signed-off-by: @duyiwei7w
2022-12-09 08:20:05 +00:00
lauk001
4cd9a324ff Modifying the readme 2022-12-09 15:59:53 +08:00
openeuler-ci-bot
665fbc204e
!5 Add yaml file
From: @wenzhiwei11 
Reviewed-by: @yangzhao_kl 
Signed-off-by: @yangzhao_kl
2022-06-07 08:13:07 +00:00
openeuler-ci-bot
c89cc1ed15
!2 upgrade slirp4netns to v1.2.0
From: @duyiwei7w 
Reviewed-by: @yangzhao_kl 
Signed-off-by: @yangzhao_kl
2022-06-07 07:33:55 +00:00
wenzhiwei11
b252610662 Add yaml file 2022-06-07 15:12:17 +08:00
duyiwei
a54286329e upgrade to v1.2.0 2022-06-07 11:18:21 +08:00
7 changed files with 62 additions and 31 deletions

View File

@ -1,30 +1,50 @@
# slirp4netns
#### 介绍
User-mode networking for unprivileged network namespaces.
#### 软件架构
软件架构说明
slirp4netns provides user-mode networking ("slirp") for unprivileged network namespaces.
#### 安装教程
1. xxxx
2. xxxx
3. xxxx
Install slirp4netns rpm package:
yum install slirp4netns
#### 使用说明
1. xxxx
2. xxxx
3. xxxx
**Terminal 1**: Create user/network/mount namespaces
```console
(host)$ unshare --user --map-root-user --net --mount
(namespace)$ echo $$ > /tmp/pid
```
In this documentation, we use `(host)$` as the prompt of the host shell, `(namespace)$` as the prompt of the shell running in the namespaces.
If `unshare` fails, try the following commands (known to be needed on Debian, Arch, and old CentOS 7.X):
```console
(host)$ sudo sh -c 'echo "user.max_user_namespaces=28633" >> /etc/sysctl.d/userns.conf'
(host)$ [ -f /proc/sys/kernel/unprivileged_userns_clone ] && sudo sh -c 'echo "kernel.unprivileged_userns_clone=1" >> /etc/sysctl.d/userns.conf'
(host)$ sudo sysctl --system
```
**Terminal 2**: Start slirp4netns
```console
(host)$ slirp4netns --configure --mtu=65520 --disable-host-loopback $(cat /tmp/pid) tap0
starting slirp, MTU=65520
...
```
#### 参与贡献
1. Fork 本仓库
2. 新建 Feat_xxx 分支
3. 提交代码
4. 新建 Pull Request
master分支使用最新的上游版本如果检测到上游有最新版本发布先形成issue后再提交对应PR更新流程如下。
1. 提交issue
2. Fork 本仓库
3. 新建 Feat_xxx 分支
4. 提交代码
5. 新建 Pull Request
#### 特技

Binary file not shown.

View File

@ -1,19 +1,14 @@
%global git0 https://github.com/rootless-containers/%{name}
%global commit0 6dc0186e020232ae1a6fcc1f7afbc3ea02fd3876
%global shortcommit0 %(c=%{commit0}; echo ${c:0:7})
%global built_tag v1.2.3
%global built_tag_strip %(b=%{built_tag}; echo ${b:1})
# Used for comparing with latest upstream tag
# to decide whether to autobuild (non-rawhide only)
%define built_tag v1.1.9
Name: slirp4netns
Version: 1.1.9
Release: 1
Summary: slirp for network namespaces
License: GPLv2
URL: https://github.com/rootless-containers/slirp4netns
Source0: %{git0}/archive/%{commit0}/%{name}-%{shortcommit0}.tar.gz
Source1: https://github.com/cpuguy83/go-md2man/archive/v1.0.10.tar.gz
Name: slirp4netns
Version: 1.2.3
Release: 1
Summary: slirp for network namespaces
License: GPL-2.0-only
URL: https://github.com/rootless-containers/slirp4netns
Source0: %{url}/archive/%{built_tag}.tar.gz
Source1: https://github.com/cpuguy83/go-md2man/archive/refs/tags/v2.0.3.tar.gz
BuildRequires: autoconf automake gcc glib2-devel
BuildRequires: git libcap-devel golang
BuildRequires: libseccomp-devel libslirp-devel make
@ -33,7 +28,7 @@ building other packages which use import path with
%{import_path} prefix.
%prep
%autosetup -Sgit -n %{name}-%{commit0}
%autosetup -Sgit -n %{name}-%{built_tag_strip}
tar -xf %SOURCE1
%build
@ -64,5 +59,17 @@ make DESTDIR=%{buildroot} install install-man
%{_mandir}/man1/%{name}.1.gz
%changelog
* Fri Apr 12 2024 duyiwei <duyiwei@kylinos.cn> - 1.2.3-1
- upgrade version to 1.2.3
* Wed Jan 03 2024 lijian <lijian2@kylinos.cn> - 1.2.2-1
- upgrade to 1.2.2
* Fri Dec 09 2022 liukuo <liukuo@kylinos.cn> - 1.2.0-2
- License compliance rectification
* Tue Jun 07 2022 duyiwei <duyiwei@kylinos.cn> - 1.2.0-1
- upgrade to v1.2.0
* Wed Jan 26 2022 duyiwei <duyiwei@kylinos.cn> - 1.1.9-1
- Package init
- Package init

4
slirp4netns.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: github
src_repo: rootless-containers/slirp4netns
tag_prefix: "^v"
separator: "."

Binary file not shown.

BIN
v1.2.3.tar.gz Normal file

Binary file not shown.

BIN
v2.0.3.tar.gz Normal file

Binary file not shown.