shell: Get address of Docker machine from the right place

Fixes #1217
Closes #1268
Reviewed-by: Stef Walter <stefw@redhat.com>
daemon: Always set mount point and options of block

So that removal of configuration items is correctly reflected.

Fixes #1158
Closes #1269
Reviewed-by: Stef Walter <stefw@redhat.com>
shell: Clear storage dialogs on enter

Fixes #1218
Closes #1271
Reviewed-by: Stef Walter <stefw@redhat.com>
shell: Relax /proc/meminfo regexp.

Fixes #1242
Closes #1275
Reviewed-by: Stef Walter <stefw@redhat.com>
polkit: Tweak policy to work for Cockpit

By installing our own rules while testing.

Signed-off-by: Stef Walter <stefw@redhat.com>
 - These are for our tests, we won't install these on systems
daemon: Run usermod via pkexec

So that admins can change roles and password hashes of user accounts.

Reviewed-by: Stef Walter <stefw@redhat.com>
daemon: Perform systemd actions via pkexec and systemctl

Instead of via D-Bus methods.  This enables admins to start/stop/etc
services.

Reviewed-by: Stef Walter <stefw@redhat.com>
test: Run more tests as "admin"

Fixes #1203
Fixes #1204
Fixes #1206
Closes #1238
Signed-off-by: Stef Walter <stefw@redhat.com>
 - Removed rules.d from main Cockpit package
shell: Make the choice to store into fstab explicit.

Previously, a empty mount point field would implicitly mean what is
now explicitly called "Default".

Fixes #1223
Closes #1270
Reviewed-by: Stef Walter <stefw@redhat.com>
shell: Fix links to "Other Devices" on storage pages

Closes #1273
Reviewed-by: Stef Walter <stefw@redhat.com>
daemon: Only show user roles that actually exist

Reviewed-by: Stef Walter <stefw@redhat.com>
daemon: Add "docker" user role

Fixes #1207
Reviewed-by: Stef Walter <stefw@redhat.com>
daemon: Update roles when /etc/group changes

Reviewed-by: Stef Walter <stefw@redhat.com>
test: Check dynamic updates of role groups

Closes #1235
Reviewed-by: Stef Walter <stefw@redhat.com>
shell: Display consistent and more useful hostnames

This is achieved by introducing a new
cockpit.util.hostname_for_display function and using it everywhere.

Also, the transient hostname is no longer used anywhere.  We either
use the static hostname or the name/address that the user has
specified when connecting to a machine.

Fixes #1180
Fixes #1189
Reviewed-by: Stef Walter <stefw@redhat.com>
daemon: Revert HACK re transient hostname.

We don't need the value of gethostname in the UI anymore so let's just
be a straight proxy for o.f.hostname1.

Also, https://bugs.freedesktop.org/show_bug.cgi?id=83930 is fixed and
we will get change notifications for the Hostname property.

Reviewed-by: Stef Walter <stefw@redhat.com>
daemon: Don't ever set the transient hostname

This is not our business.

Closes #1278
Reviewed-by: Stef Walter <stefw@redhat.com>
ws, static: Report "Permission denied" when pam_acct_mgmt fails.

Fixes #915
Closes #1256
Reviewed-by: Stef Walter <stefw@redhat.com>
shell: Explicitly offer "empty" filesystem type

Closes #1276
Reviewed-by: Stef Walter <stefw@redhat.com>
shell: Don't do a delayed coldplug after the page has been left

Fixes #1191
Closes #1284
Reviewed-by: Stef Walter <stefw@redhat.com>