]>
git.proxmox.com Git - mirror_lxcfs.git/log
summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
Stéphane Graber [Fri, 9 Jan 2015 23:58:15 +0000 (18:58 -0500)]
Fix autotools
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Stéphane Graber [Fri, 9 Jan 2015 21:49:13 +0000 (16:49 -0500)]
test: Introduce a basic cgroup tree test
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Stéphane Graber [Fri, 9 Jan 2015 21:29:22 +0000 (16:29 -0500)]
test: Introduce a basic proc tree test
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Serge Hallyn [Thu, 8 Jan 2015 22:29:11 +0000 (16:29 -0600)]
update docs
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Serge Hallyn [Thu, 8 Jan 2015 22:01:28 +0000 (16:01 -0600)]
add lxcfs container hook and comment
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Serge Hallyn [Thu, 8 Jan 2015 15:59:54 +0000 (09:59 -0600)]
write: make sure to null terminate the buffer
We are passed a size, respect it.
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Stéphane Graber [Thu, 8 Jan 2015 15:45:39 +0000 (10:45 -0500)]
Add some more missing newlines
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Serge Hallyn [Wed, 7 Jan 2015 21:54:39 +0000 (15:54 -0600)]
fix up pid conversion algorithm
Mainly when the pid conversion task gets a ESRCH from sendmsg,
then it should send send the next message (with v='1' meaning
error) without first waiting for a ping from its peer, since
the peer already sent one and has gotten no response.
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Stéphane Graber [Sat, 27 Dec 2014 10:37:00 +0000 (11:37 +0100)]
Update README
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Stéphane Graber [Sat, 27 Dec 2014 10:27:27 +0000 (11:27 +0100)]
Add some more information to error messages
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Serge Hallyn [Sat, 27 Dec 2014 04:26:05 +0000 (22:26 -0600)]
convert pids at write to tasks and cgroup.procs files
we're not yet distinguishing between thread vs threadgroup moving.
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Serge Hallyn [Sat, 27 Dec 2014 03:09:14 +0000 (21:09 -0600)]
Merge branch 'readtasks.pass.creds.2' into m.2
Serge Hallyn [Fri, 26 Dec 2014 04:48:43 +0000 (22:48 -0600)]
read: translate pids into the reader's pidns
When reading a cgroupfs 'tasks' or 'cgroup.procs' file, we must translate
all pids from our namespace into the reader's.
TODO - convert writes
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Stéphane Graber [Thu, 25 Dec 2014 21:13:45 +0000 (22:13 +0100)]
Add missing line breaks
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Serge Hallyn [Fri, 19 Dec 2014 03:48:30 +0000 (21:48 -0600)]
implement read of /proc/uptime
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Serge Hallyn [Thu, 18 Dec 2014 04:39:08 +0000 (22:39 -0600)]
add comment describing how we'll do uptime
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Serge Hallyn [Thu, 18 Dec 2014 04:26:20 +0000 (22:26 -0600)]
implement read for meminfo
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Serge Hallyn [Wed, 17 Dec 2014 21:04:17 +0000 (15:04 -0600)]
implement read for /proc/stat
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Serge Hallyn [Wed, 17 Dec 2014 18:42:23 +0000 (12:42 -0600)]
move comment about caching open results
hoping to implement this soon
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Serge Hallyn [Wed, 17 Dec 2014 18:22:15 +0000 (12:22 -0600)]
implement cat of proc/cpuinfo
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Serge Hallyn [Wed, 17 Dec 2014 06:34:45 +0000 (00:34 -0600)]
add boilerplate for the /proc file readdir+reads.
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Serge Hallyn [Tue, 16 Dec 2014 20:30:33 +0000 (14:30 -0600)]
check for permission at opendir
So we don't surprise the caller at readdir
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Serge Hallyn [Tue, 16 Dec 2014 20:25:56 +0000 (14:25 -0600)]
fix some error codes
userspace is looking for EACCES not EPERM for common perm deny.
Also return einval for bad names, not eio.
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Serge Hallyn [Tue, 16 Dec 2014 19:58:19 +0000 (13:58 -0600)]
don't try to build lxcfs.1 if help2man is not available
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Serge Hallyn [Tue, 16 Dec 2014 19:26:34 +0000 (13:26 -0600)]
remove stmt in lxcfs.c
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Serge Hallyn [Tue, 16 Dec 2014 17:20:17 +0000 (11:20 -0600)]
Hide cgroups not under caller's own cgroup
For a directory, we show an empty directory. For any attempt to getattr
a file, we return -ENOENT.
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Serge Hallyn [Tue, 16 Dec 2014 01:17:12 +0000 (19:17 -0600)]
implement chmod
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Serge Hallyn [Mon, 15 Dec 2014 23:55:53 +0000 (17:55 -0600)]
remove some debug output
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Serge Hallyn [Mon, 15 Dec 2014 23:51:17 +0000 (17:51 -0600)]
implement rmdir
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Serge Hallyn [Mon, 15 Dec 2014 23:23:55 +0000 (17:23 -0600)]
Implement chown
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Serge Hallyn [Mon, 15 Dec 2014 18:45:27 +0000 (12:45 -0600)]
implement write
Also fix the permission checking function.
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Serge Hallyn [Mon, 15 Dec 2014 02:21:03 +0000 (20:21 -0600)]
Implement mkdir
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Serge Hallyn [Sat, 13 Dec 2014 04:27:20 +0000 (22:27 -0600)]
Add support for file read
To make 'cat /var/lib/lxcfs/cgroup/freezer/tasks' work, we also need for
getattr to actually give a file size. So, do that.
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Serge Hallyn [Fri, 12 Dec 2014 21:44:20 +0000 (15:44 -0600)]
getattr: fill in ownership of cgroup dirs.
Also check for privilege in uid namespaces over file uids.
And remove some extra debugging printfs.
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Stéphane Graber [Fri, 12 Dec 2014 19:37:37 +0000 (21:37 +0200)]
Merge pull request #1 from hallyn/serge.2
Implement basic getattr/readdir
Serge Hallyn [Fri, 12 Dec 2014 18:53:10 +0000 (12:53 -0600)]
Add base lxcfs.c
So far it just does getattr and readdir for /cgroup/*
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Serge Hallyn [Fri, 12 Dec 2014 18:47:20 +0000 (12:47 -0600)]
add autoconf boilerplate and cgmanager fns
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Stéphane Graber [Fri, 12 Dec 2014 12:44:09 +0000 (14:44 +0200)]
Initial commit
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>