summaryrefslogtreecommitdiff
path: root/src/bus-proxyd/bus-xml-policy.h
diff options
context:
space:
mode:
authorDavid Herrmann <dh.herrmann@gmail.com>2015-01-11 17:23:24 +0100
committerDavid Herrmann <dh.herrmann@gmail.com>2015-01-11 17:23:24 +0100
commit87b934960ab514dec4b96ed4ef23c40bc61d3ceb (patch)
tree2522feb2defcd2f40968fc87b2d5ccf388872db6 /src/bus-proxyd/bus-xml-policy.h
parentb49c7806a395fd655edd19785f56874b28f5a24c (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.h2
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;