]> git.proxmox.com Git - mirror_lxcfs.git/log
mirror_lxcfs.git
4 years agoMerge pull request #376 from brauner/2020-03-16/fixes
Stéphane Graber [Mon, 16 Mar 2020 17:58:31 +0000 (13:58 -0400)]
Merge pull request #376 from brauner/2020-03-16/fixes

utils: shut up compiler

4 years agoutils: shut up compiler
Christian Brauner [Mon, 16 Mar 2020 17:55:09 +0000 (18:55 +0100)]
utils: shut up compiler

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
4 years agoMerge pull request #375 from brauner/2020-03-16/cgroup_fixes_2
Stéphane Graber [Mon, 16 Mar 2020 16:52:17 +0000 (12:52 -0400)]
Merge pull request #375 from brauner/2020-03-16/cgroup_fixes_2

cgroups: remove unused function

4 years agocgroups: remove unused function
Christian Brauner [Mon, 16 Mar 2020 16:46:57 +0000 (17:46 +0100)]
cgroups: remove unused function

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
4 years agoMerge pull request #374 from brauner/2020-03-16/cgroup_fixes_2
Stéphane Graber [Mon, 16 Mar 2020 16:41:44 +0000 (12:41 -0400)]
Merge pull request #374 from brauner/2020-03-16/cgroup_fixes_2

fixes

4 years agotree-wide: fix dot_or_empty()
Christian Brauner [Mon, 16 Mar 2020 16:34:34 +0000 (17:34 +0100)]
tree-wide: fix dot_or_empty()

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
4 years agotree-wide: memory utils improvements
Christian Brauner [Mon, 16 Mar 2020 13:05:11 +0000 (14:05 +0100)]
tree-wide: memory utils improvements

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
4 years agoMerge pull request #372 from brauner/2020-03-16/cgroup_fixes
Stéphane Graber [Mon, 16 Mar 2020 13:32:07 +0000 (09:32 -0400)]
Merge pull request #372 from brauner/2020-03-16/cgroup_fixes

cgroup_fuse: fix cgroupfs virtualization needed on non-cgns systems

4 years agocgroup_fuse: fix cgroupfs virtualization needed on non-cgns systems
Christian Brauner [Mon, 16 Mar 2020 12:31:58 +0000 (13:31 +0100)]
cgroup_fuse: fix cgroupfs virtualization needed on non-cgns systems

This also removes "default_permissions" again.
We can't use default_permissions since we still support systems that
don't have kernels with cgroup namespace support. On such kernels lxcfs
will provide a namespaced cgroup view and needs explicit access helpers
to make that work.
Another reason that came to me is that we can't or at least shouldn't
guarantee that we don't need more complicated access helpers for proc
and sys virtualization in the future.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
4 years agoMerge pull request #371 from brauner/master
Stéphane Graber [Sun, 15 Mar 2020 06:14:49 +0000 (02:14 -0400)]
Merge pull request #371 from brauner/master

bindings: introduce set_signal_handler

4 years agobindings: introduce set_signal_handler
Christian Brauner [Sat, 14 Mar 2020 23:39:17 +0000 (00:39 +0100)]
bindings: introduce set_signal_handler

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
4 years agoMerge pull request #370 from brauner/2020-03-14/64_t_conversions
Stéphane Graber [Sat, 14 Mar 2020 21:17:14 +0000 (17:17 -0400)]
Merge pull request #370 from brauner/2020-03-14/64_t_conversions

test_sigusr2: improve tests

4 years agotest_sigusr2: improve tests
Christian Brauner [Sat, 14 Mar 2020 20:27:02 +0000 (21:27 +0100)]
test_sigusr2: improve tests

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
4 years agoMerge pull request #369 from brauner/2020-03-14/64_t_conversions
Stéphane Graber [Sat, 14 Mar 2020 18:59:42 +0000 (14:59 -0400)]
Merge pull request #369 from brauner/2020-03-14/64_t_conversions

lxcfs: allow users to switch between virtualization and non-virtualization mode

