]> git.proxmox.com Git - mirror_lxcfs.git/log
mirror_lxcfs.git
4 years agoRelease LXCFS 4.0.2 lxcfs-4.0.2
Stéphane Graber [Tue, 7 Apr 2020 18:14:03 +0000 (14:14 -0400)]
Release LXCFS 4.0.2

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
4 years agotests: Handle different lib paths
Stéphane Graber [Wed, 25 Mar 2020 14:55:51 +0000 (10:55 -0400)]
tests: Handle different lib paths

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
4 years agoproc_fuse: fix swap calculations
Christian Brauner [Tue, 24 Mar 2020 09:03:06 +0000 (10:03 +0100)]
proc_fuse: fix swap calculations

The sscanf() line got removed on accident.

Closes #384.
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
4 years agotree-wide: add and use syscall_numbers.h
Christian Brauner [Fri, 20 Mar 2020 17:42:37 +0000 (18:42 +0100)]
tree-wide: add and use syscall_numbers.h

The same thing that I did for LXC.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
4 years agoproc_fuse: improve /proc/uptime virtualization
Christian Brauner [Fri, 20 Mar 2020 10:22:46 +0000 (11:22 +0100)]
proc_fuse: improve /proc/uptime virtualization

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
4 years agoproc_fuse: memory virtualization improvements
Christian Brauner [Fri, 20 Mar 2020 10:07:16 +0000 (11:07 +0100)]
proc_fuse: memory virtualization improvements

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
4 years agoproc_fuse: improve /proc/meminfo
Christian Brauner [Fri, 20 Mar 2020 09:46:40 +0000 (10:46 +0100)]
proc_fuse: improve /proc/meminfo

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
4 years agoRelease LXCFS 4.0.1 lxcfs-4.0.1
Stéphane Graber [Thu, 19 Mar 2020 14:20:44 +0000 (10:20 -0400)]
Release LXCFS 4.0.1

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
4 years agocgroup_fuse: actually make asz check mean something
Christian Brauner [Wed, 18 Mar 2020 14:35:43 +0000 (15:35 +0100)]
cgroup_fuse: actually make asz check mean something

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
4 years agotests: Silence build output
Stéphane Graber [Wed, 18 Mar 2020 16:14:43 +0000 (12:14 -0400)]
tests: Silence build output

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
4 years agocgroup_utils: remove dot_or_empty()
Christian Brauner [Tue, 17 Mar 2020 09:41:17 +0000 (10:41 +0100)]
cgroup_utils: remove dot_or_empty()

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
4 years agocgroup_fuse: rework cgfs_iterate_cgroup()
Christian Brauner [Tue, 17 Mar 2020 09:40:47 +0000 (10:40 +0100)]
cgroup_fuse: rework cgfs_iterate_cgroup()

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
4 years agocgroup_fuse: rework cgfs_set_value()
Christian Brauner [Tue, 17 Mar 2020 09:34:39 +0000 (10:34 +0100)]
cgroup_fuse: rework cgfs_set_value()

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
4 years agocgroup_fuse: rework open_pids_file()
Christian Brauner [Tue, 17 Mar 2020 09:29:40 +0000 (10:29 +0100)]
cgroup_fuse: rework open_pids_file()

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
4 years agocgroup_fuse: rework cgfs_chown_file()
Christian Brauner [Tue, 17 Mar 2020 09:23:57 +0000 (10:23 +0100)]
cgroup_fuse: rework cgfs_chown_file()

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
4 years agocgroup_fuse: rework cgfs_chmod_file()
Christian Brauner [Tue, 17 Mar 2020 09:18:05 +0000 (10:18 +0100)]
cgroup_fuse: rework cgfs_chmod_file()

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
4 years agocgroup_fuse: rework cgfs_remove()
Christian Brauner [Tue, 17 Mar 2020 09:16:45 +0000 (10:16 +0100)]
cgroup_fuse: rework cgfs_remove()

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
4 years agocgroup_fuse: rework cgfs_create()
Christian Brauner [Tue, 17 Mar 2020 09:15:12 +0000 (10:15 +0100)]
cgroup_fuse: rework cgfs_create()

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
4 years agocgroup_fuse: rework cgfs_get_key()
Christian Brauner [Tue, 17 Mar 2020 09:13:49 +0000 (10:13 +0100)]
cgroup_fuse: rework cgfs_get_key()

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
4 years agocgroup_fuse: rework is_child_cgroup()
Christian Brauner [Tue, 17 Mar 2020 09:08:21 +0000 (10:08 +0100)]
cgroup_fuse: rework is_child_cgroup()

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
4 years agotree-wide: remove is_relative() and use must_make_path_relative()
Christian Brauner [Tue, 17 Mar 2020 09:05:53 +0000 (10:05 +0100)]
tree-wide: remove is_relative() and use must_make_path_relative()

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
4 years agotree-wide: add and use must_make_path_relative()
Christian Brauner [Mon, 16 Mar 2020 21:16:51 +0000 (22:16 +0100)]
tree-wide: add and use must_make_path_relative()

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
4 years agoproc_cpuview: fix compiler warning
Christian Brauner [Mon, 16 Mar 2020 19:59:41 +0000 (20:59 +0100)]
proc_cpuview: fix compiler warning

proc_cpuview.c: In function ‘read_cpu_cfs_param’:
proc_cpuview.c:440:39: error: use of assignment suppression and length modifier together in gnu_scanf format [-Werror=format=]
  440 |  if (sscanf(str, first ? "%" PRId64 : "%*" PRId64 " %" PRId64, value) != 1)
      |                                       ^~~~

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
4 years agoproc_loadvg: fixes
Christian Brauner [Mon, 16 Mar 2020 19:24:59 +0000 (20:24 +0100)]
proc_loadvg: fixes

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
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 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 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 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 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 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 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 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 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 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 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 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 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 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>