From 87b934960ab514dec4b96ed4ef23c40bc61d3ceb Mon Sep 17 00:00:00 2001 From: David Herrmann Date: Sun, 11 Jan 2015 17:23:24 +0100 Subject: 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). --- src/bus-proxyd/bus-xml-policy.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/bus-proxyd/bus-xml-policy.h') 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; -- cgit v1.2.3-54-g00ecf