4 years agoproc_fuse: remove unused variable
Christian Brauner [Sat, 14 Mar 2020 18:43:17 +0000 (19:43 +0100)]
proc_fuse: remove unused variable

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
4 years agotest_proc: add SIGUSR2 virtualization switch tests
Christian Brauner [Sat, 14 Mar 2020 17:35:45 +0000 (18:35 +0100)]
test_proc: add SIGUSR2 virtualization switch tests

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
4 years agobindings: allow users to switch between virtualization and non-virtualization mode
Christian Brauner [Sat, 14 Mar 2020 17:25:46 +0000 (18:25 +0100)]
bindings: allow users to switch between virtualization and non-virtualization mode

When LXCFS has a bug and provides wrong or inconsistent values user
often want to turn off virtualization until we have figured out a fix
and rollout an upgrade to reload the shared library. Allow them to
toggle between virtualization mode and non-virtualization mode by
sending SIGUSR2 to lxcfs:

 Kernel supports pidfds
 api_extensions:
 - cgroups
 - sys_cpu_online
 - proc_cpuinfo
 - proc_diskstats
 - proc_loadavg
 - proc_meminfo
 - proc_stat
 - proc_swaps
 - proc_uptime
 - shared_pidns
 - cpuview_daemon
 - loadavg_daemon
 - pidfds
 Switched into non-virtualization mode
 Switched into virtualization mode
 Switched into non-virtualization mode
 Switched into virtualization mode
 Switched into non-virtualization mode

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
4 years agoMerge pull request #368 from brauner/2020-03-14/64_t_conversions
Stéphane Graber [Sat, 14 Mar 2020 17:10:45 +0000 (13:10 -0400)]
Merge pull request #368 from brauner/2020-03-14/64_t_conversions

tree-wide: use {u}int64_t types

4 years agotree-wide: use {u}int64_t types
Christian Brauner [Sat, 14 Mar 2020 17:04:38 +0000 (18:04 +0100)]
tree-wide: use {u}int64_t types

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
4 years agoMerge pull request #367 from brauner/master
Stéphane Graber [Sat, 14 Mar 2020 14:17:31 +0000 (10:17 -0400)]
Merge pull request #367 from brauner/master

proc_fuse: port to uint64_t

4 years agoproc_fuse: port to uint64_t
Christian Brauner [Sat, 14 Mar 2020 11:54:55 +0000 (12:54 +0100)]
proc_fuse: port to uint64_t

Using unsigned long and uint64_t is problematic on 32bit.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
4 years agoMerge pull request #366 from stgraber/master
Christian Brauner [Sat, 14 Mar 2020 00:29:17 +0000 (01:29 +0100)]
Merge pull request #366 from stgraber/master

usage: Fix cfs help

4 years agousage: Fix lxcfs description
Stéphane Graber [Fri, 13 Mar 2020 23:22:26 +0000 (19:22 -0400)]
usage: Fix lxcfs description

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
4 years agousage: Fix cfs help
Stéphane Graber [Fri, 13 Mar 2020 23:07:35 +0000 (19:07 -0400)]
usage: Fix cfs help

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
4 years agoMerge pull request #365 from brauner/master
Stéphane Graber [Fri, 13 Mar 2020 12:43:03 +0000 (08:43 -0400)]
Merge pull request #365 from brauner/master

liblxcfs: handle broken upgrades gracefully

4 years agoliblxcfs: handle broken upgrade gracefully
Christian Brauner [Fri, 13 Mar 2020 12:24:59 +0000 (13:24 +0100)]
liblxcfs: handle broken upgrade gracefully

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
4 years agobindings: make constructor failures non-fatal
Christian Brauner [Fri, 13 Mar 2020 11:24:41 +0000 (12:24 +0100)]
bindings: make constructor failures non-fatal

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
4 years agotree-wide: mark lxcfs fuse ops
Christian Brauner [Fri, 13 Mar 2020 11:22:26 +0000 (12:22 +0100)]
tree-wide: mark lxcfs fuse ops

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
4 years agoMerge pull request #364 from brauner/master
Stéphane Graber [Fri, 13 Mar 2020 12:02:21 +0000 (08:02 -0400)]
Merge pull request #364 from brauner/master

