]> git.proxmox.com Git - mirror_lxcfs.git/log
mirror_lxcfs.git
9 years agofix some error codes
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>
9 years agodon't try to build lxcfs.1 if help2man is not available
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>
9 years agoremove stmt in lxcfs.c
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>
9 years agoHide cgroups not under caller's own cgroup
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>
9 years agoimplement chmod
Serge Hallyn [Tue, 16 Dec 2014 01:17:12 +0000 (19:17 -0600)]
implement chmod

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
9 years agoremove some debug output
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>
9 years agoimplement rmdir
Serge Hallyn [Mon, 15 Dec 2014 23:51:17 +0000 (17:51 -0600)]
implement rmdir

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
9 years agoImplement chown
Serge Hallyn [Mon, 15 Dec 2014 23:23:55 +0000 (17:23 -0600)]
Implement chown

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
9 years agoimplement write
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>
9 years agoImplement mkdir
Serge Hallyn [Mon, 15 Dec 2014 02:21:03 +0000 (20:21 -0600)]
Implement mkdir

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
9 years agoAdd support for file read
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>
9 years agogetattr: fill in ownership of cgroup dirs.
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>
9 years agoMerge pull request #1 from hallyn/serge.2
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

9 years agoAdd base lxcfs.c
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>
9 years agoadd autoconf boilerplate and cgmanager fns
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>
9 years agoInitial commit
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>