blah

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
mount cgroups

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
allow any uid to connect

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
split fs functions into fs.c

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
define cgmanager_get_value

Allow a requestor r to ask for value of a cgroup file.

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
handle 'cwd' paths, and fix cgroup reading

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
remove debugging info

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
add getMyCgroup method

To return the caller's absolute cgroup path.  This may not exist in the
final api, but it's useful now for testing.

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Don't get uid/gid of requester from /proc/pid/status

We already got them from the socket.

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
start to Create method

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
set use_hierarchy and clone_children

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
fix last two commits

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Fix bad checks for O_RDWR case in may_access

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
inform when initializing cgroups

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
some more tests...  these need to go to a test script

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
change nih_fatal to nih_warn in most cases

Also don't return error on mkdir of an existing cgroup.
(But don't chown to the caller)

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
change asserts to simple checks

we don't want the daemon to exit out due to bad client output,
just to not go on and choke on it.

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
add test script

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
may_access: allow root on host all perms

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
remove bogus test

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>