lxcfs: fix shared library reload

4 years agobindings: handle current working directory on upgrade
Christian Brauner [Fri, 13 Mar 2020 10:34:37 +0000 (11:34 +0100)]
bindings: handle current working directory on upgrade

Recenly I've made failures to run the constructor or destructor fatal.
Mostly, because we can't guarantee correct functionality if they fail.
In fact we can't do anything useful at all (Maybe I can come up with
something more useful soon.)
In any case, this surfaced a bug where on systems that replace/delete
the current workding directory of lxcfs will cause the constructor to
crash on reload because the path that getcwd() returns does not exist
anymore. Fix this by always escaping to root after the construtor has
run but also make it optional in case someone is messing with chroot()s
or other things.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
4 years agotree-wide: add missing O_CLOEXEC
Christian Brauner [Fri, 13 Mar 2020 10:12:14 +0000 (11:12 +0100)]
tree-wide: add missing O_CLOEXEC

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
4 years agoMerge pull request #363 from brauner/master
Stéphane Graber [Wed, 11 Mar 2020 02:27:56 +0000 (22:27 -0400)]
Merge pull request #363 from brauner/master

configure: add -Wvla and -std=gnu11

4 years agoconfigure: add -Wvla and -std=gnu11
Christian Brauner [Wed, 11 Mar 2020 02:10:09 +0000 (03:10 +0100)]
configure: add -Wvla and -std=gnu11

Both are standard in LXC for a long time now. And gcc-4.8 which is the
minimal compiler version we require (same as the Linux kernel) deals
with this.

Closes #362.
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
4 years agoMerge pull request #361 from 3XX0/unicg_fixups
Christian Brauner [Sat, 7 Mar 2020 11:03:54 +0000 (12:03 +0100)]
Merge pull request #361 from 3XX0/unicg_fixups

Unified cgroup fixups

4 years agoproc_fuse: fix meminfo with unified cgroup layout
Jonathan Calmels [Sat, 7 Mar 2020 10:50:41 +0000 (02:50 -0800)]
proc_fuse: fix meminfo with unified cgroup layout

Signed-off-by: Jonathan Calmels <jbjcalmels@gmail.com>
4 years agoproc_cpuview: add minimal support for unified cgroup layout
Jonathan Calmels [Sat, 7 Mar 2020 10:48:14 +0000 (02:48 -0800)]
proc_cpuview: add minimal support for unified cgroup layout

Signed-off-by: Jonathan Calmels <jbjcalmels@gmail.com>
4 years agoRelease LXCFS 4.0.0 lxcfs-4.0.0
Stéphane Graber [Fri, 6 Mar 2020 13:43:40 +0000 (14:43 +0100)]
Release LXCFS 4.0.0

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
4 years agoMerge pull request #358 from stgraber/master
Christian Brauner [Fri, 6 Mar 2020 13:36:48 +0000 (14:36 +0100)]
Merge pull request #358 from stgraber/master

travis: Enable all architectures

