]>
Commit | Line | Data |
---|---|---|
525421c9 SG |
1 | if ENABLE_TESTS |
2 | ||
d6e12907 CB |
3 | LDADD = ../lxc/liblxc.la \ |
4 | @CAP_LIBS@ \ | |
5 | @OPENSSL_LIBS@ \ | |
6 | @SECCOMP_LIBS@ \ | |
7 | @SELINUX_LIBS@ \ | |
543d2f83 CB |
8 | @DLOG_LIBS@ \ |
9 | @LIBURING_LIBS@ | |
fd5c4f90 | 10 | |
ebbde173 CB |
11 | LSM_SOURCES = ../lxc/lsm/lsm.c \ |
12 | ../lxc/lsm/lsm.h \ | |
13 | ../lxc/lsm/nop.c | |
14 | ||
15 | if ENABLE_APPARMOR | |
16 | LSM_SOURCES += ../lxc/lsm/apparmor.c | |
17 | endif | |
18 | ||
19 | if ENABLE_SELINUX | |
20 | LSM_SOURCES += ../lxc/lsm/selinux.c | |
21 | endif | |
22 | ||
90658f16 | 23 | lxc_test_arch_parse_SOURCES = arch_parse.c \ |
90658f16 | 24 | lxctest.h \ |
4fb70d07 CB |
25 | ../lxc/lxc.h \ |
26 | ../lxc/memory_utils.h | |
90658f16 | 27 | |
4a9ee78a CB |
28 | lxc_test_api_reboot_SOURCES = api_reboot.c \ |
29 | ../lxc/af_unix.c ../lxc/af_unix.h \ | |
30 | ../lxc/caps.c ../lxc/caps.h \ | |
59eac805 | 31 | ../lxc/cgroups/cgfsng.c \ |
c332ec90 CB |
32 | ../lxc/cgroups/cgroup.c ../lxc/cgroups/cgroup.h \ |
33 | ../lxc/cgroups/cgroup2_devices.c ../lxc/cgroups/cgroup2_devices.h \ | |
34 | ../lxc/cgroups/cgroup_utils.c ../lxc/cgroups/cgroup_utils.h \ | |
4a9ee78a CB |
35 | ../lxc/commands.c ../lxc/commands.h \ |
36 | ../lxc/commands_utils.c ../lxc/commands_utils.h \ | |
37 | ../lxc/conf.c ../lxc/conf.h \ | |
38 | ../lxc/confile.c ../lxc/confile.h \ | |
39 | ../lxc/confile_utils.c ../lxc/confile_utils.h \ | |
8c8cd087 | 40 | ../lxc/error.c ../lxc/error.h \ |
4a9ee78a | 41 | ../lxc/file_utils.c ../lxc/file_utils.h \ |
59eac805 | 42 | ../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \ |
f575e7ef | 43 | ../lxc/initutils.c ../lxc/initutils.h \ |
07d1f84a | 44 | ../lxc/log.c ../lxc/log.h \ |
8c8cd087 | 45 | ../lxc/lxclock.c ../lxc/lxclock.h \ |
d50aa57f | 46 | ../lxc/mainloop.c ../lxc/mainloop.h \ |
8c8cd087 | 47 | ../lxc/monitor.c ../lxc/monitor.h \ |
74ed30d7 | 48 | ../lxc/mount_utils.c ../lxc/mount_utils.h \ |
9e20bf04 | 49 | ../lxc/namespace.c ../lxc/namespace.h \ |
4a9ee78a CB |
50 | ../lxc/network.c ../lxc/network.h \ |
51 | ../lxc/nl.c ../lxc/nl.h \ | |
a804cff7 | 52 | ../lxc/parse.c ../lxc/parse.h \ |
92a10958 | 53 | ../lxc/process_utils.c ../lxc/process_utils.h \ |
f6fea473 | 54 | ../lxc/ringbuf.c ../lxc/ringbuf.h \ |
8c8cd087 | 55 | ../lxc/start.c ../lxc/start.h \ |
1bf5f812 | 56 | ../lxc/state.c ../lxc/state.h \ |
2284f8a5 CB |
57 | ../lxc/storage/btrfs.c ../lxc/storage/btrfs.h \ |
58 | ../lxc/storage/dir.c ../lxc/storage/dir.h \ | |
59 | ../lxc/storage/loop.c ../lxc/storage/loop.h \ | |
60 | ../lxc/storage/lvm.c ../lxc/storage/lvm.h \ | |
61 | ../lxc/storage/nbd.c ../lxc/storage/nbd.h \ | |
62 | ../lxc/storage/overlay.c ../lxc/storage/overlay.h \ | |
63 | ../lxc/storage/rbd.c ../lxc/storage/rbd.h \ | |
64 | ../lxc/storage/rsync.c ../lxc/storage/rsync.h \ | |
65 | ../lxc/storage/storage.c ../lxc/storage/storage.h \ | |
66 | ../lxc/storage/storage_utils.c ../lxc/storage/storage_utils.h \ | |
67 | ../lxc/storage/zfs.c ../lxc/storage/zfs.h \ | |
bf1ca416 | 68 | ../lxc/sync.c ../lxc/sync.h \ |
cd6b82e4 | 69 | ../lxc/string_utils.c ../lxc/string_utils.h \ |
5f1b0986 | 70 | ../lxc/terminal.c ../lxc/terminal.h \ |
78ad1eb0 | 71 | ../lxc/utils.c ../lxc/utils.h \ |
ebbde173 CB |
72 | ../lxc/uuid.c ../lxc/uuid.h \ |
73 | $(LSM_SOURCES) | |
d6e12907 CB |
74 | if ENABLE_SECCOMP |
75 | lxc_test_api_reboot_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h | |
76 | endif | |
77 | ||
317410da CB |
78 | if !HAVE_STRCHRNUL |
79 | lxc_test_api_reboot_SOURCES += ../include/strchrnul.c ../include/strchrnul.h | |
80 | endif | |
81 | ||
646b75b5 CB |
82 | if !HAVE_STRLCPY |
83 | lxc_test_api_reboot_SOURCES += ../include/strlcpy.c ../include/strlcpy.h | |
84 | endif | |
85 | ||
86 | if !HAVE_STRLCAT | |
87 | lxc_test_api_reboot_SOURCES += ../include/strlcat.c ../include/strlcat.h | |
88 | endif | |
89 | ||
90 | if !HAVE_OPENPTY | |
91 | lxc_test_api_reboot_SOURCES += ../include/openpty.c ../include/openpty.h | |
92 | endif | |
93 | ||
94 | if IS_BIONIC | |
95 | lxc_test_api_reboot_SOURCES += ../include/fexecve.c ../include/fexecve.h \ | |
96 | ../include/lxcmntent.c ../include/lxcmntent.h | |
97 | endif | |
98 | ||
99 | if !HAVE_GETGRGID_R | |
100 | lxc_test_api_reboot_SOURCES += ../include/getgrgid_r.c ../include/getgrgid_r.h | |
101 | endif | |
102 | ||
103 | if !HAVE_PRLIMIT | |
104 | if HAVE_PRLIMIT64 | |
105 | lxc_test_api_reboot_SOURCES += ../include/prlimit.c ../include/prlimit.h | |
106 | endif | |
107 | endif | |
108 | ||
5f1b0986 CB |
109 | lxc_test_apparmor_SOURCES = aa.c \ |
110 | ../lxc/af_unix.c ../lxc/af_unix.h \ | |
111 | ../lxc/caps.c ../lxc/caps.h \ | |
59eac805 | 112 | ../lxc/cgroups/cgfsng.c \ |
c332ec90 CB |
113 | ../lxc/cgroups/cgroup.c ../lxc/cgroups/cgroup.h \ |
114 | ../lxc/cgroups/cgroup2_devices.c ../lxc/cgroups/cgroup2_devices.h \ | |
115 | ../lxc/cgroups/cgroup_utils.c ../lxc/cgroups/cgroup_utils.h \ | |
5f1b0986 CB |
116 | ../lxc/commands.c ../lxc/commands.h \ |
117 | ../lxc/commands_utils.c ../lxc/commands_utils.h \ | |
118 | ../lxc/conf.c ../lxc/conf.h \ | |
119 | ../lxc/confile.c ../lxc/confile.h \ | |
120 | ../lxc/confile_utils.c ../lxc/confile_utils.h \ | |
121 | ../lxc/error.c ../lxc/error.h \ | |
122 | ../lxc/file_utils.c ../lxc/file_utils.h \ | |
59eac805 | 123 | ../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \ |
5f1b0986 CB |
124 | ../lxc/initutils.c ../lxc/initutils.h \ |
125 | ../lxc/log.c ../lxc/log.h \ | |
126 | ../lxc/lxclock.c ../lxc/lxclock.h \ | |
127 | ../lxc/mainloop.c ../lxc/mainloop.h \ | |
128 | ../lxc/monitor.c ../lxc/monitor.h \ | |
74ed30d7 | 129 | ../lxc/mount_utils.c ../lxc/mount_utils.h \ |
5f1b0986 CB |
130 | ../lxc/namespace.c ../lxc/namespace.h \ |
131 | ../lxc/network.c ../lxc/network.h \ | |
132 | ../lxc/nl.c ../lxc/nl.h \ | |
133 | ../lxc/parse.c ../lxc/parse.h \ | |
134 | ../lxc/process_utils.c ../lxc/process_utils.h \ | |
135 | ../lxc/ringbuf.c ../lxc/ringbuf.h \ | |
136 | ../lxc/start.c ../lxc/start.h \ | |
137 | ../lxc/state.c ../lxc/state.h \ | |
2284f8a5 CB |
138 | ../lxc/storage/btrfs.c ../lxc/storage/btrfs.h \ |
139 | ../lxc/storage/dir.c ../lxc/storage/dir.h \ | |
140 | ../lxc/storage/loop.c ../lxc/storage/loop.h \ | |
141 | ../lxc/storage/lvm.c ../lxc/storage/lvm.h \ | |
142 | ../lxc/storage/nbd.c ../lxc/storage/nbd.h \ | |
143 | ../lxc/storage/overlay.c ../lxc/storage/overlay.h \ | |
144 | ../lxc/storage/rbd.c ../lxc/storage/rbd.h \ | |
145 | ../lxc/storage/rsync.c ../lxc/storage/rsync.h \ | |
146 | ../lxc/storage/storage.c ../lxc/storage/storage.h \ | |
147 | ../lxc/storage/storage_utils.c ../lxc/storage/storage_utils.h \ | |
148 | ../lxc/storage/zfs.c ../lxc/storage/zfs.h \ | |
5f1b0986 CB |
149 | ../lxc/sync.c ../lxc/sync.h \ |
150 | ../lxc/string_utils.c ../lxc/string_utils.h \ | |
151 | ../lxc/terminal.c ../lxc/terminal.h \ | |
78ad1eb0 | 152 | ../lxc/utils.c ../lxc/utils.h \ |
ebbde173 CB |
153 | ../lxc/uuid.c ../lxc/uuid.h \ |
154 | $(LSM_SOURCES) | |
5f1b0986 CB |
155 | if ENABLE_SECCOMP |
156 | lxc_test_apparmor_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h | |
157 | endif | |
158 | ||
317410da CB |
159 | if !HAVE_STRCHRNUL |
160 | lxc_test_apparmor_SOURCES += ../include/strchrnul.c ../include/strchrnul.h | |
161 | endif | |
162 | ||
646b75b5 CB |
163 | if !HAVE_STRLCPY |
164 | lxc_test_apparmor_SOURCES += ../include/strlcpy.c ../include/strlcpy.h | |
165 | endif | |
166 | ||
167 | if !HAVE_STRLCAT | |
168 | lxc_test_apparmor_SOURCES += ../include/strlcat.c ../include/strlcat.h | |
169 | endif | |
170 | ||
171 | if !HAVE_OPENPTY | |
172 | lxc_test_apparmor_SOURCES += ../include/openpty.c ../include/openpty.h | |
173 | endif | |
174 | ||
175 | if IS_BIONIC | |
176 | lxc_test_apparmor_SOURCES += ../include/fexecve.c ../include/fexecve.h \ | |
177 | ../include/lxcmntent.c ../include/lxcmntent.h | |
178 | endif | |
179 | ||
180 | if !HAVE_GETGRGID_R | |
181 | lxc_test_apparmor_SOURCES += ../include/getgrgid_r.c ../include/getgrgid_r.h | |
182 | endif | |
183 | ||
184 | if !HAVE_PRLIMIT | |
185 | if HAVE_PRLIMIT64 | |
186 | lxc_test_apparmor_SOURCES += ../include/prlimit.c ../include/prlimit.h | |
187 | endif | |
188 | endif | |
189 | ||
4a9ee78a CB |
190 | lxc_test_attach_SOURCES = attach.c \ |
191 | ../lxc/af_unix.c ../lxc/af_unix.h \ | |
192 | ../lxc/caps.c ../lxc/caps.h \ | |
59eac805 | 193 | ../lxc/cgroups/cgfsng.c \ |
c332ec90 CB |
194 | ../lxc/cgroups/cgroup.c ../lxc/cgroups/cgroup.h \ |
195 | ../lxc/cgroups/cgroup2_devices.c ../lxc/cgroups/cgroup2_devices.h \ | |
196 | ../lxc/cgroups/cgroup_utils.c ../lxc/cgroups/cgroup_utils.h \ | |
4a9ee78a CB |
197 | ../lxc/commands.c ../lxc/commands.h \ |
198 | ../lxc/commands_utils.c ../lxc/commands_utils.h \ | |
199 | ../lxc/conf.c ../lxc/conf.h \ | |
200 | ../lxc/confile.c ../lxc/confile.h \ | |
201 | ../lxc/confile_utils.c ../lxc/confile_utils.h \ | |
8c8cd087 | 202 | ../lxc/error.c ../lxc/error.h \ |
4a9ee78a | 203 | ../lxc/file_utils.c ../lxc/file_utils.h \ |
59eac805 | 204 | ../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \ |
f575e7ef | 205 | ../lxc/initutils.c ../lxc/initutils.h \ |
07d1f84a | 206 | ../lxc/log.c ../lxc/log.h \ |
8c8cd087 | 207 | ../lxc/lxclock.c ../lxc/lxclock.h \ |
d50aa57f | 208 | ../lxc/mainloop.c ../lxc/mainloop.h \ |
8c8cd087 | 209 | ../lxc/monitor.c ../lxc/monitor.h \ |
74ed30d7 | 210 | ../lxc/mount_utils.c ../lxc/mount_utils.h \ |
9e20bf04 | 211 | ../lxc/namespace.c ../lxc/namespace.h \ |
4a9ee78a CB |
212 | ../lxc/network.c ../lxc/network.h \ |
213 | ../lxc/nl.c ../lxc/nl.h \ | |
a804cff7 | 214 | ../lxc/parse.c ../lxc/parse.h \ |
92a10958 | 215 | ../lxc/process_utils.c ../lxc/process_utils.h \ |
f6fea473 | 216 | ../lxc/ringbuf.c ../lxc/ringbuf.h \ |
8c8cd087 | 217 | ../lxc/start.c ../lxc/start.h \ |
1bf5f812 | 218 | ../lxc/state.c ../lxc/state.h \ |
2284f8a5 CB |
219 | ../lxc/storage/btrfs.c ../lxc/storage/btrfs.h \ |
220 | ../lxc/storage/dir.c ../lxc/storage/dir.h \ | |
221 | ../lxc/storage/loop.c ../lxc/storage/loop.h \ | |
222 | ../lxc/storage/lvm.c ../lxc/storage/lvm.h \ | |
223 | ../lxc/storage/nbd.c ../lxc/storage/nbd.h \ | |
224 | ../lxc/storage/overlay.c ../lxc/storage/overlay.h \ | |
225 | ../lxc/storage/rbd.c ../lxc/storage/rbd.h \ | |
226 | ../lxc/storage/rsync.c ../lxc/storage/rsync.h \ | |
227 | ../lxc/storage/storage.c ../lxc/storage/storage.h \ | |
228 | ../lxc/storage/storage_utils.c ../lxc/storage/storage_utils.h \ | |
229 | ../lxc/storage/zfs.c ../lxc/storage/zfs.h \ | |
bf1ca416 | 230 | ../lxc/sync.c ../lxc/sync.h \ |
cd6b82e4 | 231 | ../lxc/string_utils.c ../lxc/string_utils.h \ |
5f1b0986 | 232 | ../lxc/terminal.c ../lxc/terminal.h \ |
78ad1eb0 | 233 | ../lxc/utils.c ../lxc/utils.h \ |
ebbde173 CB |
234 | ../lxc/uuid.c ../lxc/uuid.h \ |
235 | $(LSM_SOURCES) | |
d6e12907 CB |
236 | if ENABLE_SECCOMP |
237 | lxc_test_attach_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h | |
238 | endif | |
239 | ||
317410da CB |
240 | if !HAVE_STRCHRNUL |
241 | lxc_test_attach_SOURCES += ../include/strchrnul.c ../include/strchrnul.h | |
242 | endif | |
243 | ||
646b75b5 CB |
244 | if !HAVE_STRLCPY |
245 | lxc_test_attach_SOURCES += ../include/strlcpy.c ../include/strlcpy.h | |
246 | endif | |
247 | ||
248 | if !HAVE_STRLCAT | |
249 | lxc_test_attach_SOURCES += ../include/strlcat.c ../include/strlcat.h | |
250 | endif | |
251 | ||
252 | if !HAVE_OPENPTY | |
253 | lxc_test_attach_SOURCES += ../include/openpty.c ../include/openpty.h | |
254 | endif | |
255 | ||
256 | if IS_BIONIC | |
257 | lxc_test_attach_SOURCES += ../include/fexecve.c ../include/fexecve.h \ | |
258 | ../include/lxcmntent.c ../include/lxcmntent.h | |
259 | endif | |
260 | ||
261 | if !HAVE_GETGRGID_R | |
262 | lxc_test_attach_SOURCES += ../include/getgrgid_r.c ../include/getgrgid_r.h | |
263 | endif | |
264 | ||
265 | if !HAVE_PRLIMIT | |
266 | if HAVE_PRLIMIT64 | |
267 | lxc_test_attach_SOURCES += ../include/prlimit.c ../include/prlimit.h | |
268 | endif | |
269 | endif | |
270 | ||
c8208ff0 | 271 | lxc_test_basic_SOURCES = basic.c |
7ebbfe89 CB |
272 | lxc_test_cgpath_SOURCES = cgpath.c \ |
273 | ../lxc/af_unix.c ../lxc/af_unix.h \ | |
63c2a0bf | 274 | ../lxc/caps.c ../lxc/caps.h \ |
59eac805 | 275 | ../lxc/cgroups/cgfsng.c \ |
c332ec90 CB |
276 | ../lxc/cgroups/cgroup.c ../lxc/cgroups/cgroup.h \ |
277 | ../lxc/cgroups/cgroup2_devices.c ../lxc/cgroups/cgroup2_devices.h \ | |
278 | ../lxc/cgroups/cgroup_utils.c ../lxc/cgroups/cgroup_utils.h \ | |
7ebbfe89 | 279 | ../lxc/commands.c ../lxc/commands.h \ |
94a5e86b | 280 | ../lxc/commands_utils.c ../lxc/commands_utils.h \ |
63c2a0bf CB |
281 | ../lxc/conf.c ../lxc/conf.h \ |
282 | ../lxc/confile.c ../lxc/confile.h \ | |
f64e249d | 283 | ../lxc/confile_utils.c ../lxc/confile_utils.h \ |
8c8cd087 | 284 | ../lxc/error.c ../lxc/error.h \ |
4a9ee78a | 285 | ../lxc/file_utils.c ../lxc/file_utils.h \ |
59eac805 | 286 | ../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \ |
f575e7ef | 287 | ../lxc/initutils.c ../lxc/initutils.h \ |
07d1f84a | 288 | ../lxc/log.c ../lxc/log.h \ |
8c8cd087 | 289 | ../lxc/lxclock.c ../lxc/lxclock.h \ |
d50aa57f | 290 | ../lxc/mainloop.c ../lxc/mainloop.h \ |
8c8cd087 | 291 | ../lxc/monitor.c ../lxc/monitor.h \ |
74ed30d7 | 292 | ../lxc/mount_utils.c ../lxc/mount_utils.h \ |
9e20bf04 | 293 | ../lxc/namespace.c ../lxc/namespace.h \ |
63c2a0bf CB |
294 | ../lxc/network.c ../lxc/network.h \ |
295 | ../lxc/nl.c ../lxc/nl.h \ | |
a804cff7 | 296 | ../lxc/parse.c ../lxc/parse.h \ |
92a10958 | 297 | ../lxc/process_utils.c ../lxc/process_utils.h \ |
f6fea473 | 298 | ../lxc/ringbuf.c ../lxc/ringbuf.h \ |
8c8cd087 | 299 | ../lxc/start.c ../lxc/start.h \ |
1bf5f812 | 300 | ../lxc/state.c ../lxc/state.h \ |
2284f8a5 CB |
301 | ../lxc/storage/btrfs.c ../lxc/storage/btrfs.h \ |
302 | ../lxc/storage/dir.c ../lxc/storage/dir.h \ | |
303 | ../lxc/storage/loop.c ../lxc/storage/loop.h \ | |
304 | ../lxc/storage/lvm.c ../lxc/storage/lvm.h \ | |
305 | ../lxc/storage/nbd.c ../lxc/storage/nbd.h \ | |
306 | ../lxc/storage/overlay.c ../lxc/storage/overlay.h \ | |
307 | ../lxc/storage/rbd.c ../lxc/storage/rbd.h \ | |
308 | ../lxc/storage/rsync.c ../lxc/storage/rsync.h \ | |
309 | ../lxc/storage/storage.c ../lxc/storage/storage.h \ | |
310 | ../lxc/storage/storage_utils.c ../lxc/storage/storage_utils.h \ | |
311 | ../lxc/storage/zfs.c ../lxc/storage/zfs.h \ | |
bf1ca416 | 312 | ../lxc/sync.c ../lxc/sync.h \ |
cd6b82e4 | 313 | ../lxc/string_utils.c ../lxc/string_utils.h \ |
5f1b0986 | 314 | ../lxc/terminal.c ../lxc/terminal.h \ |
78ad1eb0 | 315 | ../lxc/utils.c ../lxc/utils.h \ |
ebbde173 CB |
316 | ../lxc/uuid.c ../lxc/uuid.h \ |
317 | $(LSM_SOURCES) | |
d6e12907 CB |
318 | if ENABLE_SECCOMP |
319 | lxc_test_cgpath_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h | |
320 | endif | |
321 | ||
317410da CB |
322 | if !HAVE_STRCHRNUL |
323 | lxc_test_cgpath_SOURCES += ../include/strchrnul.c ../include/strchrnul.h | |
324 | endif | |
325 | ||
646b75b5 CB |
326 | if !HAVE_STRLCPY |
327 | lxc_test_cgpath_SOURCES += ../include/strlcpy.c ../include/strlcpy.h | |
328 | endif | |
329 | ||
330 | if !HAVE_STRLCAT | |
331 | lxc_test_cgpath_SOURCES += ../include/strlcat.c ../include/strlcat.h | |
332 | endif | |
333 | ||
334 | if !HAVE_OPENPTY | |
335 | lxc_test_cgpath_SOURCES += ../include/openpty.c ../include/openpty.h | |
336 | endif | |
337 | ||
338 | if IS_BIONIC | |
339 | lxc_test_cgpath_SOURCES += ../include/fexecve.c ../include/fexecve.h \ | |
340 | ../include/lxcmntent.c ../include/lxcmntent.h | |
341 | endif | |
342 | ||
343 | if !HAVE_GETGRGID_R | |
344 | lxc_test_cgpath_SOURCES += ../include/getgrgid_r.c ../include/getgrgid_r.h | |
345 | endif | |
346 | ||
347 | if !HAVE_PRLIMIT | |
348 | if HAVE_PRLIMIT64 | |
349 | lxc_test_cgpath_SOURCES += ../include/prlimit.c ../include/prlimit.h | |
350 | endif | |
351 | endif | |
352 | ||
9be53773 | 353 | lxc_test_clonetest_SOURCES = clonetest.c |
691544a0 | 354 | lxc_test_concurrent_SOURCES = concurrent.c |
63c2a0bf CB |
355 | lxc_test_config_jump_table_SOURCES = config_jump_table.c \ |
356 | lxctest.h \ | |
357 | ../lxc/af_unix.c ../lxc/af_unix.h \ | |
358 | ../lxc/caps.c ../lxc/caps.h \ | |
59eac805 | 359 | ../lxc/cgroups/cgfsng.c \ |
c332ec90 CB |
360 | ../lxc/cgroups/cgroup.c ../lxc/cgroups/cgroup.h \ |
361 | ../lxc/cgroups/cgroup2_devices.c ../lxc/cgroups/cgroup2_devices.h \ | |
362 | ../lxc/cgroups/cgroup_utils.c ../lxc/cgroups/cgroup_utils.h \ | |
f64e249d CB |
363 | ../lxc/commands.c ../lxc/commands.h \ |
364 | ../lxc/commands_utils.c ../lxc/commands_utils.h \ | |
63c2a0bf CB |
365 | ../lxc/conf.c ../lxc/conf.h \ |
366 | ../lxc/confile.c ../lxc/confile.h \ | |
f64e249d | 367 | ../lxc/confile_utils.c ../lxc/confile_utils.h \ |
8c8cd087 | 368 | ../lxc/error.c ../lxc/error.h \ |
4a9ee78a | 369 | ../lxc/file_utils.c ../lxc/file_utils.h \ |
59eac805 | 370 | ../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \ |
f575e7ef | 371 | ../lxc/initutils.c ../lxc/initutils.h \ |
07d1f84a | 372 | ../lxc/log.c ../lxc/log.h \ |
8c8cd087 | 373 | ../lxc/lxclock.c ../lxc/lxclock.h \ |
d50aa57f | 374 | ../lxc/mainloop.c ../lxc/mainloop.h \ |
8c8cd087 | 375 | ../lxc/monitor.c ../lxc/monitor.h \ |
74ed30d7 | 376 | ../lxc/mount_utils.c ../lxc/mount_utils.h \ |
9e20bf04 | 377 | ../lxc/namespace.c ../lxc/namespace.h \ |
63c2a0bf CB |
378 | ../lxc/network.c ../lxc/network.h \ |
379 | ../lxc/nl.c ../lxc/nl.h \ | |
a804cff7 | 380 | ../lxc/parse.c ../lxc/parse.h \ |
92a10958 | 381 | ../lxc/process_utils.c ../lxc/process_utils.h \ |
f6fea473 | 382 | ../lxc/ringbuf.c ../lxc/ringbuf.h \ |
8c8cd087 | 383 | ../lxc/start.c ../lxc/start.h \ |
1bf5f812 | 384 | ../lxc/state.c ../lxc/state.h \ |
2284f8a5 CB |
385 | ../lxc/storage/btrfs.c ../lxc/storage/btrfs.h \ |
386 | ../lxc/storage/dir.c ../lxc/storage/dir.h \ | |
387 | ../lxc/storage/loop.c ../lxc/storage/loop.h \ | |
388 | ../lxc/storage/lvm.c ../lxc/storage/lvm.h \ | |
389 | ../lxc/storage/nbd.c ../lxc/storage/nbd.h \ | |
390 | ../lxc/storage/overlay.c ../lxc/storage/overlay.h \ | |
391 | ../lxc/storage/rbd.c ../lxc/storage/rbd.h \ | |
392 | ../lxc/storage/rsync.c ../lxc/storage/rsync.h \ | |
393 | ../lxc/storage/storage.c ../lxc/storage/storage.h \ | |
394 | ../lxc/storage/storage_utils.c ../lxc/storage/storage_utils.h \ | |
395 | ../lxc/storage/zfs.c ../lxc/storage/zfs.h \ | |
bf1ca416 | 396 | ../lxc/sync.c ../lxc/sync.h \ |
cd6b82e4 | 397 | ../lxc/string_utils.c ../lxc/string_utils.h \ |
5f1b0986 | 398 | ../lxc/terminal.c ../lxc/terminal.h \ |
78ad1eb0 | 399 | ../lxc/utils.c ../lxc/utils.h \ |
ebbde173 CB |
400 | ../lxc/uuid.c ../lxc/uuid.h \ |
401 | $(LSM_SOURCES) | |
d6e12907 CB |
402 | if ENABLE_SECCOMP |
403 | lxc_test_config_jump_table_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h | |
404 | endif | |
405 | ||
317410da CB |
406 | if !HAVE_STRCHRNUL |
407 | lxc_test_config_jump_table_SOURCES += ../include/strchrnul.c ../include/strchrnul.h | |
408 | endif | |
409 | ||
646b75b5 CB |
410 | if !HAVE_STRLCPY |
411 | lxc_test_config_jump_table_SOURCES += ../include/strlcpy.c ../include/strlcpy.h | |
412 | endif | |
413 | ||
414 | if !HAVE_STRLCAT | |
415 | lxc_test_config_jump_table_SOURCES += ../include/strlcat.c ../include/strlcat.h | |
416 | endif | |
417 | ||
418 | if !HAVE_OPENPTY | |
419 | lxc_test_config_jump_table_SOURCES += ../include/openpty.c ../include/openpty.h | |
420 | endif | |
421 | ||
422 | if IS_BIONIC | |
423 | lxc_test_config_jump_table_SOURCES += ../include/fexecve.c ../include/fexecve.h \ | |
424 | ../include/lxcmntent.c ../include/lxcmntent.h | |
425 | endif | |
426 | ||
427 | if !HAVE_GETGRGID_R | |
428 | lxc_test_config_jump_table_SOURCES += ../include/getgrgid_r.c ../include/getgrgid_r.h | |
429 | endif | |
430 | ||
431 | if !HAVE_PRLIMIT | |
432 | if HAVE_PRLIMIT64 | |
433 | lxc_test_config_jump_table_SOURCES += ../include/prlimit.c ../include/prlimit.h | |
434 | endif | |
435 | endif | |
436 | ||
0115f8fd | 437 | lxc_test_console_SOURCES = console.c |
a52c1c68 | 438 | lxc_test_console_log_SOURCES = console_log.c lxctest.h |
691544a0 CB |
439 | lxc_test_containertests_SOURCES = containertests.c |
440 | lxc_test_createtest_SOURCES = createtest.c | |
441 | lxc_test_criu_check_feature_SOURCES = criu_check_feature.c lxctest.h | |
99258734 | 442 | lxc_test_cve_2019_5736_SOURCES = cve-2019-5736.c lxctest.h |
691544a0 | 443 | lxc_test_destroytest_SOURCES = destroytest.c |
a4f24357 CB |
444 | lxc_test_device_add_remove_SOURCES = device_add_remove.c \ |
445 | ../lxc/af_unix.c ../lxc/af_unix.h \ | |
446 | ../lxc/caps.c ../lxc/caps.h \ | |
447 | ../lxc/cgroups/cgfsng.c \ | |
448 | ../lxc/cgroups/cgroup.c ../lxc/cgroups/cgroup.h \ | |
449 | ../lxc/cgroups/cgroup2_devices.c ../lxc/cgroups/cgroup2_devices.h \ | |
450 | ../lxc/cgroups/cgroup_utils.c ../lxc/cgroups/cgroup_utils.h \ | |
451 | ../lxc/commands.c ../lxc/commands.h \ | |
452 | ../lxc/commands_utils.c ../lxc/commands_utils.h \ | |
453 | ../lxc/conf.c ../lxc/conf.h \ | |
454 | ../lxc/confile.c ../lxc/confile.h \ | |
455 | ../lxc/confile_utils.c ../lxc/confile_utils.h \ | |
456 | ../lxc/error.c ../lxc/error.h \ | |
457 | ../lxc/file_utils.c ../lxc/file_utils.h \ | |
458 | ../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \ | |
459 | ../lxc/initutils.c ../lxc/initutils.h \ | |
460 | ../lxc/log.c ../lxc/log.h \ | |
461 | ../lxc/lxclock.c ../lxc/lxclock.h \ | |
462 | ../lxc/mainloop.c ../lxc/mainloop.h \ | |
463 | ../lxc/monitor.c ../lxc/monitor.h \ | |
74ed30d7 | 464 | ../lxc/mount_utils.c ../lxc/mount_utils.h \ |
a4f24357 CB |
465 | ../lxc/namespace.c ../lxc/namespace.h \ |
466 | ../lxc/network.c ../lxc/network.h \ | |
467 | ../lxc/nl.c ../lxc/nl.h \ | |
468 | ../lxc/parse.c ../lxc/parse.h \ | |
469 | ../lxc/process_utils.c ../lxc/process_utils.h \ | |
470 | ../lxc/ringbuf.c ../lxc/ringbuf.h \ | |
471 | ../lxc/start.c ../lxc/start.h \ | |
472 | ../lxc/state.c ../lxc/state.h \ | |
473 | ../lxc/storage/btrfs.c ../lxc/storage/btrfs.h \ | |
474 | ../lxc/storage/dir.c ../lxc/storage/dir.h \ | |
475 | ../lxc/storage/loop.c ../lxc/storage/loop.h \ | |
476 | ../lxc/storage/lvm.c ../lxc/storage/lvm.h \ | |
477 | ../lxc/storage/nbd.c ../lxc/storage/nbd.h \ | |
478 | ../lxc/storage/overlay.c ../lxc/storage/overlay.h \ | |
479 | ../lxc/storage/rbd.c ../lxc/storage/rbd.h \ | |
480 | ../lxc/storage/rsync.c ../lxc/storage/rsync.h \ | |
481 | ../lxc/storage/storage.c ../lxc/storage/storage.h \ | |
482 | ../lxc/storage/storage_utils.c ../lxc/storage/storage_utils.h \ | |
483 | ../lxc/storage/zfs.c ../lxc/storage/zfs.h \ | |
484 | ../lxc/sync.c ../lxc/sync.h \ | |
485 | ../lxc/string_utils.c ../lxc/string_utils.h \ | |
486 | ../lxc/terminal.c ../lxc/terminal.h \ | |
487 | ../lxc/utils.c ../lxc/utils.h \ | |
488 | ../lxc/uuid.c ../lxc/uuid.h \ | |
489 | $(LSM_SOURCES) | |
490 | if ENABLE_SECCOMP | |
491 | lxc_test_device_add_remove_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h | |
492 | endif | |
317410da CB |
493 | |
494 | if !HAVE_STRCHRNUL | |
495 | lxc_test_device_add_remove_SOURCES += ../include/strchrnul.c ../include/strchrnul.h | |
496 | endif | |
497 | ||
646b75b5 CB |
498 | if !HAVE_STRLCPY |
499 | lxc_test_device_add_remove_SOURCES += ../include/strlcpy.c ../include/strlcpy.h | |
500 | endif | |
501 | ||
502 | if !HAVE_STRLCAT | |
503 | lxc_test_device_add_remove_SOURCES += ../include/strlcat.c ../include/strlcat.h | |
504 | endif | |
505 | ||
506 | if !HAVE_OPENPTY | |
507 | lxc_test_device_add_remove_SOURCES += ../include/openpty.c ../include/openpty.h | |
508 | endif | |
509 | ||
510 | if IS_BIONIC | |
511 | lxc_test_device_add_remove_SOURCES += ../include/fexecve.c ../include/fexecve.h \ | |
512 | ../include/lxcmntent.c ../include/lxcmntent.h | |
513 | endif | |
514 | ||
515 | if !HAVE_GETGRGID_R | |
516 | lxc_test_device_add_remove_SOURCES += ../include/getgrgid_r.c ../include/getgrgid_r.h | |
517 | endif | |
518 | ||
519 | if !HAVE_PRLIMIT | |
520 | if HAVE_PRLIMIT64 | |
521 | lxc_test_device_add_remove_SOURCES += ../include/prlimit.c ../include/prlimit.h | |
522 | endif | |
523 | endif | |
524 | ||
691544a0 | 525 | lxc_test_getkeys_SOURCES = getkeys.c |
6f6c71cd CB |
526 | lxc_test_get_item_SOURCES = get_item.c \ |
527 | ../lxc/af_unix.c ../lxc/af_unix.h \ | |
528 | ../lxc/caps.c ../lxc/caps.h \ | |
529 | ../lxc/cgroups/cgfsng.c \ | |
530 | ../lxc/cgroups/cgroup.c ../lxc/cgroups/cgroup.h \ | |
531 | ../lxc/cgroups/cgroup2_devices.c ../lxc/cgroups/cgroup2_devices.h \ | |
532 | ../lxc/cgroups/cgroup_utils.c ../lxc/cgroups/cgroup_utils.h \ | |
533 | ../lxc/commands.c ../lxc/commands.h \ | |
534 | ../lxc/commands_utils.c ../lxc/commands_utils.h \ | |
535 | ../lxc/conf.c ../lxc/conf.h \ | |
536 | ../lxc/confile.c ../lxc/confile.h \ | |
537 | ../lxc/confile_utils.c ../lxc/confile_utils.h \ | |
538 | ../lxc/error.c ../lxc/error.h \ | |
539 | ../lxc/file_utils.c ../lxc/file_utils.h \ | |
540 | ../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \ | |
541 | ../lxc/initutils.c ../lxc/initutils.h \ | |
542 | ../lxc/log.c ../lxc/log.h \ | |
543 | ../lxc/lxclock.c ../lxc/lxclock.h \ | |
544 | ../lxc/mainloop.c ../lxc/mainloop.h \ | |
545 | ../lxc/monitor.c ../lxc/monitor.h \ | |
74ed30d7 | 546 | ../lxc/mount_utils.c ../lxc/mount_utils.h \ |
6f6c71cd CB |
547 | ../lxc/namespace.c ../lxc/namespace.h \ |
548 | ../lxc/network.c ../lxc/network.h \ | |
549 | ../lxc/nl.c ../lxc/nl.h \ | |
550 | ../lxc/parse.c ../lxc/parse.h \ | |
551 | ../lxc/process_utils.c ../lxc/process_utils.h \ | |
552 | ../lxc/ringbuf.c ../lxc/ringbuf.h \ | |
553 | ../lxc/start.c ../lxc/start.h \ | |
554 | ../lxc/state.c ../lxc/state.h \ | |
555 | ../lxc/storage/btrfs.c ../lxc/storage/btrfs.h \ | |
556 | ../lxc/storage/dir.c ../lxc/storage/dir.h \ | |
557 | ../lxc/storage/loop.c ../lxc/storage/loop.h \ | |
558 | ../lxc/storage/lvm.c ../lxc/storage/lvm.h \ | |
559 | ../lxc/storage/nbd.c ../lxc/storage/nbd.h \ | |
560 | ../lxc/storage/overlay.c ../lxc/storage/overlay.h \ | |
561 | ../lxc/storage/rbd.c ../lxc/storage/rbd.h \ | |
562 | ../lxc/storage/rsync.c ../lxc/storage/rsync.h \ | |
563 | ../lxc/storage/storage.c ../lxc/storage/storage.h \ | |
564 | ../lxc/storage/storage_utils.c ../lxc/storage/storage_utils.h \ | |
565 | ../lxc/storage/zfs.c ../lxc/storage/zfs.h \ | |
566 | ../lxc/sync.c ../lxc/sync.h \ | |
567 | ../lxc/string_utils.c ../lxc/string_utils.h \ | |
568 | ../lxc/terminal.c ../lxc/terminal.h \ | |
569 | ../lxc/utils.c ../lxc/utils.h \ | |
570 | ../lxc/uuid.c ../lxc/uuid.h \ | |
571 | $(LSM_SOURCES) | |
572 | if ENABLE_SECCOMP | |
573 | lxc_test_get_item_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h | |
574 | endif | |
317410da CB |
575 | |
576 | if !HAVE_STRCHRNUL | |
577 | lxc_test_get_item_SOURCES += ../include/strchrnul.c ../include/strchrnul.h | |
578 | endif | |
579 | ||
646b75b5 CB |
580 | if !HAVE_STRLCPY |
581 | lxc_test_get_item_SOURCES += ../include/strlcpy.c ../include/strlcpy.h | |
582 | endif | |
583 | ||
584 | if !HAVE_STRLCAT | |
585 | lxc_test_get_item_SOURCES += ../include/strlcat.c ../include/strlcat.h | |
586 | endif | |
587 | ||
588 | if !HAVE_OPENPTY | |
589 | lxc_test_get_item_SOURCES += ../include/openpty.c ../include/openpty.h | |
590 | endif | |
591 | ||
592 | if IS_BIONIC | |
593 | lxc_test_get_item_SOURCES += ../include/fexecve.c ../include/fexecve.h \ | |
594 | ../include/lxcmntent.c ../include/lxcmntent.h | |
595 | endif | |
596 | ||
597 | if !HAVE_GETGRGID_R | |
598 | lxc_test_get_item_SOURCES += ../include/getgrgid_r.c ../include/getgrgid_r.h | |
599 | endif | |
600 | ||
601 | if !HAVE_PRLIMIT | |
602 | if HAVE_PRLIMIT64 | |
603 | lxc_test_get_item_SOURCES += ../include/prlimit.c ../include/prlimit.h | |
604 | endif | |
605 | endif | |
606 | ||
691544a0 | 607 | lxc_test_list_SOURCES = list.c |
a7692df5 | 608 | lxc_test_locktests_SOURCES = locktests.c \ |
5f1b0986 | 609 | ../lxc/af_unix.c ../lxc/af_unix.h \ |
a7692df5 | 610 | ../lxc/caps.c ../lxc/caps.h \ |
59eac805 | 611 | ../lxc/cgroups/cgfsng.c \ |
c332ec90 CB |
612 | ../lxc/cgroups/cgroup.c ../lxc/cgroups/cgroup.h \ |
613 | ../lxc/cgroups/cgroup2_devices.c ../lxc/cgroups/cgroup2_devices.h \ | |
614 | ../lxc/cgroups/cgroup_utils.c ../lxc/cgroups/cgroup_utils.h \ | |
5f1b0986 CB |
615 | ../lxc/commands.c ../lxc/commands.h \ |
616 | ../lxc/commands_utils.c ../lxc/commands_utils.h \ | |
617 | ../lxc/conf.c ../lxc/conf.h \ | |
618 | ../lxc/confile.c ../lxc/confile.h \ | |
619 | ../lxc/confile_utils.c ../lxc/confile_utils.h \ | |
620 | ../lxc/error.c ../lxc/error.h \ | |
a7692df5 | 621 | ../lxc/file_utils.c ../lxc/file_utils.h \ |
59eac805 | 622 | ../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \ |
5f1b0986 | 623 | ../lxc/initutils.c ../lxc/initutils.h \ |
a7692df5 CB |
624 | ../lxc/log.c ../lxc/log.h \ |
625 | ../lxc/lxclock.c ../lxc/lxclock.h \ | |
5f1b0986 CB |
626 | ../lxc/mainloop.c ../lxc/mainloop.h \ |
627 | ../lxc/monitor.c ../lxc/monitor.h \ | |
74ed30d7 | 628 | ../lxc/mount_utils.c ../lxc/mount_utils.h \ |
5f1b0986 CB |
629 | ../lxc/namespace.c ../lxc/namespace.h \ |
630 | ../lxc/network.c ../lxc/network.h \ | |
631 | ../lxc/nl.c ../lxc/nl.h \ | |
632 | ../lxc/parse.c ../lxc/parse.h \ | |
633 | ../lxc/process_utils.c ../lxc/process_utils.h \ | |
634 | ../lxc/ringbuf.c ../lxc/ringbuf.h \ | |
635 | ../lxc/start.c ../lxc/start.h \ | |
636 | ../lxc/state.c ../lxc/state.h \ | |
2284f8a5 CB |
637 | ../lxc/storage/btrfs.c ../lxc/storage/btrfs.h \ |
638 | ../lxc/storage/dir.c ../lxc/storage/dir.h \ | |
639 | ../lxc/storage/loop.c ../lxc/storage/loop.h \ | |
640 | ../lxc/storage/lvm.c ../lxc/storage/lvm.h \ | |
641 | ../lxc/storage/nbd.c ../lxc/storage/nbd.h \ | |
642 | ../lxc/storage/overlay.c ../lxc/storage/overlay.h \ | |
643 | ../lxc/storage/rbd.c ../lxc/storage/rbd.h \ | |
644 | ../lxc/storage/rsync.c ../lxc/storage/rsync.h \ | |
645 | ../lxc/storage/storage.c ../lxc/storage/storage.h \ | |
646 | ../lxc/storage/storage_utils.c ../lxc/storage/storage_utils.h \ | |
647 | ../lxc/storage/zfs.c ../lxc/storage/zfs.h \ | |
5f1b0986 CB |
648 | ../lxc/sync.c ../lxc/sync.h \ |
649 | ../lxc/string_utils.c ../lxc/string_utils.h \ | |
650 | ../lxc/terminal.c ../lxc/terminal.h \ | |
78ad1eb0 | 651 | ../lxc/utils.c ../lxc/utils.h \ |
ebbde173 CB |
652 | ../lxc/uuid.c ../lxc/uuid.h \ |
653 | $(LSM_SOURCES) | |
5f1b0986 CB |
654 | if ENABLE_SECCOMP |
655 | lxc_test_locktests_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h | |
656 | endif | |
657 | ||
317410da CB |
658 | if !HAVE_STRCHRNUL |
659 | lxc_test_locktests_SOURCES += ../include/strchrnul.c ../include/strchrnul.h | |
660 | endif | |
661 | ||
646b75b5 CB |
662 | if !HAVE_STRLCPY |
663 | lxc_test_locktests_SOURCES += ../include/strlcpy.c ../include/strlcpy.h | |
664 | endif | |
665 | ||
666 | if !HAVE_STRLCAT | |
667 | lxc_test_locktests_SOURCES += ../include/strlcat.c ../include/strlcat.h | |
668 | endif | |
669 | ||
670 | if !HAVE_OPENPTY | |
671 | lxc_test_locktests_SOURCES += ../include/openpty.c ../include/openpty.h | |
672 | endif | |
673 | ||
674 | if IS_BIONIC | |
675 | lxc_test_locktests_SOURCES += ../include/fexecve.c ../include/fexecve.h \ | |
676 | ../include/lxcmntent.c ../include/lxcmntent.h | |
677 | endif | |
678 | ||
679 | if !HAVE_GETGRGID_R | |
680 | lxc_test_locktests_SOURCES += ../include/getgrgid_r.c ../include/getgrgid_r.h | |
681 | endif | |
682 | ||
683 | if !HAVE_PRLIMIT | |
684 | if HAVE_PRLIMIT64 | |
685 | lxc_test_locktests_SOURCES += ../include/prlimit.c ../include/prlimit.h | |
686 | endif | |
687 | endif | |
688 | ||
691544a0 CB |
689 | lxc_test_lxcpath_SOURCES = lxcpath.c |
690 | lxc_test_may_control_SOURCES = may_control.c | |
4a9ee78a CB |
691 | lxc_test_mount_injection_SOURCES = mount_injection.c \ |
692 | lxctest.h \ | |
5f1b0986 CB |
693 | ../lxc/af_unix.c ../lxc/af_unix.h \ |
694 | ../lxc/caps.c ../lxc/caps.h \ | |
59eac805 | 695 | ../lxc/cgroups/cgfsng.c \ |
c332ec90 CB |
696 | ../lxc/cgroups/cgroup.c ../lxc/cgroups/cgroup.h \ |
697 | ../lxc/cgroups/cgroup2_devices.c ../lxc/cgroups/cgroup2_devices.h \ | |
698 | ../lxc/cgroups/cgroup_utils.c ../lxc/cgroups/cgroup_utils.h \ | |
5f1b0986 CB |
699 | ../lxc/commands.c ../lxc/commands.h \ |
700 | ../lxc/commands_utils.c ../lxc/commands_utils.h \ | |
701 | ../lxc/conf.c ../lxc/conf.h \ | |
702 | ../lxc/confile.c ../lxc/confile.h \ | |
703 | ../lxc/confile_utils.c ../lxc/confile_utils.h \ | |
704 | ../lxc/error.c ../lxc/error.h \ | |
4a9ee78a | 705 | ../lxc/file_utils.c ../lxc/file_utils.h \ |
59eac805 | 706 | ../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \ |
5f1b0986 CB |
707 | ../lxc/initutils.c ../lxc/initutils.h \ |
708 | ../lxc/log.c ../lxc/log.h \ | |
709 | ../lxc/lxclock.c ../lxc/lxclock.h \ | |
710 | ../lxc/mainloop.c ../lxc/mainloop.h \ | |
711 | ../lxc/monitor.c ../lxc/monitor.h \ | |
74ed30d7 | 712 | ../lxc/mount_utils.c ../lxc/mount_utils.h \ |
5f1b0986 CB |
713 | ../lxc/namespace.c ../lxc/namespace.h \ |
714 | ../lxc/network.c ../lxc/network.h \ | |
715 | ../lxc/nl.c ../lxc/nl.h \ | |
716 | ../lxc/parse.c ../lxc/parse.h \ | |
717 | ../lxc/process_utils.c ../lxc/process_utils.h \ | |
718 | ../lxc/ringbuf.c ../lxc/ringbuf.h \ | |
719 | ../lxc/start.c ../lxc/start.h \ | |
720 | ../lxc/state.c ../lxc/state.h \ | |
2284f8a5 CB |
721 | ../lxc/storage/btrfs.c ../lxc/storage/btrfs.h \ |
722 | ../lxc/storage/dir.c ../lxc/storage/dir.h \ | |
723 | ../lxc/storage/loop.c ../lxc/storage/loop.h \ | |
724 | ../lxc/storage/lvm.c ../lxc/storage/lvm.h \ | |
725 | ../lxc/storage/nbd.c ../lxc/storage/nbd.h \ | |
726 | ../lxc/storage/overlay.c ../lxc/storage/overlay.h \ | |
727 | ../lxc/storage/rbd.c ../lxc/storage/rbd.h \ | |
728 | ../lxc/storage/rsync.c ../lxc/storage/rsync.h \ | |
729 | ../lxc/storage/storage.c ../lxc/storage/storage.h \ | |
730 | ../lxc/storage/storage_utils.c ../lxc/storage/storage_utils.h \ | |
731 | ../lxc/storage/zfs.c ../lxc/storage/zfs.h \ | |
5f1b0986 CB |
732 | ../lxc/sync.c ../lxc/sync.h \ |
733 | ../lxc/string_utils.c ../lxc/string_utils.h \ | |
734 | ../lxc/terminal.c ../lxc/terminal.h \ | |
78ad1eb0 | 735 | ../lxc/utils.c ../lxc/utils.h \ |
ebbde173 CB |
736 | ../lxc/uuid.c ../lxc/uuid.h \ |
737 | $(LSM_SOURCES) | |
5f1b0986 CB |
738 | if ENABLE_SECCOMP |
739 | lxc_test_mount_injection_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h | |
740 | endif | |
741 | ||
317410da CB |
742 | if !HAVE_STRCHRNUL |
743 | lxc_test_mount_injection_SOURCES += ../include/strchrnul.c ../include/strchrnul.h | |
744 | endif | |
745 | ||
646b75b5 CB |
746 | if !HAVE_STRLCPY |
747 | lxc_test_mount_injection_SOURCES += ../include/strlcpy.c ../include/strlcpy.h | |
748 | endif | |
749 | ||
750 | if !HAVE_STRLCAT | |
751 | lxc_test_mount_injection_SOURCES += ../include/strlcat.c ../include/strlcat.h | |
752 | endif | |
753 | ||
754 | if !HAVE_OPENPTY | |
755 | lxc_test_mount_injection_SOURCES += ../include/openpty.c ../include/openpty.h | |
756 | endif | |
757 | ||
758 | if IS_BIONIC | |
759 | lxc_test_mount_injection_SOURCES += ../include/fexecve.c ../include/fexecve.h \ | |
760 | ../include/lxcmntent.c ../include/lxcmntent.h | |
761 | endif | |
762 | ||
763 | if !HAVE_GETGRGID_R | |
764 | lxc_test_mount_injection_SOURCES += ../include/getgrgid_r.c ../include/getgrgid_r.h | |
765 | endif | |
766 | ||
767 | if !HAVE_PRLIMIT | |
768 | if HAVE_PRLIMIT64 | |
769 | lxc_test_mount_injection_SOURCES += ../include/prlimit.c ../include/prlimit.h | |
770 | endif | |
771 | endif | |
772 | ||
c3e3c21a | 773 | lxc_test_parse_config_file_SOURCES = parse_config_file.c \ |
f64e249d CB |
774 | lxctest.h \ |
775 | ../lxc/af_unix.c ../lxc/af_unix.h \ | |
776 | ../lxc/caps.c ../lxc/caps.h \ | |
59eac805 | 777 | ../lxc/cgroups/cgfsng.c \ |
c332ec90 CB |
778 | ../lxc/cgroups/cgroup.c ../lxc/cgroups/cgroup.h \ |
779 | ../lxc/cgroups/cgroup2_devices.c ../lxc/cgroups/cgroup2_devices.h \ | |
780 | ../lxc/cgroups/cgroup_utils.c ../lxc/cgroups/cgroup_utils.h \ | |
8c8cd087 CB |
781 | ../lxc/commands.c ../lxc/commands.h \ |
782 | ../lxc/commands_utils.c ../lxc/commands_utils.h \ | |
f64e249d CB |
783 | ../lxc/conf.c ../lxc/conf.h \ |
784 | ../lxc/confile.c ../lxc/confile.h \ | |
785 | ../lxc/confile_utils.c ../lxc/confile_utils.h \ | |
8c8cd087 | 786 | ../lxc/error.c ../lxc/error.h \ |
4a9ee78a | 787 | ../lxc/file_utils.c ../lxc/file_utils.h \ |
59eac805 | 788 | ../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \ |
f575e7ef | 789 | ../lxc/initutils.c ../lxc/initutils.h \ |
07d1f84a | 790 | ../lxc/log.c ../lxc/log.h \ |
8c8cd087 CB |
791 | ../lxc/lxclock.c ../lxc/lxclock.h \ |
792 | ../lxc/mainloop.c ../lxc/mainloop.h \ | |
793 | ../lxc/monitor.c ../lxc/monitor.h \ | |
74ed30d7 | 794 | ../lxc/mount_utils.c ../lxc/mount_utils.h \ |
9e20bf04 | 795 | ../lxc/namespace.c ../lxc/namespace.h \ |
f64e249d CB |
796 | ../lxc/network.c ../lxc/network.h \ |
797 | ../lxc/nl.c ../lxc/nl.h \ | |
a804cff7 | 798 | ../lxc/parse.c ../lxc/parse.h \ |
92a10958 | 799 | ../lxc/process_utils.c ../lxc/process_utils.h \ |
f6fea473 | 800 | ../lxc/ringbuf.c ../lxc/ringbuf.h \ |
8c8cd087 | 801 | ../lxc/start.c ../lxc/start.h \ |
1bf5f812 | 802 | ../lxc/state.c ../lxc/state.h \ |
2284f8a5 CB |
803 | ../lxc/storage/btrfs.c ../lxc/storage/btrfs.h \ |
804 | ../lxc/storage/dir.c ../lxc/storage/dir.h \ | |
805 | ../lxc/storage/loop.c ../lxc/storage/loop.h \ | |
806 | ../lxc/storage/lvm.c ../lxc/storage/lvm.h \ | |
807 | ../lxc/storage/nbd.c ../lxc/storage/nbd.h \ | |
808 | ../lxc/storage/overlay.c ../lxc/storage/overlay.h \ | |
809 | ../lxc/storage/rbd.c ../lxc/storage/rbd.h \ | |
810 | ../lxc/storage/rsync.c ../lxc/storage/rsync.h \ | |
811 | ../lxc/storage/storage.c ../lxc/storage/storage.h \ | |
812 | ../lxc/storage/storage_utils.c ../lxc/storage/storage_utils.h \ | |
813 | ../lxc/storage/zfs.c ../lxc/storage/zfs.h \ | |
bf1ca416 | 814 | ../lxc/sync.c ../lxc/sync.h \ |
cd6b82e4 | 815 | ../lxc/string_utils.c ../lxc/string_utils.h \ |
5f1b0986 | 816 | ../lxc/terminal.c ../lxc/terminal.h \ |
78ad1eb0 | 817 | ../lxc/utils.c ../lxc/utils.h \ |
ebbde173 CB |
818 | ../lxc/uuid.c ../lxc/uuid.h \ |
819 | $(LSM_SOURCES) | |
d6e12907 CB |
820 | if ENABLE_SECCOMP |
821 | lxc_test_parse_config_file_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h | |
822 | endif | |
823 | ||
317410da CB |
824 | if !HAVE_STRCHRNUL |
825 | lxc_test_parse_config_file_SOURCES += ../include/strchrnul.c ../include/strchrnul.h | |
826 | endif | |
827 | ||
646b75b5 CB |
828 | if !HAVE_STRLCPY |
829 | lxc_test_parse_config_file_SOURCES += ../include/strlcpy.c ../include/strlcpy.h | |
830 | endif | |
831 | ||
832 | if !HAVE_STRLCAT | |
833 | lxc_test_parse_config_file_SOURCES += ../include/strlcat.c ../include/strlcat.h | |
834 | endif | |
835 | ||
836 | if !HAVE_OPENPTY | |
837 | lxc_test_parse_config_file_SOURCES += ../include/openpty.c ../include/openpty.h | |
838 | endif | |
839 | ||
840 | if IS_BIONIC | |
841 | lxc_test_parse_config_file_SOURCES += ../include/fexecve.c ../include/fexecve.h \ | |
842 | ../include/lxcmntent.c ../include/lxcmntent.h | |
843 | endif | |
844 | ||
845 | if !HAVE_GETGRGID_R | |
846 | lxc_test_parse_config_file_SOURCES += ../include/getgrgid_r.c ../include/getgrgid_r.h | |
847 | endif | |
848 | ||
849 | if !HAVE_PRLIMIT | |
850 | if HAVE_PRLIMIT64 | |
851 | lxc_test_parse_config_file_SOURCES += ../include/prlimit.c ../include/prlimit.h | |
852 | endif | |
853 | endif | |
854 | ||
1f797c3a CB |
855 | lxc_test_raw_clone_SOURCES = lxc_raw_clone.c \ |
856 | lxctest.h \ | |
ebbde173 | 857 | ../lxc/af_unix.c ../lxc/af_unix.h \ |
07d1f84a | 858 | ../lxc/caps.c ../lxc/caps.h \ |
59eac805 | 859 | ../lxc/cgroups/cgfsng.c \ |
c332ec90 CB |
860 | ../lxc/cgroups/cgroup.c ../lxc/cgroups/cgroup.h \ |
861 | ../lxc/cgroups/cgroup2_devices.c ../lxc/cgroups/cgroup2_devices.h \ | |
862 | ../lxc/cgroups/cgroup_utils.c ../lxc/cgroups/cgroup_utils.h \ | |
ebbde173 CB |
863 | ../lxc/commands.c ../lxc/commands.h \ |
864 | ../lxc/commands_utils.c ../lxc/commands_utils.h \ | |
865 | ../lxc/conf.c ../lxc/conf.h \ | |
866 | ../lxc/confile.c ../lxc/confile.h \ | |
867 | ../lxc/confile_utils.c ../lxc/confile_utils.h \ | |
868 | ../lxc/error.c ../lxc/error.h \ | |
07d1f84a | 869 | ../lxc/file_utils.c ../lxc/file_utils.h \ |
59eac805 | 870 | ../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \ |
ebbde173 | 871 | ../lxc/initutils.c ../lxc/initutils.h \ |
07d1f84a | 872 | ../lxc/log.c ../lxc/log.h \ |
ebbde173 CB |
873 | ../lxc/lxclock.c ../lxc/lxclock.h \ |
874 | ../lxc/mainloop.c ../lxc/mainloop.h \ | |
875 | ../lxc/monitor.c ../lxc/monitor.h \ | |
74ed30d7 | 876 | ../lxc/mount_utils.c ../lxc/mount_utils.h \ |
1f797c3a | 877 | ../lxc/namespace.c ../lxc/namespace.h \ |
ebbde173 CB |
878 | ../lxc/network.c ../lxc/network.h \ |
879 | ../lxc/nl.c ../lxc/nl.h \ | |
880 | ../lxc/parse.c ../lxc/parse.h \ | |
07d1f84a | 881 | ../lxc/process_utils.c ../lxc/process_utils.h \ |
ebbde173 CB |
882 | ../lxc/ringbuf.c ../lxc/ringbuf.h \ |
883 | ../lxc/start.c ../lxc/start.h \ | |
884 | ../lxc/state.c ../lxc/state.h \ | |
2284f8a5 CB |
885 | ../lxc/storage/btrfs.c ../lxc/storage/btrfs.h \ |
886 | ../lxc/storage/dir.c ../lxc/storage/dir.h \ | |
887 | ../lxc/storage/loop.c ../lxc/storage/loop.h \ | |
888 | ../lxc/storage/lvm.c ../lxc/storage/lvm.h \ | |
889 | ../lxc/storage/nbd.c ../lxc/storage/nbd.h \ | |
890 | ../lxc/storage/overlay.c ../lxc/storage/overlay.h \ | |
891 | ../lxc/storage/rbd.c ../lxc/storage/rbd.h \ | |
892 | ../lxc/storage/rsync.c ../lxc/storage/rsync.h \ | |
893 | ../lxc/storage/storage.c ../lxc/storage/storage.h \ | |
894 | ../lxc/storage/storage_utils.c ../lxc/storage/storage_utils.h \ | |
895 | ../lxc/storage/zfs.c ../lxc/storage/zfs.h \ | |
ebbde173 | 896 | ../lxc/sync.c ../lxc/sync.h \ |
07d1f84a | 897 | ../lxc/string_utils.c ../lxc/string_utils.h \ |
ebbde173 CB |
898 | ../lxc/terminal.c ../lxc/terminal.h \ |
899 | ../lxc/utils.c ../lxc/utils.h \ | |
900 | ../lxc/uuid.c ../lxc/uuid.h \ | |
901 | $(LSM_SOURCES) | |
902 | if ENABLE_SECCOMP | |
903 | lxc_test_raw_clone_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h | |
904 | endif | |
905 | ||
317410da CB |
906 | if !HAVE_STRCHRNUL |
907 | lxc_test_raw_clone_SOURCES += ../include/strchrnul.c ../include/strchrnul.h | |
908 | endif | |
909 | ||
646b75b5 CB |
910 | if !HAVE_STRLCPY |
911 | lxc_test_raw_clone_SOURCES += ../include/strlcpy.c ../include/strlcpy.h | |
912 | endif | |
913 | ||
914 | if !HAVE_STRLCAT | |
915 | lxc_test_raw_clone_SOURCES += ../include/strlcat.c ../include/strlcat.h | |
916 | endif | |
917 | ||
918 | if !HAVE_OPENPTY | |
919 | lxc_test_raw_clone_SOURCES += ../include/openpty.c ../include/openpty.h | |
920 | endif | |
921 | ||
922 | if IS_BIONIC | |
923 | lxc_test_raw_clone_SOURCES += ../include/fexecve.c ../include/fexecve.h \ | |
924 | ../include/lxcmntent.c ../include/lxcmntent.h | |
925 | endif | |
926 | ||
927 | if !HAVE_GETGRGID_R | |
928 | lxc_test_raw_clone_SOURCES += ../include/getgrgid_r.c ../include/getgrgid_r.h | |
929 | endif | |
930 | ||
931 | if !HAVE_PRLIMIT | |
932 | if HAVE_PRLIMIT64 | |
933 | lxc_test_raw_clone_SOURCES += ../include/prlimit.c ../include/prlimit.h | |
934 | endif | |
935 | endif | |
936 | ||
691544a0 CB |
937 | lxc_test_reboot_SOURCES = reboot.c |
938 | lxc_test_saveconfig_SOURCES = saveconfig.c | |
1b9aca11 CB |
939 | lxc_test_share_ns_SOURCES = share_ns.c \ |
940 | lxctest.h \ | |
941 | ../lxc/compiler.h | |
646b75b5 CB |
942 | |
943 | if !HAVE_STRLCPY | |
944 | lxc_test_share_ns_SOURCES += ../include/strlcpy.c ../include/strlcpy.h | |
945 | endif | |
946 | ||
947 | if !HAVE_STRLCAT | |
948 | lxc_test_share_ns_SOURCES += ../include/strlcat.c ../include/strlcat.h | |
949 | endif | |
950 | ||
951 | if !HAVE_OPENPTY | |
952 | lxc_test_share_ns_SOURCES += ../include/openpty.c ../include/openpty.h | |
953 | endif | |
954 | ||
955 | if IS_BIONIC | |
956 | lxc_test_share_ns_SOURCES += ../include/fexecve.c ../include/fexecve.h \ | |
957 | ../include/lxcmntent.c ../include/lxcmntent.h | |
958 | endif | |
959 | ||
960 | if !HAVE_GETGRGID_R | |
961 | lxc_test_share_ns_SOURCES += ../include/getgrgid_r.c ../include/getgrgid_r.h | |
962 | endif | |
963 | ||
964 | if !HAVE_PRLIMIT | |
965 | if HAVE_PRLIMIT64 | |
966 | lxc_test_share_ns_SOURCES += ../include/prlimit.c ../include/prlimit.h | |
967 | endif | |
968 | endif | |
969 | ||
4a9ee78a CB |
970 | lxc_test_shortlived_SOURCES = shortlived.c \ |
971 | ../lxc/file_utils.c ../lxc/file_utils.h \ | |
972 | ../lxc/string_utils.c ../lxc/string_utils.h | |
646b75b5 CB |
973 | |
974 | if !HAVE_STRLCPY | |
975 | lxc_test_shortlived_SOURCES += ../include/strlcpy.c ../include/strlcpy.h | |
976 | endif | |
977 | ||
978 | if !HAVE_STRLCAT | |
979 | lxc_test_shortlived_SOURCES += ../include/strlcat.c ../include/strlcat.h | |
980 | endif | |
981 | ||
982 | if !HAVE_OPENPTY | |
983 | lxc_test_shortlived_SOURCES += ../include/openpty.c ../include/openpty.h | |
984 | endif | |
985 | ||
986 | if IS_BIONIC | |
987 | lxc_test_shortlived_SOURCES += ../include/fexecve.c ../include/fexecve.h \ | |
988 | ../include/lxcmntent.c ../include/lxcmntent.h | |
989 | endif | |
990 | ||
991 | if !HAVE_GETGRGID_R | |
992 | lxc_test_shortlived_SOURCES += ../include/getgrgid_r.c ../include/getgrgid_r.h | |
993 | endif | |
994 | ||
995 | if !HAVE_PRLIMIT | |
996 | if HAVE_PRLIMIT64 | |
997 | lxc_test_shortlived_SOURCES += ../include/prlimit.c ../include/prlimit.h | |
998 | endif | |
999 | endif | |
1000 | ||
691544a0 CB |
1001 | lxc_test_shutdowntest_SOURCES = shutdowntest.c |
1002 | lxc_test_snapshot_SOURCES = snapshot.c | |
1003 | lxc_test_startone_SOURCES = startone.c | |
2580145f CB |
1004 | lxc_test_state_server_SOURCES = state_server.c \ |
1005 | lxctest.h \ | |
1006 | ../lxc/compiler.h | |
646b75b5 CB |
1007 | |
1008 | if !HAVE_STRLCPY | |
1009 | lxc_test_state_server_SOURCES += ../include/strlcpy.c ../include/strlcpy.h | |
1010 | endif | |
1011 | ||
1012 | if !HAVE_STRLCAT | |
1013 | lxc_test_state_server_SOURCES += ../include/strlcat.c ../include/strlcat.h | |
1014 | endif | |
1015 | ||
1016 | if !HAVE_OPENPTY | |
1017 | lxc_test_state_server_SOURCES += ../include/openpty.c ../include/openpty.h | |
1018 | endif | |
1019 | ||
1020 | if IS_BIONIC | |
1021 | lxc_test_state_server_SOURCES += ../include/fexecve.c ../include/fexecve.h \ | |
1022 | ../include/lxcmntent.c ../include/lxcmntent.h | |
1023 | endif | |
1024 | ||
1025 | if !HAVE_GETGRGID_R | |
1026 | lxc_test_state_server_SOURCES += ../include/getgrgid_r.c ../include/getgrgid_r.h | |
1027 | endif | |
1028 | ||
1029 | if !HAVE_PRLIMIT | |
1030 | if HAVE_PRLIMIT64 | |
1031 | lxc_test_state_server_SOURCES += ../include/prlimit.c ../include/prlimit.h | |
1032 | endif | |
1033 | endif | |
1034 | ||
f64e249d CB |
1035 | lxc_test_utils_SOURCES = lxc-test-utils.c \ |
1036 | lxctest.h \ | |
1037 | ../lxc/af_unix.c ../lxc/af_unix.h \ | |
1038 | ../lxc/caps.c ../lxc/caps.h \ | |
59eac805 | 1039 | ../lxc/cgroups/cgfsng.c \ |
c332ec90 CB |
1040 | ../lxc/cgroups/cgroup.c ../lxc/cgroups/cgroup.h \ |
1041 | ../lxc/cgroups/cgroup2_devices.c ../lxc/cgroups/cgroup2_devices.h \ | |
1042 | ../lxc/cgroups/cgroup_utils.c ../lxc/cgroups/cgroup_utils.h \ | |
f64e249d CB |
1043 | ../lxc/commands.c ../lxc/commands.h \ |
1044 | ../lxc/commands_utils.c ../lxc/commands_utils.h \ | |
1045 | ../lxc/conf.c ../lxc/conf.h \ | |
1046 | ../lxc/confile.c ../lxc/confile.h \ | |
1047 | ../lxc/confile_utils.c ../lxc/confile_utils.h \ | |
8c8cd087 | 1048 | ../lxc/error.c ../lxc/error.h \ |
4a9ee78a | 1049 | ../lxc/file_utils.c ../lxc/file_utils.h \ |
59eac805 | 1050 | ../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \ |
f575e7ef | 1051 | ../lxc/initutils.c ../lxc/initutils.h \ |
07d1f84a | 1052 | ../lxc/log.c ../lxc/log.h \ |
8c8cd087 | 1053 | ../lxc/lxclock.c ../lxc/lxclock.h \ |
d50aa57f | 1054 | ../lxc/mainloop.c ../lxc/mainloop.h \ |
8c8cd087 | 1055 | ../lxc/monitor.c ../lxc/monitor.h \ |
74ed30d7 | 1056 | ../lxc/mount_utils.c ../lxc/mount_utils.h \ |
9e20bf04 | 1057 | ../lxc/namespace.c ../lxc/namespace.h \ |
f64e249d CB |
1058 | ../lxc/network.c ../lxc/network.h \ |
1059 | ../lxc/nl.c ../lxc/nl.h \ | |
a804cff7 | 1060 | ../lxc/parse.c ../lxc/parse.h \ |
92a10958 | 1061 | ../lxc/process_utils.c ../lxc/process_utils.h \ |
f6fea473 | 1062 | ../lxc/ringbuf.c ../lxc/ringbuf.h \ |
8c8cd087 | 1063 | ../lxc/start.c ../lxc/start.h \ |
1bf5f812 | 1064 | ../lxc/state.c ../lxc/state.h \ |
2284f8a5 CB |
1065 | ../lxc/storage/btrfs.c ../lxc/storage/btrfs.h \ |
1066 | ../lxc/storage/dir.c ../lxc/storage/dir.h \ | |
1067 | ../lxc/storage/loop.c ../lxc/storage/loop.h \ | |
1068 | ../lxc/storage/lvm.c ../lxc/storage/lvm.h \ | |
1069 | ../lxc/storage/nbd.c ../lxc/storage/nbd.h \ | |
1070 | ../lxc/storage/overlay.c ../lxc/storage/overlay.h \ | |
1071 | ../lxc/storage/rbd.c ../lxc/storage/rbd.h \ | |
1072 | ../lxc/storage/rsync.c ../lxc/storage/rsync.h \ | |
1073 | ../lxc/storage/storage.c ../lxc/storage/storage.h \ | |
1074 | ../lxc/storage/storage_utils.c ../lxc/storage/storage_utils.h \ | |
1075 | ../lxc/storage/zfs.c ../lxc/storage/zfs.h \ | |
bf1ca416 | 1076 | ../lxc/sync.c ../lxc/sync.h \ |
cd6b82e4 | 1077 | ../lxc/string_utils.c ../lxc/string_utils.h \ |
5f1b0986 | 1078 | ../lxc/terminal.c ../lxc/terminal.h \ |
78ad1eb0 | 1079 | ../lxc/utils.c ../lxc/utils.h \ |
ebbde173 CB |
1080 | ../lxc/uuid.c ../lxc/uuid.h \ |
1081 | $(LSM_SOURCES) | |
d6e12907 CB |
1082 | if ENABLE_SECCOMP |
1083 | lxc_test_utils_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h | |
1084 | endif | |
72d0e1cb | 1085 | |
317410da CB |
1086 | if !HAVE_STRCHRNUL |
1087 | lxc_test_utils_SOURCES += ../include/strchrnul.c ../include/strchrnul.h | |
1088 | endif | |
1089 | ||
646b75b5 CB |
1090 | if !HAVE_STRLCPY |
1091 | lxc_test_utils_SOURCES += ../include/strlcpy.c ../include/strlcpy.h | |
1092 | endif | |
1093 | ||
1094 | if !HAVE_STRLCAT | |
1095 | lxc_test_utils_SOURCES += ../include/strlcat.c ../include/strlcat.h | |
1096 | endif | |
1097 | ||
1098 | if !HAVE_OPENPTY | |
1099 | lxc_test_utils_SOURCES += ../include/openpty.c ../include/openpty.h | |
1100 | endif | |
1101 | ||
1102 | if IS_BIONIC | |
1103 | lxc_test_utils_SOURCES += ../include/fexecve.c ../include/fexecve.h \ | |
1104 | ../include/lxcmntent.c ../include/lxcmntent.h | |
1105 | endif | |
1106 | ||
1107 | if !HAVE_GETGRGID_R | |
1108 | lxc_test_utils_SOURCES += ../include/getgrgid_r.c ../include/getgrgid_r.h | |
1109 | endif | |
1110 | ||
1111 | if !HAVE_PRLIMIT | |
1112 | if HAVE_PRLIMIT64 | |
1113 | lxc_test_utils_SOURCES += ../include/prlimit.c ../include/prlimit.h | |
1114 | endif | |
1115 | endif | |
1116 | ||
d777ffcc CB |
1117 | lxc_test_sys_mixed_SOURCES = sys_mixed.c \ |
1118 | ../lxc/af_unix.c ../lxc/af_unix.h \ | |
1119 | ../lxc/caps.c ../lxc/caps.h \ | |
1120 | ../lxc/cgroups/cgfsng.c \ | |
1121 | ../lxc/cgroups/cgroup.c ../lxc/cgroups/cgroup.h \ | |
1122 | ../lxc/cgroups/cgroup2_devices.c ../lxc/cgroups/cgroup2_devices.h \ | |
1123 | ../lxc/cgroups/cgroup_utils.c ../lxc/cgroups/cgroup_utils.h \ | |
1124 | ../lxc/commands.c ../lxc/commands.h \ | |
1125 | ../lxc/commands_utils.c ../lxc/commands_utils.h \ | |
1126 | ../lxc/conf.c ../lxc/conf.h \ | |
1127 | ../lxc/confile.c ../lxc/confile.h \ | |
1128 | ../lxc/confile_utils.c ../lxc/confile_utils.h \ | |
1129 | ../lxc/error.c ../lxc/error.h \ | |
1130 | ../lxc/file_utils.c ../lxc/file_utils.h \ | |
1131 | ../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \ | |
1132 | ../lxc/initutils.c ../lxc/initutils.h \ | |
1133 | ../lxc/log.c ../lxc/log.h \ | |
1134 | ../lxc/lxclock.c ../lxc/lxclock.h \ | |
1135 | ../lxc/mainloop.c ../lxc/mainloop.h \ | |
1136 | ../lxc/monitor.c ../lxc/monitor.h \ | |
1137 | ../lxc/mount_utils.c ../lxc/mount_utils.h \ | |
1138 | ../lxc/namespace.c ../lxc/namespace.h \ | |
1139 | ../lxc/network.c ../lxc/network.h \ | |
1140 | ../lxc/nl.c ../lxc/nl.h \ | |
1141 | ../lxc/parse.c ../lxc/parse.h \ | |
1142 | ../lxc/process_utils.c ../lxc/process_utils.h \ | |
1143 | ../lxc/ringbuf.c ../lxc/ringbuf.h \ | |
1144 | ../lxc/start.c ../lxc/start.h \ | |
1145 | ../lxc/state.c ../lxc/state.h \ | |
1146 | ../lxc/storage/btrfs.c ../lxc/storage/btrfs.h \ | |
1147 | ../lxc/storage/dir.c ../lxc/storage/dir.h \ | |
1148 | ../lxc/storage/loop.c ../lxc/storage/loop.h \ | |
1149 | ../lxc/storage/lvm.c ../lxc/storage/lvm.h \ | |
1150 | ../lxc/storage/nbd.c ../lxc/storage/nbd.h \ | |
1151 | ../lxc/storage/overlay.c ../lxc/storage/overlay.h \ | |
1152 | ../lxc/storage/rbd.c ../lxc/storage/rbd.h \ | |
1153 | ../lxc/storage/rsync.c ../lxc/storage/rsync.h \ | |
1154 | ../lxc/storage/storage.c ../lxc/storage/storage.h \ | |
1155 | ../lxc/storage/storage_utils.c ../lxc/storage/storage_utils.h \ | |
1156 | ../lxc/storage/zfs.c ../lxc/storage/zfs.h \ | |
1157 | ../lxc/sync.c ../lxc/sync.h \ | |
1158 | ../lxc/string_utils.c ../lxc/string_utils.h \ | |
1159 | ../lxc/terminal.c ../lxc/terminal.h \ | |
1160 | ../lxc/utils.c ../lxc/utils.h \ | |
1161 | ../lxc/uuid.c ../lxc/uuid.h \ | |
1162 | $(LSM_SOURCES) | |
1163 | if ENABLE_SECCOMP | |
1164 | lxc_test_sys_mixed_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h | |
1165 | endif | |
1166 | ||
1167 | if !HAVE_STRCHRNUL | |
1168 | lxc_test_sys_mixed_SOURCES += ../include/strchrnul.c ../include/strchrnul.h | |
1169 | endif | |
1170 | ||
646b75b5 CB |
1171 | if !HAVE_STRLCPY |
1172 | lxc_test_sys_mixed_SOURCES += ../include/strlcpy.c ../include/strlcpy.h | |
1173 | endif | |
1174 | ||
1175 | if !HAVE_STRLCAT | |
1176 | lxc_test_sys_mixed_SOURCES += ../include/strlcat.c ../include/strlcat.h | |
1177 | endif | |
1178 | ||
1179 | if !HAVE_OPENPTY | |
1180 | lxc_test_sys_mixed_SOURCES += ../include/openpty.c ../include/openpty.h | |
1181 | endif | |
1182 | ||
1183 | if IS_BIONIC | |
1184 | lxc_test_sys_mixed_SOURCES += ../include/fexecve.c ../include/fexecve.h \ | |
1185 | ../include/lxcmntent.c ../include/lxcmntent.h | |
1186 | endif | |
1187 | ||
1188 | if !HAVE_GETGRGID_R | |
1189 | lxc_test_sys_mixed_SOURCES += ../include/getgrgid_r.c ../include/getgrgid_r.h | |
1190 | endif | |
1191 | ||
1192 | if !HAVE_PRLIMIT | |
1193 | if HAVE_PRLIMIT64 | |
1194 | lxc_test_sys_mixed_SOURCES += ../include/prlimit.c ../include/prlimit.h | |
1195 | endif | |
1196 | endif | |
1197 | ||
587b2dff CB |
1198 | lxc_test_rootfs_options_SOURCES = rootfs_options.c \ |
1199 | ../lxc/af_unix.c ../lxc/af_unix.h \ | |
1200 | ../lxc/caps.c ../lxc/caps.h \ | |
1201 | ../lxc/cgroups/cgfsng.c \ | |
1202 | ../lxc/cgroups/cgroup.c ../lxc/cgroups/cgroup.h \ | |
1203 | ../lxc/cgroups/cgroup2_devices.c ../lxc/cgroups/cgroup2_devices.h \ | |
1204 | ../lxc/cgroups/cgroup_utils.c ../lxc/cgroups/cgroup_utils.h \ | |
1205 | ../lxc/commands.c ../lxc/commands.h \ | |
1206 | ../lxc/commands_utils.c ../lxc/commands_utils.h \ | |
1207 | ../lxc/conf.c ../lxc/conf.h \ | |
1208 | ../lxc/confile.c ../lxc/confile.h \ | |
1209 | ../lxc/confile_utils.c ../lxc/confile_utils.h \ | |
1210 | ../lxc/error.c ../lxc/error.h \ | |
1211 | ../lxc/file_utils.c ../lxc/file_utils.h \ | |
1212 | ../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \ | |
1213 | ../lxc/initutils.c ../lxc/initutils.h \ | |
1214 | ../lxc/log.c ../lxc/log.h \ | |
1215 | ../lxc/lxclock.c ../lxc/lxclock.h \ | |
1216 | ../lxc/mainloop.c ../lxc/mainloop.h \ | |
1217 | ../lxc/monitor.c ../lxc/monitor.h \ | |
1218 | ../lxc/mount_utils.c ../lxc/mount_utils.h \ | |
1219 | ../lxc/namespace.c ../lxc/namespace.h \ | |
1220 | ../lxc/network.c ../lxc/network.h \ | |
1221 | ../lxc/nl.c ../lxc/nl.h \ | |
1222 | ../lxc/parse.c ../lxc/parse.h \ | |
1223 | ../lxc/process_utils.c ../lxc/process_utils.h \ | |
1224 | ../lxc/ringbuf.c ../lxc/ringbuf.h \ | |
1225 | ../lxc/start.c ../lxc/start.h \ | |
1226 | ../lxc/state.c ../lxc/state.h \ | |
1227 | ../lxc/storage/btrfs.c ../lxc/storage/btrfs.h \ | |
1228 | ../lxc/storage/dir.c ../lxc/storage/dir.h \ | |
1229 | ../lxc/storage/loop.c ../lxc/storage/loop.h \ | |
1230 | ../lxc/storage/lvm.c ../lxc/storage/lvm.h \ | |
1231 | ../lxc/storage/nbd.c ../lxc/storage/nbd.h \ | |
1232 | ../lxc/storage/overlay.c ../lxc/storage/overlay.h \ | |
1233 | ../lxc/storage/rbd.c ../lxc/storage/rbd.h \ | |
1234 | ../lxc/storage/rsync.c ../lxc/storage/rsync.h \ | |
1235 | ../lxc/storage/storage.c ../lxc/storage/storage.h \ | |
1236 | ../lxc/storage/storage_utils.c ../lxc/storage/storage_utils.h \ | |
1237 | ../lxc/storage/zfs.c ../lxc/storage/zfs.h \ | |
1238 | ../lxc/sync.c ../lxc/sync.h \ | |
1239 | ../lxc/string_utils.c ../lxc/string_utils.h \ | |
1240 | ../lxc/terminal.c ../lxc/terminal.h \ | |
1241 | ../lxc/utils.c ../lxc/utils.h \ | |
1242 | ../lxc/uuid.c ../lxc/uuid.h \ | |
1243 | $(LSM_SOURCES) | |
1244 | if ENABLE_SECCOMP | |
1245 | lxc_test_rootfs_options_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h | |
1246 | endif | |
1247 | ||
1248 | if !HAVE_STRCHRNUL | |
1249 | lxc_test_rootfs_options_SOURCES += ../include/strchrnul.c ../include/strchrnul.h | |
1250 | endif | |
1251 | ||
646b75b5 CB |
1252 | if !HAVE_STRLCPY |
1253 | lxc_test_rootfs_options_SOURCES += ../include/strlcpy.c ../include/strlcpy.h | |
1254 | endif | |
1255 | ||
1256 | if !HAVE_STRLCAT | |
1257 | lxc_test_rootfs_options_SOURCES += ../include/strlcat.c ../include/strlcat.h | |
1258 | endif | |
1259 | ||
1260 | if !HAVE_OPENPTY | |
1261 | lxc_test_rootfs_options_SOURCES += ../include/openpty.c ../include/openpty.h | |
1262 | endif | |
1263 | ||
1264 | if IS_BIONIC | |
1265 | lxc_test_rootfs_options_SOURCES += ../include/fexecve.c ../include/fexecve.h \ | |
1266 | ../include/lxcmntent.c ../include/lxcmntent.h | |
1267 | endif | |
1268 | ||
1269 | if !HAVE_GETGRGID_R | |
1270 | lxc_test_rootfs_options_SOURCES += ../include/getgrgid_r.c ../include/getgrgid_r.h | |
1271 | endif | |
1272 | ||
1273 | if !HAVE_PRLIMIT | |
1274 | if HAVE_PRLIMIT64 | |
1275 | lxc_test_rootfs_options_SOURCES += ../include/prlimit.c ../include/prlimit.h | |
1276 | endif | |
1277 | endif | |
1278 | ||
b59bc011 CB |
1279 | AM_CFLAGS += -DLXCROOTFSMOUNT=\"$(LXCROOTFSMOUNT)\" \ |
1280 | -DLXCPATH=\"$(LXCPATH)\" \ | |
1281 | -DLXC_GLOBAL_CONF=\"$(LXC_GLOBAL_CONF)\" \ | |
1282 | -DLXCINITDIR=\"$(LXCINITDIR)\" \ | |
1283 | -DLIBEXECDIR=\"$(LIBEXECDIR)\" \ | |
1284 | -DLOGPATH=\"$(LOGPATH)\" \ | |
1285 | -DLXCTEMPLATEDIR=\"$(LXCTEMPLATEDIR)\" \ | |
1286 | -DLXC_DEFAULT_CONFIG=\"$(LXC_DEFAULT_CONFIG)\" \ | |
1287 | -DDEFAULT_CGROUP_PATTERN=\"$(DEFAULT_CGROUP_PATTERN)\" \ | |
1288 | -DRUNTIME_PATH=\"$(RUNTIME_PATH)\" \ | |
1289 | -DSBINDIR=\"$(SBINDIR)\" \ | |
1290 | -I $(top_srcdir)/src \ | |
58db1a61 | 1291 | -I $(top_srcdir)/src/include \ |
b59bc011 CB |
1292 | -I $(top_srcdir)/src/lxc \ |
1293 | -I $(top_srcdir)/src/lxc/cgroups \ | |
1294 | -I $(top_srcdir)/src/lxc/tools \ | |
1295 | -I $(top_srcdir)/src/lxc/storage \ | |
1296 | -pthread | |
72d0e1cb | 1297 | |
72863294 DE |
1298 | if ENABLE_APPARMOR |
1299 | AM_CFLAGS += -DHAVE_APPARMOR | |
beff9939 | 1300 | AM_CFLAGS += -DAPPARMOR_CACHE_DIR=\"$(APPARMOR_CACHE_DIR)\" |
72863294 DE |
1301 | endif |
1302 | ||
c3e3c21a CB |
1303 | if ENABLE_SECCOMP |
1304 | AM_CFLAGS += -DHAVE_SECCOMP \ | |
1305 | $(SECCOMP_CFLAGS) | |
1306 | endif | |
1307 | ||
72863294 DE |
1308 | if ENABLE_SELINUX |
1309 | AM_CFLAGS += -DHAVE_SELINUX | |
1310 | endif | |
1311 | ||
691544a0 CB |
1312 | bin_PROGRAMS = lxc-test-api-reboot \ |
1313 | lxc-test-apparmor \ | |
90658f16 | 1314 | lxc-test-arch-parse \ |
691544a0 CB |
1315 | lxc-test-attach \ |
1316 | lxc-test-basic \ | |
1317 | lxc-test-cgpath \ | |
1318 | lxc-test-clonetest \ | |
1319 | lxc-test-concurrent \ | |
1320 | lxc-test-config-jump-table \ | |
1321 | lxc-test-console \ | |
1322 | lxc-test-console-log \ | |
1323 | lxc-test-containertests \ | |
1324 | lxc-test-createtest \ | |
1325 | lxc-test-criu-check-feature \ | |
99258734 | 1326 | lxc-test-cve-2019-5736 \ |
691544a0 CB |
1327 | lxc-test-destroytest \ |
1328 | lxc-test-device-add-remove \ | |
1329 | lxc-test-getkeys \ | |
1330 | lxc-test-get_item \ | |
1331 | lxc-test-list \ | |
1332 | lxc-test-locktests \ | |
1333 | lxc-test-lxcpath \ | |
1334 | lxc-test-may-control \ | |
1335 | lxc-test-mount-injection \ | |
1336 | lxc-test-parse-config-file \ | |
1337 | lxc-test-raw-clone \ | |
1338 | lxc-test-reboot \ | |
587b2dff | 1339 | lxc-test-rootfs-options \ |
691544a0 CB |
1340 | lxc-test-saveconfig \ |
1341 | lxc-test-share-ns \ | |
1342 | lxc-test-shortlived \ | |
1343 | lxc-test-shutdowntest \ | |
1344 | lxc-test-snapshot \ | |
1345 | lxc-test-startone \ | |
1346 | lxc-test-state-server \ | |
d777ffcc | 1347 | lxc-test-sys-mixed \ |
691544a0 | 1348 | lxc-test-utils |
20ab58c7 | 1349 | |
a9145d62 CB |
1350 | bin_SCRIPTS = |
1351 | if ENABLE_TOOLS | |
1352 | bin_SCRIPTS += lxc-test-automount \ | |
691544a0 CB |
1353 | lxc-test-autostart \ |
1354 | lxc-test-cloneconfig \ | |
1355 | lxc-test-createconfig \ | |
188f8836 | 1356 | lxc-test-exit-code \ |
691544a0 | 1357 | lxc-test-no-new-privs \ |
9026f5c2 | 1358 | lxc-test-rootfs \ |
493e00b6 | 1359 | lxc-test-procsys \ |
9026f5c2 | 1360 | lxc-test-usernsexec |
525421c9 | 1361 | |
025f59ab | 1362 | if DISTRO_UBUNTU |
691544a0 CB |
1363 | bin_SCRIPTS += lxc-test-lxc-attach \ |
1364 | lxc-test-apparmor-mount \ | |
1365 | lxc-test-apparmor-generated \ | |
1366 | lxc-test-checkpoint-restore \ | |
1367 | lxc-test-snapdeps \ | |
1368 | lxc-test-symlink \ | |
1369 | lxc-test-unpriv \ | |
1370 | lxc-test-usernic | |
025f59ab | 1371 | endif |
a9145d62 | 1372 | endif |
025f59ab | 1373 | |
38718ccc EV |
1374 | if ENABLE_FUZZERS |
1375 | LIB_FUZZING_ENGINE ?= -fsanitize=fuzzer | |
1376 | ||
1377 | # https://google.github.io/oss-fuzz/getting-started/new-project-guide/#Requirements | |
1378 | nodist_EXTRA_fuzz_lxc_config_read_SOURCES = dummy.cxx | |
1379 | fuzz_lxc_config_read_SOURCES = fuzz-lxc-config-read.c | |
1380 | fuzz_lxc_config_read_CFLAGS = $(AM_CFLAGS) | |
1381 | fuzz_lxc_config_read_CXXFLAGS = $(AM_CFLAGS) | |
1382 | fuzz_lxc_config_read_LDFLAGS = $(AM_LDFLAGS) -static | |
1383 | fuzz_lxc_config_read_LDADD = $(LDADD) $(LIB_FUZZING_ENGINE) | |
1384 | ||
1385 | nodist_EXTRA_fuzz_lxc_define_load_SOURCES = dummy.cxx | |
1386 | fuzz_lxc_define_load_SOURCES = fuzz-lxc-define-load.c | |
1387 | fuzz_lxc_define_load_CFLAGS = $(AM_CFLAGS) | |
1388 | fuzz_lxc_define_load_CXXFLAGS = $(AM_CFLAGS) | |
1389 | fuzz_lxc_define_load_LDFLAGS = $(AM_LDFLAGS) -static | |
1390 | fuzz_lxc_define_load_LDADD = $(LDADD) $(LIB_FUZZING_ENGINE) | |
1391 | ||
74951960 CB |
1392 | nodist_EXTRA_fuzz_lxc_cgroup_init_SOURCES = dummy.cxx |
1393 | fuzz_lxc_cgroup_init_SOURCES = fuzz-lxc-cgroup-init.c | |
1394 | fuzz_lxc_cgroup_init_CFLAGS = $(AM_CFLAGS) | |
1395 | fuzz_lxc_cgroup_init_CXXFLAGS = $(AM_CFLAGS) | |
1396 | fuzz_lxc_cgroup_init_LDFLAGS = $(AM_LDFLAGS) -static | |
1397 | fuzz_lxc_cgroup_init_LDADD = $(LDADD) $(LIB_FUZZING_ENGINE) | |
1398 | ||
1399 | bin_PROGRAMS += fuzz-lxc-cgroup-init \ | |
1400 | fuzz-lxc-config-read \ | |
1401 | fuzz-lxc-define-load | |
aa967867 EV |
1402 | |
1403 | bin_SCRIPTS += lxc-test-fuzzers | |
38718ccc | 1404 | endif |
525421c9 | 1405 | endif |
90341b9e | 1406 | |
4fb70d07 CB |
1407 | EXTRA_DIST = arch_parse.c \ |
1408 | basic.c \ | |
691544a0 CB |
1409 | cgpath.c \ |
1410 | clonetest.c \ | |
1411 | concurrent.c \ | |
1412 | config_jump_table.c \ | |
1413 | console.c \ | |
1414 | console_log.c \ | |
1415 | containertests.c \ | |
1416 | createtest.c \ | |
1417 | criu_check_feature.c \ | |
99258734 | 1418 | cve-2019-5736.c \ |
691544a0 CB |
1419 | destroytest.c \ |
1420 | device_add_remove.c \ | |
1421 | get_item.c \ | |
1422 | getkeys.c \ | |
1423 | list.c \ | |
1424 | locktests.c \ | |
1425 | lxcpath.c \ | |
1426 | lxc_raw_clone.c \ | |
1427 | lxc-test-lxc-attach \ | |
1428 | lxc-test-automount \ | |
1429 | lxc-test-rootfs \ | |
493e00b6 | 1430 | lxc-test-procsys \ |
691544a0 CB |
1431 | lxc-test-autostart \ |
1432 | lxc-test-apparmor-mount \ | |
1433 | lxc-test-apparmor-generated \ | |
1434 | lxc-test-checkpoint-restore \ | |
1435 | lxc-test-cloneconfig \ | |
1436 | lxc-test-createconfig \ | |
fef909cf | 1437 | lxc-test-exit-code \ |
691544a0 CB |
1438 | lxc-test-no-new-privs \ |
1439 | lxc-test-snapdeps \ | |
1440 | lxc-test-symlink \ | |
1441 | lxc-test-unpriv \ | |
9026f5c2 | 1442 | lxc-test-usernsexec \ |
691544a0 CB |
1443 | lxc-test-utils.c \ |
1444 | may_control.c \ | |
1445 | mount_injection.c \ | |
1446 | parse_config_file.c \ | |
587b2dff | 1447 | rootfs_options.c \ |
691544a0 CB |
1448 | saveconfig.c \ |
1449 | shortlived.c \ | |
1450 | shutdowntest.c \ | |
1451 | snapshot.c \ | |
1452 | startone.c \ | |
1453 | state_server.c \ | |
d777ffcc CB |
1454 | share_ns.c \ |
1455 | sys_mixed.c | |
24b9970e CB |
1456 | |
1457 | clean-local: | |
1458 | rm -f lxc-test-utils-* | |
9c61a6d6 | 1459 | rm -f lxc-parse-config-file-* |