1 |
alunduil 15/07/04 23:14:50 |
2 |
|
3 |
Modified: docker-r2.initd docker.service |
4 |
Added: docker.initd 7179-add-audit_write-cap.patch |
5 |
docker-r3.confd docker-r3.initd |
6 |
Log: |
7 |
add version 1.6.2 |
8 |
|
9 |
fixes bug #553706 |
10 |
|
11 |
(Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key 11A8217C!) |
12 |
|
13 |
Revision Changes Path |
14 |
1.2 app-emulation/docker/files/docker-r2.initd |
15 |
|
16 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/docker/files/docker-r2.initd?rev=1.2&view=markup |
17 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/docker/files/docker-r2.initd?rev=1.2&content-type=text/plain |
18 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/docker/files/docker-r2.initd?r1=1.1&r2=1.2 |
19 |
|
20 |
Index: docker-r2.initd |
21 |
=================================================================== |
22 |
RCS file: /var/cvsroot/gentoo-x86/app-emulation/docker/files/docker-r2.initd,v |
23 |
retrieving revision 1.1 |
24 |
retrieving revision 1.2 |
25 |
diff -u -r1.1 -r1.2 |
26 |
--- docker-r2.initd 25 Sep 2013 03:22:15 -0000 1.1 |
27 |
+++ docker-r2.initd 4 Jul 2015 23:14:50 -0000 1.2 |
28 |
@@ -1,7 +1,7 @@ |
29 |
#!/sbin/runscript |
30 |
-# Copyright 1999-2013 Gentoo Foundation |
31 |
+# Copyright 1999-2015 Gentoo Foundation |
32 |
# Distributed under the terms of the GNU General Public License v2 |
33 |
-# $Header: /var/cvsroot/gentoo-x86/app-emulation/docker/files/docker-r2.initd,v 1.1 2013/09/25 03:22:15 gregkh Exp $ |
34 |
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/docker/files/docker-r2.initd,v 1.2 2015/07/04 23:14:50 alunduil Exp $ |
35 |
|
36 |
DOCKER_LOGFILE=${DOCKER_LOGFILE:-/var/log/${SVCNAME}.log} |
37 |
DOCKER_PIDFILE=${DOCKER_PIDFILE:-/run/${SVCNAME}.pid} |
38 |
@@ -10,9 +10,7 @@ |
39 |
DOCKER_WORKAROUND_1422_DELAY=${DOCKER_WORKAROUND_1422_DELAY:-1} |
40 |
|
41 |
start() { |
42 |
- touch "$DOCKER_LOGFILE" |
43 |
- chown root:docker "$DOCKER_LOGFILE" |
44 |
- chmod 0644 "$DOCKER_LOGFILE" |
45 |
+ checkpath -f -m 0644 -o root:docker "$DOCKER_LOGFILE" |
46 |
|
47 |
ebegin "Starting docker daemon" |
48 |
start-stop-daemon --start --background \ |
49 |
|
50 |
|
51 |
|
52 |
1.2 app-emulation/docker/files/docker.service |
53 |
|
54 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/docker/files/docker.service?rev=1.2&view=markup |
55 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/docker/files/docker.service?rev=1.2&content-type=text/plain |
56 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/docker/files/docker.service?r1=1.1&r2=1.2 |
57 |
|
58 |
Index: docker.service |
59 |
=================================================================== |
60 |
RCS file: /var/cvsroot/gentoo-x86/app-emulation/docker/files/docker.service,v |
61 |
retrieving revision 1.1 |
62 |
retrieving revision 1.2 |
63 |
diff -u -r1.1 -r1.2 |
64 |
--- docker.service 25 Sep 2013 03:22:15 -0000 1.1 |
65 |
+++ docker.service 4 Jul 2015 23:14:50 -0000 1.2 |
66 |
@@ -1,5 +1,5 @@ |
67 |
[Unit] |
68 |
-Description=Docker - The Linux Container Engine |
69 |
+Description=Easily create lightweight, portable, self-sufficient containers from any application! |
70 |
Requires=network.target |
71 |
After=multi-user.target |
72 |
|
73 |
@@ -7,7 +7,6 @@ |
74 |
Type=simple |
75 |
ExecStartPre=/bin/mount --make-rprivate / |
76 |
ExecStart=/usr/bin/docker -d |
77 |
-TimeoutSec=60 |
78 |
|
79 |
[Install] |
80 |
WantedBy=multi-user.target |
81 |
|
82 |
|
83 |
|
84 |
1.3 app-emulation/docker/files/docker.initd |
85 |
|
86 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/docker/files/docker.initd?rev=1.3&view=markup |
87 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/docker/files/docker.initd?rev=1.3&content-type=text/plain |
88 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/docker/files/docker.initd?r1=1.2&r2=1.3 |
89 |
|
90 |
|
91 |
|
92 |
|
93 |
1.1 app-emulation/docker/files/7179-add-audit_write-cap.patch |
94 |
|
95 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/docker/files/7179-add-audit_write-cap.patch?rev=1.1&view=markup |
96 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/docker/files/7179-add-audit_write-cap.patch?rev=1.1&content-type=text/plain |
97 |
|
98 |
Index: 7179-add-audit_write-cap.patch |
99 |
=================================================================== |
100 |
From 29ecc95c31ecfe15e3b3d8db94cea1c555e526a3 Mon Sep 17 00:00:00 2001 |
101 |
From: Alexandr Morozov <lk4d4math@×××××.com> |
102 |
Date: Wed, 23 Jul 2014 09:57:41 +0400 |
103 |
Subject: [PATCH] Add AUDIT_WRITE cap |
104 |
|
105 |
Fixes #6345 |
106 |
|
107 |
Thanks @larsks for outstanding investigation |
108 |
|
109 |
Docker-DCO-1.1-Signed-off-by: Alexandr Morozov <lk4d4math@×××××.com> (github: LK4D4) |
110 |
--- |
111 |
daemon/execdriver/native/template/default_template.go | 1 + |
112 |
1 file changed, 1 insertion(+) |
113 |
|
114 |
diff --git a/daemon/execdriver/native/template/default_template.go b/daemon/execdriver/native/template/default_template.go |
115 |
index cc5cc4f..be3dd5a 100644 |
116 |
--- a/daemon/execdriver/native/template/default_template.go |
117 |
+++ b/daemon/execdriver/native/template/default_template.go |
118 |
@@ -23,6 +23,7 @@ func New() *libcontainer.Config { |
119 |
"NET_BIND_SERVICE", |
120 |
"SYS_CHROOT", |
121 |
"KILL", |
122 |
+ "AUDIT_WRITE", |
123 |
}, |
124 |
Namespaces: map[string]bool{ |
125 |
"NEWNS": true, |
126 |
-- |
127 |
2.0.3 |
128 |
|
129 |
|
130 |
|
131 |
|
132 |
1.1 app-emulation/docker/files/docker-r3.confd |
133 |
|
134 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/docker/files/docker-r3.confd?rev=1.1&view=markup |
135 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/docker/files/docker-r3.confd?rev=1.1&content-type=text/plain |
136 |
|
137 |
Index: docker-r3.confd |
138 |
=================================================================== |
139 |
# /etc/conf.d/docker: config file for /etc/init.d/docker |
140 |
|
141 |
# where the docker daemon output gets piped |
142 |
#DOCKER_LOGFILE="/var/log/docker.log" |
143 |
|
144 |
# where docker's pid get stored |
145 |
#DOCKER_PIDFILE="/run/docker.pid" |
146 |
|
147 |
# where the docker daemon itself is run from |
148 |
#DOCKER_BINARY="/usr/bin/docker" |
149 |
|
150 |
# any other random options you want to pass to docker |
151 |
DOCKER_OPTS="" |
152 |
|
153 |
|
154 |
|
155 |
1.1 app-emulation/docker/files/docker-r3.initd |
156 |
|
157 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/docker/files/docker-r3.initd?rev=1.1&view=markup |
158 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/docker/files/docker-r3.initd?rev=1.1&content-type=text/plain |
159 |
|
160 |
Index: docker-r3.initd |
161 |
=================================================================== |
162 |
#!/sbin/runscript |
163 |
# Copyright 1999-2015 Gentoo Foundation |
164 |
# Distributed under the terms of the GNU General Public License v2 |
165 |
# $Header: /var/cvsroot/gentoo-x86/app-emulation/docker/files/docker-r3.initd,v 1.1 2015/07/04 23:14:50 alunduil Exp $ |
166 |
|
167 |
DOCKER_LOGFILE=${DOCKER_LOGFILE:-/var/log/${SVCNAME}.log} |
168 |
DOCKER_PIDFILE=${DOCKER_PIDFILE:-/run/${SVCNAME}.pid} |
169 |
DOCKER_BINARY=${DOCKER_BINARY:-/usr/bin/docker} |
170 |
DOCKER_OPTS=${DOCKER_OPTS:-} |
171 |
|
172 |
start() { |
173 |
checkpath -f -m 0644 -o root:docker "$DOCKER_LOGFILE" |
174 |
|
175 |
ebegin "Starting docker daemon" |
176 |
start-stop-daemon --start --background \ |
177 |
--exec "$DOCKER_BINARY" \ |
178 |
--pidfile "$DOCKER_PIDFILE" \ |
179 |
--stdout "$DOCKER_LOGFILE" \ |
180 |
--stderr "$DOCKER_LOGFILE" \ |
181 |
-- -d -p "$DOCKER_PIDFILE" \ |
182 |
$DOCKER_OPTS |
183 |
eend $? |
184 |
} |
185 |
|
186 |
stop() { |
187 |
ebegin "Stopping docker daemon" |
188 |
start-stop-daemon --stop \ |
189 |
--exec "$DOCKER_BINARY" \ |
190 |
--pidfile "$DOCKER_PIDFILE" |
191 |
eend $? |
192 |
} |