4 years agotests: Append to LD_LIBRARY_PATH
Stéphane Graber [Fri, 6 Mar 2020 13:33:35 +0000 (14:33 +0100)]
tests: Append to LD_LIBRARY_PATH

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
4 years agotravis: Pass env through sudo
Stéphane Graber [Fri, 6 Mar 2020 12:57:46 +0000 (13:57 +0100)]
travis: Pass env through sudo

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
4 years agotravis: Add uuid-runtime
Stéphane Graber [Fri, 6 Mar 2020 11:34:27 +0000 (12:34 +0100)]
travis: Add uuid-runtime

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
4 years agotests: Don't overwrite LD_LIBRARY_PATH
Stéphane Graber [Fri, 6 Mar 2020 11:33:13 +0000 (12:33 +0100)]
tests: Don't overwrite LD_LIBRARY_PATH

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
4 years agogitignore: Add dirstamp
Stéphane Graber [Fri, 6 Mar 2020 11:24:55 +0000 (12:24 +0100)]
gitignore: Add dirstamp

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
4 years agotests: Cleanup output
Stéphane Graber [Fri, 6 Mar 2020 10:41:12 +0000 (11:41 +0100)]
tests: Cleanup output

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
4 years agotravis: Build with prefix
Stéphane Graber [Fri, 6 Mar 2020 10:40:43 +0000 (11:40 +0100)]
travis: Build with prefix

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
4 years agotravis: Setup clone_children
Stéphane Graber [Fri, 6 Mar 2020 08:51:09 +0000 (09:51 +0100)]
travis: Setup clone_children

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
4 years agotests: Fix uptime check
Stéphane Graber [Fri, 6 Mar 2020 08:45:45 +0000 (09:45 +0100)]
tests: Fix uptime check

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
4 years agotests: Fix lxcfs path
Stéphane Graber [Fri, 6 Mar 2020 08:29:48 +0000 (09:29 +0100)]
tests: Fix lxcfs path

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
4 years agotravis: Run the tests
Stéphane Graber [Fri, 6 Mar 2020 08:19:07 +0000 (09:19 +0100)]
travis: Run the tests

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
4 years agotravis: Enable all architectures
Stéphane Graber [Fri, 6 Mar 2020 07:31:22 +0000 (08:31 +0100)]
travis: Enable all architectures

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
4 years agoMerge pull request #360 from brauner/master
Stéphane Graber [Fri, 6 Mar 2020 13:02:25 +0000 (14:02 +0100)]
Merge pull request #360 from brauner/master

fixes

4 years agoproc_fuse: make sure file is valid
Christian Brauner [Fri, 6 Mar 2020 13:00:21 +0000 (14:00 +0100)]
proc_fuse: make sure file is valid

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
4 years agolxcfs: s/disable-cfs/--enable-cfs/g
Christian Brauner [Fri, 6 Mar 2020 12:49:08 +0000 (13:49 +0100)]
lxcfs: s/disable-cfs/--enable-cfs/g

Switch the logic.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
4 years agoproc_cpuview: fix /proc/stat cpu virtualization
Christian Brauner [Fri, 6 Mar 2020 12:44:55 +0000 (13:44 +0100)]
proc_cpuview: fix /proc/stat cpu virtualization

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
4 years agoproc_cpuview: cleanup
Christian Brauner [Fri, 6 Mar 2020 10:10:04 +0000 (11:10 +0100)]
proc_cpuview: cleanup

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
4 years agoproc_cpuview: cleanup
Christian Brauner [Fri, 6 Mar 2020 09:34:40 +0000 (10:34 +0100)]
proc_cpuview: cleanup

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
4 years agoMerge pull request #359 from brauner/master
Stéphane Graber [Fri, 6 Mar 2020 09:19:14 +0000 (10:19 +0100)]
Merge pull request #359 from brauner/master

proc_{cpuview,loadavg}: fix signed/unsigned check

4 years agoproc_cpuview: cleanup
Christian Brauner [Fri, 6 Mar 2020 09:18:00 +0000 (10:18 +0100)]
proc_cpuview: cleanup

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
4 years agoproc_cpuview: fix cpuline_in_cpuset()
Christian Brauner [Fri, 6 Mar 2020 09:17:22 +0000 (10:17 +0100)]
proc_cpuview: fix cpuline_in_cpuset()

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
4 years agoproc_{cpuview,loadavg}: fix signed/unsigned check
Christian Brauner [Fri, 6 Mar 2020 08:55:47 +0000 (09:55 +0100)]
proc_{cpuview,loadavg}: fix signed/unsigned check

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
4 years agoMerge pull request #357 from brauner/2020-03-05/bugfixes_2
Stéphane Graber [Fri, 6 Mar 2020 06:32:09 +0000 (07:32 +0100)]
Merge pull request #357 from brauner/2020-03-05/bugfixes_2

fixes

