diff options
author | David Herrmann <dh.herrmann@gmail.com> | 2015-01-11 17:23:24 +0100 |
---|---|---|
committer | David Herrmann <dh.herrmann@gmail.com> | 2015-01-11 17:23:24 +0100 |
commit | 87b934960ab514dec4b96ed4ef23c40bc61d3ceb (patch) | |
tree | 2522feb2defcd2f40968fc87b2d5ccf388872db6 /src/bus-proxyd/bus-xml-policy.h | |
parent | b49c7806a395fd655edd19785f56874b28f5a24c (diff) |
bus-proxy: implement 'at_console'
The 'at_console' policy-category allows to apply policy-items to clients
depending on whether they're run from within a valid user-session or not.
We use sd_uid_get_seats() to check whether a user has a valid seat (which
excludes remote-sessions like ssh).
Diffstat (limited to 'src/bus-proxyd/bus-xml-policy.h')
-rw-r--r-- | src/bus-proxyd/bus-xml-policy.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bus-proxyd/bus-xml-policy.h b/src/bus-proxyd/bus-xml-policy.h index 639520fea6..125c84cd6e 100644 --- a/src/bus-proxyd/bus-xml-policy.h +++ b/src/bus-proxyd/bus-xml-policy.h @@ -69,6 +69,8 @@ struct PolicyItem { typedef struct Policy { LIST_HEAD(PolicyItem, default_items); LIST_HEAD(PolicyItem, mandatory_items); + LIST_HEAD(PolicyItem, on_console_items); + LIST_HEAD(PolicyItem, no_console_items); Hashmap *user_items; Hashmap *group_items; } Policy; |