Philip Withnall 2f91caf77e tests: Add a basic test for require-same-user D-Bus auth flag
It’s not feasible to test that the require-same-user flag can cause
authentication to fail, as that would require the build environment to
have two users available. We can, however, test that it passes when
authenticating a client and server running under the same user account.

I have manually tested that the new flag works, by running the following
as user A:
```
`$prefix/gdbus-daemon --print-env &`
gdbus call --session --dest org.freedesktop.DBus --object-path /org/freedesktop/DBus --method org.freedesktop.DBus.ListNames
```

And then running the `gdbus call` command again as user B (with the same
value for `DBUS_SESSION_BUS_ADDRESS` in the environment), which
produces:
```
Error connecting: Unexpected lack of content trying to read a line
```
(an authentication rejection)

Commenting out the use of
`G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER` from
`gdbusdaemon.c`, the `gdbus call` command succeeds for both users.

Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
2021-02-11 16:12:40 +00:00
..
2019-01-15 15:11:43 +00:00
2021-01-25 15:00:12 +01:00
2019-12-18 16:51:11 +00:00
2013-07-11 13:49:20 -04:00
2014-09-09 14:11:38 -04:00
2014-01-01 22:01:15 -05:00
2020-11-17 15:50:07 +00:00
2016-04-26 15:20:16 +02:00
2017-05-29 19:53:34 +02:00
2017-05-29 19:53:34 +02:00
2021-01-25 15:00:12 +01:00
2020-11-17 15:50:07 +00:00
2020-09-30 19:39:30 +01:00
2018-09-12 15:42:11 +00:00
2020-11-17 15:50:07 +00:00
2020-11-17 15:50:07 +00:00
2019-01-10 13:50:26 -05:00
2012-12-12 15:20:22 +01:00