4 years agoproc_fuse: fix identation
Christian Brauner [Thu, 5 Mar 2020 22:51:37 +0000 (23:51 +0100)]
proc_fuse: fix identation

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
4 years agoproc_cpuview: ensure NULL
Christian Brauner [Thu, 5 Mar 2020 22:46:25 +0000 (23:46 +0100)]
proc_cpuview: ensure NULL

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
4 years agoproc_cpuview: fix whitespace error
Christian Brauner [Thu, 5 Mar 2020 22:41:27 +0000 (23:41 +0100)]
proc_cpuview: fix whitespace error

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
4 years agomacro: fix log_debug()
Christian Brauner [Thu, 5 Mar 2020 22:41:02 +0000 (23:41 +0100)]
macro: fix log_debug()

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
4 years agotree-wide: fix cpuview virtualisation
Christian Brauner [Thu, 5 Mar 2020 22:31:24 +0000 (23:31 +0100)]
tree-wide: fix cpuview virtualisation

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
4 years agoMerge pull request #356 from stgraber/master
Christian Brauner [Thu, 5 Mar 2020 18:05:46 +0000 (19:05 +0100)]
Merge pull request #356 from stgraber/master

Bugfixes

4 years agotests: Fix building tests
Stéphane Graber [Thu, 5 Mar 2020 18:00:51 +0000 (19:00 +0100)]
tests: Fix building tests

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
4 years agogitignore: Ignore systemd service
Stéphane Graber [Thu, 5 Mar 2020 18:00:11 +0000 (19:00 +0100)]
gitignore: Ignore systemd service

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
4 years agoMerge pull request #355 from brauner/master
Stéphane Graber [Thu, 5 Mar 2020 16:55:59 +0000 (17:55 +0100)]
Merge pull request #355 from brauner/master

lxcfs: fix help output

4 years agolxcfs: fix help output
Christian Brauner [Thu, 5 Mar 2020 16:49:31 +0000 (17:49 +0100)]
lxcfs: fix help output

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
4 years agoMerge pull request #354 from brauner/master
Stéphane Graber [Thu, 5 Mar 2020 16:38:49 +0000 (17:38 +0100)]
Merge pull request #354 from brauner/master

fixes

4 years agoautotools: don't include lxcfs.1
Christian Brauner [Thu, 5 Mar 2020 16:37:36 +0000 (17:37 +0100)]
autotools: don't include lxcfs.1

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
4 years agoutils: remove unused variable
Christian Brauner [Thu, 5 Mar 2020 16:37:11 +0000 (17:37 +0100)]
utils: remove unused variable

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
4 years agoMerge pull request #353 from brauner/2020-03-05/bugfixes
Stéphane Graber [Thu, 5 Mar 2020 12:13:04 +0000 (13:13 +0100)]
Merge pull request #353 from brauner/2020-03-05/bugfixes

utils: cleanup

4 years agoutils: cleanup
Christian Brauner [Thu, 5 Mar 2020 11:30:55 +0000 (12:30 +0100)]
utils: cleanup

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
4 years agoMerge pull request #352 from brauner/2020-03-05/bugfixes
Stéphane Graber [Thu, 5 Mar 2020 11:30:34 +0000 (12:30 +0100)]
Merge pull request #352 from brauner/2020-03-05/bugfixes

sysfs_fuse: cleanup

4 years agosysfs_fuse: cleanup
Christian Brauner [Thu, 5 Mar 2020 11:24:29 +0000 (12:24 +0100)]
sysfs_fuse: cleanup

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
4 years agoMerge pull request #351 from brauner/2020-03-05/bugfixes
Stéphane Graber [Thu, 5 Mar 2020 11:21:22 +0000 (12:21 +0100)]
Merge pull request #351 from brauner/2020-03-05/bugfixes

fixes

4 years agoutils: remove used variables and functions
Christian Brauner [Thu, 5 Mar 2020 11:11:19 +0000 (12:11 +0100)]
utils: remove used variables and functions

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
4 years agotree-wide: align lxcfs and lxc licensing
Christian Brauner [Thu, 5 Mar 2020 10:57:04 +0000 (11:57 +0100)]
tree-wide: align lxcfs and lxc licensing

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
4 years agoautotools: mention that authors can be gathered from git log
Christian Brauner [Thu, 5 Mar 2020 10:45:12 +0000 (11:45 +0100)]
autotools: mention that authors can be gathered from git log

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
4 years agoproc_loadavg: cleanup
Christian Brauner [Thu, 5 Mar 2020 11:06:35 +0000 (12:06 +0100)]
proc_loadavg: cleanup

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
4 years agoMerge pull request #349 from brauner/2020-03-05/bugfixes
Stéphane Graber [Thu, 5 Mar 2020 10:37:12 +0000 (11:37 +0100)]
Merge pull request #349 from brauner/2020-03-05/bugfixes

