Remove stray com.redhat.Cockpit.conf file

Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
Remove unused .gitmodules file

Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
Remove old adwaita scss file

Closes #489
Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
Use cockpit_agent_strmatch() in tests for clarity

This helps us see what the contents of the string were when
CI tests fail due to races or similar.

Closes #487
Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
Update HACKING file to refer to --enable-debug and sep build dir

Using a separate build dir helps contributors be less confused
as to what is a file that can be edited and what will be
overwritten in the next build.

--enable-debug disables minify and so on.

Add a section about making changes and contributing.

Closes #488
Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
test-cgroupmonitor: Try to fix AddMatch() related critical in tests

Closes #504
Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
We don't and can't use fedora-deps.repo anymore

With our use of Travis CI and inclusion in Atomic that horse
has left the barn. We're also buildable on other distros.

The upshot of this is that we have to be more careful with our
dependencies. This is expected as we mature.

Closes #490
Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
Signed-off-by: Marius Vollmer <marius.vollmer@redhat.com>
Move all included code into lib/ directory

This makes it easier to track which code comes from other
repositories and projects, as well as update and/or clean up
that code when necessary.

Closes #491
Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
web: Don't automatically omit "dashboard" from URL.

This allows people to explicitly omit the dashboard ("All") from the
breadcrumb trail, such as when embedding Cockpit into a UI that
already takes care of multiple machines.

In addition, the "Account Settings" and "Search" widgets use the new
cockpit_go_server function to do their navigation.  That function
makes sure that the new breadcrumb only includes "All" when it was
there before.

Fixes #465
Reviewed-by: Stef Walter <stefw@redhat.com>
ws: Create CockpitCreds closer to pam_authenticate()

Create the PAM creds closer to pam_authenticate(), so we can use
the real user that PAM canonicalized, as well as return additional
information into the creds (later).

Remove the noop authorization check. We want to be respecting
system authorization, not inventing our own.
ws: Remove the cockpit_creds_take_password() function

It's not used, and not useful going forward.
ws: CockpitCreds with multi creds, remote host is a cred

As part of the build up to GSSAPI kerberos support we need to be
able to hold mulitple credentials in the aptly named CockpitCreds.

Move remote host credential to CockpitCreds. This is necessary
because we want to authenticate in cockpit-session and perform
that authentication from CockpitAuth
agent: Drop group privileges in cockpit-session

Correctly drop group privileges in cockpit session.

Fix #492
agent: Use err() and warn() in cockpit-session

Since cockpit-session is written without GLib, we can't use the
standard GLib logging, but we can use these stdlib functions for
handling printing our errors.
agent: Some minor cleanup in cockpit-session

Move global variables to top, and make some variables static rather
than global.
agent: Don't lookup the user twice in cockpit-session
agent: Return a proper error status if can't execute cockpit-agent

Fixes #498
agent: Set enviroment variables from PAM in cockpit-session

Don't let the cockpit-ws environment leak into cockpit-agent. Use
PAM to get the environment variable for the new process.

Fixes #497
common: Add 'problem' property to CockpitPipe

This can be used to retrieve the problem that the pipe closed
with, or NULL. But more importantly, it can be used to construct
a CockpitPipe for a failure.

Since CockpitPipe guarantees that it won't fire it's close
signals until the main loop, we follow that same guarantee
here with the "problem" property on construct.
ws: Allow CockpitCreds to be used as hash table key