update gitignore: add some entries and sort

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
add basic cgroxy code

Pull common code out into access_checks.c and fs.c (which are not
well split up at the moment).

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
fix return value of proxy_get_pid_cgroup

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

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
switch to passing fds

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
split get_pid_cgroup into scm and nonscm versions

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

However, chown without sending an scm is not supported - you have to be
root in your namespace to do it anyway.  Still, the split-up functions
are easier to read.

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
re-add chown without scm

that way we can support all operations without scm creds.

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

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
fix up scm-based client progs

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

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

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

You cannot send an fd over dbus before authentication, but
authentication doesn't happen until you send a message.
So define a dummy 'ping' method which the standalone scm
programs can use to force authentication to happen, and
make movepid.c use it.

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
chowncgroup and getpidcgroup: update to use dummy ping fn

And remove now-useless setting of SO_PEERCREED on the dbus socket
fd.

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
unref the dummy message we sent

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
test10: cant use movepid.c unprivileged, use dbus-send

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
update proxy stubs to reflect new api

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