bugfixes

4 years agoproc_loadavg: use fdopen_cached()
Christian Brauner [Thu, 5 Mar 2020 10:24:38 +0000 (11:24 +0100)]
proc_loadavg: use fdopen_cached()

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
4 years agocgroup_utils: only transfer ownership of fd after fdopen() has succeeded
Christian Brauner [Thu, 5 Mar 2020 10:23:29 +0000 (11:23 +0100)]
cgroup_utils: only transfer ownership of fd after fdopen() has succeeded

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
4 years agoproc_fuse: introduce and use fdopen_cached()
Christian Brauner [Thu, 5 Mar 2020 10:22:34 +0000 (11:22 +0100)]
proc_fuse: introduce and use fdopen_cached()

Note that in contrast to libc's fdopen() it doesn't consume the fd it is
passed.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
4 years agoproc_fuse: cleanup
Christian Brauner [Thu, 5 Mar 2020 10:02:22 +0000 (11:02 +0100)]
proc_fuse: cleanup

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
4 years agoMerge pull request #348 from brauner/2020-03-05/bugfixes
Stéphane Graber [Thu, 5 Mar 2020 09:37:22 +0000 (10:37 +0100)]
Merge pull request #348 from brauner/2020-03-05/bugfixes

bugfixes

4 years agoproc_cpuview: cleanup
Christian Brauner [Thu, 5 Mar 2020 09:34:31 +0000 (10:34 +0100)]
proc_cpuview: cleanup

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
4 years agolxcfs: use lxcfs_info()
Christian Brauner [Thu, 5 Mar 2020 08:54:28 +0000 (09:54 +0100)]
lxcfs: use lxcfs_info()

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
4 years agocgroups: remove stray debugging statement
Christian Brauner [Thu, 5 Mar 2020 08:53:39 +0000 (09:53 +0100)]
cgroups: remove stray debugging statement

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
4 years agobindings: rework initpid_still_valid()
Christian Brauner [Thu, 5 Mar 2020 08:49:36 +0000 (09:49 +0100)]
bindings: rework initpid_still_valid()

Let it fallback to stat when pidfd_send_signal() is not available.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
4 years agotree-wide: handle shared pid namespaces
Christian Brauner [Thu, 5 Mar 2020 08:35:47 +0000 (09:35 +0100)]
tree-wide: handle shared pid namespaces

Closes #310.
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
4 years agoproc_fuse: coding style
Christian Brauner [Thu, 5 Mar 2020 08:31:46 +0000 (09:31 +0100)]
proc_fuse: coding style

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
4 years agoproc_fuse: remove stray logging
Christian Brauner [Thu, 5 Mar 2020 08:31:08 +0000 (09:31 +0100)]
proc_fuse: remove stray logging

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
4 years agoproc_fuse: remove {} from single-ling if-statement
Christian Brauner [Thu, 5 Mar 2020 08:30:29 +0000 (09:30 +0100)]
proc_fuse: remove {} from single-ling if-statement

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
4 years agoproc_fuse: remove stray logging
Christian Brauner [Thu, 5 Mar 2020 08:28:14 +0000 (09:28 +0100)]
proc_fuse: remove stray logging

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
4 years agoMerge pull request #347 from brauner/2020-03-04/final_fixes
Stéphane Graber [Wed, 4 Mar 2020 22:38:14 +0000 (23:38 +0100)]
Merge pull request #347 from brauner/2020-03-04/final_fixes

autotools: cleanup

4 years agoautotools: cleanup
Christian Brauner [Wed, 4 Mar 2020 21:57:02 +0000 (22:57 +0100)]
autotools: cleanup

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>