]>
git.proxmox.com Git - mirror_lxcfs.git/log
Christian Brauner [Sun, 4 Sep 2016 16:49:23 +0000 (18:49 +0200)]
bindings: fix type weirdness with statfs f_type
Signed-off-by: Christian Brauner <christian.brauner@mailbox.org>
Christian Brauner [Sun, 4 Sep 2016 16:07:01 +0000 (18:07 +0200)]
bindings: use chroot() on ramfs
- Detect whether we are on a ramfs. We first try via statfs and check for
RAMFS_MAGIC. This may report TMPFS_MAGIC although it should better report
RAMFS_MAGIC. In this case, parse /proc/self/mountinfo and check for
- rootfs rootfs
like we do in LXC.
- When we are on ramfs use chroot(), otherwise use pivot_root().
Signed-off-by: Christian Brauner <christian.brauner@mailbox.org>
Christian Brauner [Sun, 4 Sep 2016 15:42:22 +0000 (17:42 +0200)]
bindings: agnostic naming
- non-functional changes
Signed-off-by: Christian Brauner <christian.brauner@mailbox.org>
Christian Brauner [Sun, 4 Sep 2016 15:33:09 +0000 (17:33 +0200)]
bindings: add function to check fs type
We use statfs directly because statvfs proved unreliable in my testing. It's
f_fsid field does not seem to work correctly with linux/magic.h macros.
Signed-off-by: Christian Brauner <christian.brauner@mailbox.org>
Serge Hallyn [Wed, 31 Aug 2016 14:03:53 +0000 (09:03 -0500)]
Merge pull request #140 from brauner/2016-08-30/add_avoid_version
autotools: add -avoid-version
Serge Hallyn [Wed, 31 Aug 2016 03:36:14 +0000 (22:36 -0500)]
Merge pull request #141 from brauner/2016-08-31/restore_cwd
bindings: restore original working directory
Christian Brauner [Wed, 31 Aug 2016 00:20:09 +0000 (02:20 +0200)]
bindings: restore original working directory
Signed-off-by: Christian Brauner <cbrauner@suse.de>
Christian Brauner [Tue, 30 Aug 2016 20:54:30 +0000 (22:54 +0200)]
autotools: add -avoid-version
Signed-off-by: Christian Brauner <cbrauner@suse.de>
Serge Hallyn [Tue, 30 Aug 2016 19:21:25 +0000 (14:21 -0500)]
Merge pull request #139 from brauner/2016-08-30/fix_debug_macros
bindings: fix debug macro
Christian Brauner [Tue, 30 Aug 2016 08:26:44 +0000 (10:26 +0200)]
bindings: fix debug macro
Signed-off-by: Christian Brauner <cbrauner@suse.de>
Serge Hallyn [Mon, 29 Aug 2016 18:45:24 +0000 (13:45 -0500)]
Merge pull request #138 from brauner/2016-08-29/libtool_module
2016 08 29/libtool module
Christian Brauner [Mon, 29 Aug 2016 08:33:49 +0000 (10:33 +0200)]
bindings, lxcfs: improve debugging
Signed-off-by: Christian Brauner <cbrauner@suse.de>
Christian Brauner [Mon, 29 Aug 2016 08:12:27 +0000 (10:12 +0200)]
libtool: do not link lxcfs against liblxcfs
Make liblxcfs a libtool module. Also, stop linking lxcfs against liblxcfs. We do
not really need this since we call dlopen() anyway. Furthermore, this allows us
to make sure that functions marked with __attribute__(constructor) are not run
before we call dlopen() in main() in lxcfs. This has the advantage that we can
show help output without __attribute__(constructor) functions being run.
Signed-off-by: Christian Brauner <cbrauner@suse.de>
Serge Hallyn [Fri, 26 Aug 2016 14:49:07 +0000 (10:49 -0400)]
Merge pull request #136 from brauner/2016-08-21/bugfixes
bindings: revert cgroup check and improve fs behavior
Christian Brauner [Fri, 26 Aug 2016 14:26:27 +0000 (16:26 +0200)]
bindings: make rmdir behave more consistently
We should be able to safely return -EPERM for:
if (!pick_controller_from_path())
/* Someone's trying to delete "/cgroup". */
if (!find_cgroup_in_path())
/* Someone's trying to delete a controller e.g. "/blkio". */
if (!get_cgdir_and_path()) {
/* Someone's trying to delete a cgroup on the same level as the
* "/lxc" cgroup e.g. rmdir "/cgroup/blkio/lxc" or
* rmdir "/cgroup/blkio/init.slice".
*/
}
All other interesting cases are caught further down.
Signed-off-by: Christian Brauner <cbrauner@suse.de>
Christian Brauner [Fri, 26 Aug 2016 08:32:32 +0000 (10:32 +0200)]
bindings: improve returned errnos
Signed-off-by: Christian Brauner <cbrauner@suse.de>
Christian Brauner [Thu, 25 Aug 2016 20:33:07 +0000 (22:33 +0200)]
bindings: revert cgroup check
We do not need to check whether mode & W_OK is passed in. Even if the cgroup
root mount is writeable operations like cg_mkdir() et al. will fail with e.g.
EPERM. Basically all operations will fail on the cgroup root mount point because
the first operation they perform is pick_controller_from_path(). That is to say
they try to e.g. pick "blkio" from /var/lib/lxcfs/cgroup/blkio/some/cgroups an
similiar for all other controllers. If pick_controller_from_path() fails they
all return an appropriate errno. For example, cg_mkdir() does:
controller = pick_controller_from_path(fc, path);
if (!controller)
return errno == ENOENT ? -EPERM : -errno;
This means, we do not need to return an errno already in cg_access when
mode & W_OK is passed in. This has the advantage that users are still able to
descend into /var/lib/lxcfs/cgroup via:
cd /var/lib/lxcfs/cgroup
but are still blocked from doing any write operations.
Signed-off-by: Christian Brauner <cbrauner@suse.de>
Serge Hallyn [Fri, 26 Aug 2016 10:05:36 +0000 (06:05 -0400)]
Merge pull request #134 from evgeni/no-argv0-in-usage
don't use argv[0] in usage output
Evgeni Golov [Fri, 26 Aug 2016 07:33:09 +0000 (09:33 +0200)]
don't use argv[0] in usage output
otherwise this generates "funny" manpages like
/home/remote/egolov/Devel/lxcfs/.libs/lt-lxcfs [-p pidfile] mountpoint
/home/remote/egolov/Devel/lxcfs/.libs/lt-lxcfs -h
or
/build/lxcfs-8lNGve/lxcfs-2.0/.1/.libs/lt-lxcfs [-p pidfile] mountpoint
/build/lxcfs-8lNGve/lxcfs-2.0/.1/.libs/lt-lxcfs -h
Signed-off-by: Evgeni Golov <evgeni@debian.org>
Serge Hallyn [Fri, 26 Aug 2016 07:11:06 +0000 (03:11 -0400)]
Merge pull request #127 from brauner/2016-08-21/bugfixes
2016 08 21/bugfixes
Serge Hallyn [Fri, 26 Aug 2016 07:06:52 +0000 (03:06 -0400)]
Merge pull request #133 from glensc/pld
add pld linux support
Elan Ruusamäe [Thu, 25 Aug 2016 21:18:46 +0000 (00:18 +0300)]
add pld linux support
Signed-off-by: Elan Ruusamäe <glen@delfi.ee>
Christian Brauner [Mon, 22 Aug 2016 10:20:10 +0000 (12:20 +0200)]
bindings: more consistent fs behavior
- e.g. let cg_mkdir() return EPERM
Signed-off-by: Christian Brauner <cbrauner@suse.de>
Christian Brauner [Mon, 22 Aug 2016 10:00:25 +0000 (12:00 +0200)]
bindings: set errno in pick_controller_from_path()
This will allow us to provide better standard fs behavior.
Signed-off-by: Christian Brauner <cbrauner@suse.de>
Christian Brauner [Mon, 22 Aug 2016 09:56:46 +0000 (11:56 +0200)]
bindings: non functional changes
- whitespace fixes for pick_controller_from_path()
Signed-off-by: Christian Brauner <cbrauner@suse.de>
Christian Brauner [Mon, 22 Aug 2016 09:36:02 +0000 (11:36 +0200)]
lxcfs: better fs behavior on /var/lib/lxcfs
return -EPERM for mkdir(), rmdir(), chown(), chmod() on top directory
/var/lib/lxcfs.
Signed-off-by: Christian Brauner <cbrauner@suse.de>
Christian Brauner [Sun, 21 Aug 2016 11:53:27 +0000 (13:53 +0200)]
lxcfs, bindings: show "." and ".." dir entries
Signed-off-by: Christian Brauner <cbrauner@suse.de>
Christian Brauner [Sat, 20 Aug 2016 22:11:13 +0000 (00:11 +0200)]
bindings: allow access to /var/lib/lxcfs/proc
Signed-off-by: Christian Brauner <cbrauner@suse.de>
Christian Brauner [Sat, 20 Aug 2016 22:02:32 +0000 (00:02 +0200)]
bindings: enable access to /var/lib/lxcfs/cgroup
Signed-off-by: Christian Brauner <cbrauner@suse.de>
Christian Brauner [Sat, 20 Aug 2016 22:22:38 +0000 (00:22 +0200)]
bindings: grant access to /var/lib/lxcfs
Signed-off-by: Christian Brauner <cbrauner@suse.de>
Serge Hallyn [Thu, 25 Aug 2016 12:17:31 +0000 (08:17 -0400)]
Merge pull request #129 from brauner/2016-08-22/fix_cgfs_remove
bindings: use openat fd for fstatat(), unlinkat()
Christian Brauner [Mon, 22 Aug 2016 15:48:12 +0000 (17:48 +0200)]
bindings: close open fds on error
Signed-off-by: Christian Brauner <cbrauner@suse.de>
Christian Brauner [Mon, 22 Aug 2016 00:47:27 +0000 (02:47 +0200)]
bindings: use openat fd for fstatat(), unlinkat()
Signed-off-by: Christian Brauner <cbrauner@suse.de>
Serge Hallyn [Wed, 24 Aug 2016 18:40:58 +0000 (13:40 -0500)]
Merge pull request #132 from brauner/2016-08-24/better_debugging
bindings: improve debugging
Christian Brauner [Wed, 24 Aug 2016 13:43:49 +0000 (15:43 +0200)]
bindings: improve debugging
- replace multiple DEBUG ifdefines with a single ifdefine at the top
- ifdefine lxcfs_debug() macro function that expands to nothing when -DDEBUG is
not given
Signed-off-by: Christian Brauner <cbrauner@suse.de>
Serge Hallyn [Mon, 22 Aug 2016 14:04:54 +0000 (09:04 -0500)]
Merge pull request #130 from hallyn/2016-08-21/fixrace
2016 08 21/fixrace
Serge Hallyn [Sun, 21 Aug 2016 20:05:31 +0000 (15:05 -0500)]
meminfo: don't show negative swapfree
Also commonize some of the mem{,sw} free/used calculations.
Closes #115
Serge Hallyn [Sun, 21 Aug 2016 18:26:42 +0000 (13:26 -0500)]
pam: fix race in cgroup creation
If we find that a cgroup already exists, we should
1. remove all the cgroups which we've created so far
2. set existed to true
3. return failure
The caller should then detect that existed == true,
and re-try with the next index.
Signed-off-by: Serge Hallyn <serge@hallyn.com>
Serge Hallyn [Thu, 18 Aug 2016 05:34:38 +0000 (00:34 -0500)]
Merge pull request #126 from hallyn/2016-08-18/meminfo.more
Virtualize more of the meminfo fields
Serge Hallyn [Thu, 18 Aug 2016 05:03:51 +0000 (00:03 -0500)]
Virtualize more of the meminfo fields
The worst remaining offending line appears to be VmallocTotal.
Suggestions for how to calculate that would be appreciated.
Closes #119
Signed-off-by: Serge Hallyn <serge@hallyn.com>
Stéphane Graber [Tue, 16 Aug 2016 16:36:01 +0000 (12:36 -0400)]
Fix test_reload for lxcfs chroot
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Serge Hallyn [Wed, 10 Aug 2016 14:47:38 +0000 (09:47 -0500)]
Merge pull request #124 from brauner/2016-07-27/move_lxcfs_to_minimal_chroot
move lxcfs to minimal chroot
Christian Brauner [Mon, 8 Aug 2016 17:00:13 +0000 (19:00 +0200)]
bindings: avoid using additional process
Instead of clone(..., CLONE_NEWNS | CLONE_FILES, ...) simply use
unshare(CLONE_NEWNS) and setns().
Signed-off-by: Christian Brauner <cbrauner@suse.de>
Christian Brauner [Sun, 7 Aug 2016 20:04:41 +0000 (22:04 +0200)]
bindings: use strchr(), strrchr()
index(), rindex() are deprecated.
Signed-off-by: Christian Brauner <cbrauner@suse.de>
Christian Brauner [Sat, 6 Aug 2016 13:28:44 +0000 (15:28 +0200)]
lxcfs, bindings: set fd_hierarchies in constructor
We need to initialize fd_hierarchies in the __constructor__ to guarantee a
consistent view across users of the shared library. Note well that hierarchies
and fd_hierarchies are considered read-only after the __constructor__ has run.
Signed-off-by: Christian Brauner <cbrauner@suse.de>
Christian Brauner [Sat, 6 Aug 2016 09:19:02 +0000 (11:19 +0200)]
bindings: document new code
Signed-off-by: Christian Brauner <cbrauner@suse.de>
Christian Brauner [Sat, 6 Aug 2016 09:09:17 +0000 (11:09 +0200)]
lxcfs: document new code
Signed-off-by: Christian Brauner <cbrauner@suse.de>
Christian Brauner [Sat, 6 Aug 2016 00:00:01 +0000 (02:00 +0200)]
lxcfs, bindings: cleanup and fix exit logic
- close open file descriptors referring to cgroup hierarchies mounted in private
lxcfs mount namespace
- fix exit logic in main()
Signed-off-by: Christian Brauner <cbrauner@suse.de>
Christian Brauner [Fri, 5 Aug 2016 23:47:23 +0000 (01:47 +0200)]
bindings: open_pids_file()
Enable open_pids_file() to be used with *at() family of functions.
Signed-off-by: Christian Brauner <cbrauner@suse.de>
Christian Brauner [Fri, 5 Aug 2016 23:40:41 +0000 (01:40 +0200)]
bindings: is_dir(), chown_tasks_files(), cgfs_chown_file()
Enable is_dir(), chown_tasks_files(), cgfs_chown_file() to be used with *at()
family of functions.
Signed-off-by: Christian Brauner <cbrauner@suse.de>
Christian Brauner [Fri, 5 Aug 2016 23:34:21 +0000 (01:34 +0200)]
bindings: cgfs_chmod_file()
Enable cgfs_chmod_file() to be used with *at() family of functions.
Signed-off-by: Christian Brauner <cbrauner@suse.de>
Christian Brauner [Fri, 5 Aug 2016 23:19:16 +0000 (01:19 +0200)]
bindings: cgfs_remove(), recursive_rmdir()
Enable cgfs_remove(), recursive_rmdir() to be used with *at() family of
functions.
Signed-off-by: Christian Brauner <cbrauner@suse.de>
Christian Brauner [Fri, 5 Aug 2016 23:09:04 +0000 (01:09 +0200)]
bindings: chown_all_cgroup_files(), cgfs_create()
Enable chown_all_cgroup_files(), cgfs_create() to be used with *at() family of
functions.
Signed-off-by: Christian Brauner <cbrauner@suse.de>
Christian Brauner [Fri, 5 Aug 2016 22:58:33 +0000 (00:58 +0200)]
bindings: cgfs_set_value(), write_string()
Enable cgfs_set_value(), write_string() to be used with *at() family of
functions.
Signed-off-by: Christian Brauner <cbrauner@suse.de>
Christian Brauner [Fri, 5 Aug 2016 22:46:25 +0000 (00:46 +0200)]
bindings: caller_may_see_dir()
Signed-off-by: Christian Brauner <cbrauner@suse.de>
Christian Brauner [Fri, 5 Aug 2016 22:45:07 +0000 (00:45 +0200)]
bindings: adapt caller_is_in_ancestor()
Signed-off-by: Christian Brauner <cbrauner@suse.de>
Christian Brauner [Fri, 5 Aug 2016 22:34:51 +0000 (00:34 +0200)]
bindings: is_child_cgroup()
Enable is_child_cgroup() to be used with *at() family of functions.
Signed-off-by: Christian Brauner <cbrauner@suse.de>
Christian Brauner [Fri, 5 Aug 2016 22:27:53 +0000 (00:27 +0200)]
bindings: cgfs_get_value(), slurp_file()
Enable cgfs_get_value() and slurp_file() to be used with *at() family of
functions.
Signed-off-by: Christian Brauner <cbrauner@suse.de>
Christian Brauner [Fri, 5 Aug 2016 17:58:18 +0000 (19:58 +0200)]
bindings: cgfs_iterate_cgroup(), cgfs_get_key()
Enable cgfs_iterate_cgroup(), cgfs_get_key() to be used with *at() family of
functions.
Signed-off-by: Christian Brauner <cbrauner@suse.de>
Christian Brauner [Fri, 5 Aug 2016 17:45:46 +0000 (19:45 +0200)]
bindings: return opened fd for controller
find_mounted_controller() now stores the corresponding open file descriptor for
the mount of the controller in the private lxcfs mount namespace in @cfd.
Signed-off-by: Christian Brauner <cbrauner@suse.de>
Christian Brauner [Fri, 5 Aug 2016 12:17:15 +0000 (14:17 +0200)]
lxcfs, bindings: share cgroup info + add clone()
- So far lxcfs.c and bindings.{c,h} did not share cgroup information and we
unnecessarily kept parsing and storing additional information. Let's share it
instead.
- Add lxcfs_clone() function.
- Mount cgroups in a private mount namespace. We use CLONE_FILES so that file
descriptors opened via lxcfs_clone() are not copied and hence are valid in
child and parent.
- For each mounted hierarchy, open a file descriptor and store it in an mmap()ed
array that is MAP_SHARED between parent and child.
Signed-off-by: Christian Brauner <cbrauner@suse.de>
Christian Brauner [Wed, 27 Jul 2016 21:43:31 +0000 (23:43 +0200)]
lxcfs: add infrastructure to create minimal chroot
Signed-off-by: Christian Brauner <cbrauner@suse.de>
Christian Brauner [Wed, 27 Jul 2016 21:32:31 +0000 (23:32 +0200)]
lxcfs: order includes
Signed-off-by: Christian Brauner <cbrauner@suse.de>
Christian Brauner [Wed, 27 Jul 2016 21:24:50 +0000 (23:24 +0200)]
lxcfs, bindings: small improvements
- capitalize BASEDIR
- add missing newline to debug output
Signed-off-by: Christian Brauner <cbrauner@suse.de>
Serge Hallyn [Sat, 9 Jul 2016 14:07:32 +0000 (09:07 -0500)]
Merge pull request #121 from brauner/skip_cgroupv2
skip empty entries under /proc/self/cgroup
Christian Brauner [Sat, 9 Jul 2016 11:19:06 +0000 (13:19 +0200)]
skip empty entries under /proc/self/cgroup
If cgroupv2 is enabled either alone or together with legacy hierarchies
/proc/self/cgroup can contain entries of the form:
0::/
This will cause lxcfs to fail the cgroup mounts because it parses out the empty
string "" and later on passes it to mount(). Let's skip such entries.
Signed-off-by: Christian Brauner <cbrauner@suse.de>
Serge Hallyn [Fri, 17 Jun 2016 07:27:45 +0000 (02:27 -0500)]
under_systemd_user_slice: work right when init is in '/'
Signed-off-by: Serge Hallyn <serge@hallyn.com>
Serge Hallyn [Sun, 12 Jun 2016 02:39:48 +0000 (21:39 -0500)]
libpam_cgfs: don't create new path if we are under /user.slice/user-$uid.slice
(relative to our init's path)
Closes #117
Signed-off-by: Serge Hallyn <serge@hallyn.com>
Serge Hallyn [Sat, 28 May 2016 05:27:27 +0000 (00:27 -0500)]
Don't build pam/ when --with-pamdir=none
Closes #110
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Serge Hallyn [Mon, 25 Apr 2016 14:36:15 +0000 (09:36 -0500)]
Merge pull request #109 from brauner/bugfixes
bugfixes
Christian Brauner [Mon, 25 Apr 2016 11:42:45 +0000 (13:42 +0200)]
bugfixes
- Fix do_mount_cgroups(): It previously returned ret uninitialized on failure.
- Quite a few snprintf() call used size_t variables but then checked whether
size_t < 0. Since size_t is unsigned these checks were always true. Let's use
ssize_t instead which is signed.
- Use additional ssize_t variable to catch snprintf() error for swap
calculation and add the value to the final result afterwards instead of
directly.
Signed-off-by: Christian Brauner <christian.brauner@mailbox.org>
Serge Hallyn [Wed, 20 Apr 2016 16:25:47 +0000 (11:25 -0500)]
fix cg_access() for controller directories
The previous patch actually didn't handle those, but only
/cgroup itself.
Closes #107
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Serge Hallyn [Tue, 19 Apr 2016 18:30:29 +0000 (13:30 -0500)]
access: allow rx to controller directories themselves
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Serge Hallyn [Sat, 2 Apr 2016 05:34:57 +0000 (00:34 -0500)]
diskstats: revert to only showing devices we've used
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Serge Hallyn [Sat, 2 Apr 2016 05:19:53 +0000 (00:19 -0500)]
diskstats: use recursive values, and some cleanup
Iuse the recursive cgroup values since we certainly want values
for child cgroups included. Also simplify the code just a bit.
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Serge Hallyn [Sat, 2 Apr 2016 03:52:07 +0000 (22:52 -0500)]
s390: print the virtualized #cpus in cpuinfo_read
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Serge Hallyn [Sat, 2 Apr 2016 00:50:11 +0000 (19:50 -0500)]
fix proc_cpuinfo_read for s390x
cpuinfo is different on s390x. On amd64 there is a set of lines
per processor, begging with 'processor : n'. On s390x, the first
line identifies the vendor, then there are general lines which apply
to all containers, finally the processors show up one per line.
So handle these differently.
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Serge Hallyn [Thu, 31 Mar 2016 18:09:32 +0000 (13:09 -0500)]
tag final 2.0.0 release
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Serge Hallyn [Tue, 29 Mar 2016 18:44:02 +0000 (13:44 -0500)]
configure.ac: release 2.0.0.rc9
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Serge Hallyn [Tue, 29 Mar 2016 18:35:01 +0000 (13:35 -0500)]
fuse file info release: guard against multiple calls
While fuse clearly calls the release info helpers under pthread
lock, it's not as clear that it may not be called more than once.
Null everything after we free it.
The hope is that this will fix the occasional mysterious crashes
on very heavily used (50 containers nonstop) servers.
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Serge Hallyn [Tue, 22 Mar 2016 07:51:42 +0000 (00:51 -0700)]
Merge pull request #104 from stgraber/master
hook: Fix typo in previous fix
Stéphane Graber [Tue, 22 Mar 2016 07:46:59 +0000 (03:46 -0400)]
hook: Fix typo in previous fix
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Serge Hallyn [Tue, 22 Mar 2016 07:34:27 +0000 (00:34 -0700)]
Merge pull request #103 from stgraber/master
hook: Don't fail when root mountpoint is a symlink
Stéphane Graber [Tue, 22 Mar 2016 07:24:17 +0000 (03:24 -0400)]
hook: Don't fail when root mountpoint is a symlink
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Serge Hallyn [Tue, 22 Mar 2016 04:06:33 +0000 (21:06 -0700)]
proc_access: return EACESS not EPERM
(per the manpage)
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Serge Hallyn [Tue, 22 Mar 2016 04:00:42 +0000 (21:00 -0700)]
release 2.0.0.rc8
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Serge Hallyn [Tue, 22 Mar 2016 04:00:01 +0000 (21:00 -0700)]
Merge pull request #102 from hallyn/2016-03-21/access
implement access(2)
Serge Hallyn [Tue, 22 Mar 2016 03:50:58 +0000 (20:50 -0700)]
remove obsolete comments
i *think* the 'should never get here' was a side effect of using cgmanager
which is no longer valid.
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Serge Hallyn [Tue, 22 Mar 2016 00:42:04 +0000 (17:42 -0700)]
implement access(2)
This is needed by lxc's cgfsng driver.
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Serge Hallyn [Mon, 21 Mar 2016 17:55:24 +0000 (10:55 -0700)]
release 2.0.0.rc7
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Serge Hallyn [Mon, 21 Mar 2016 17:46:54 +0000 (10:46 -0700)]
use a better word in signal() failure error message
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Stéphane Graber [Mon, 21 Mar 2016 16:04:45 +0000 (12:04 -0400)]
Merge pull request #100 from hallyn/2016-03-20/starton
upstart: change how we decide to not run in a container
Serge Hallyn [Mon, 21 Mar 2016 07:56:03 +0000 (00:56 -0700)]
Merge pull request #101 from hallyn/2016-03-20/misc
Address feedback from Markus Elfring
Serge Hallyn [Mon, 21 Mar 2016 07:25:16 +0000 (00:25 -0700)]
lxcfs reload: only call async-safe functions
So don't call fprintf, don't take a lock we don't need, just set
an atomic volatile int to 1 when called.
Closes #94
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Serge Hallyn [Mon, 21 Mar 2016 07:03:04 +0000 (00:03 -0700)]
configure.ac: drop second call to AM_INIT_AUTOMAKE
Closes #95
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Serge Hallyn [Mon, 21 Mar 2016 06:49:21 +0000 (23:49 -0700)]
handle error in signal(2)
Closes #96
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Serge Hallyn [Mon, 21 Mar 2016 04:08:47 +0000 (21:08 -0700)]
upstart: change how we decide to not run in a container
Otherwise lxcfs keeps lxc from hitting state 'started', which
in turn blocks reboot/shutdown.
Closes #92
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Serge Hallyn [Sun, 20 Mar 2016 16:48:44 +0000 (09:48 -0700)]
Merge pull request #99 from stgraber/master
hook: don't use mountpoint
Stéphane Graber [Sun, 20 Mar 2016 15:00:55 +0000 (11:00 -0400)]
hook: don't use mountpoint
It's not very reliable (had it fail on one of my servers) and since
we're already iterating through a list of mountpoints, it's also
completely unneeded.
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Serge Hallyn [Sun, 20 Mar 2016 01:43:35 +0000 (18:43 -0700)]
Merge pull request #98 from stgraber/master
Fix lxcfs mount handling with newer lxc