From c3a225d4d735d3a01883125592dda7a030a64e00 Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Wed, 2 Nov 2016 15:59:37 +0100 Subject: NSS: Add sbus interface to clear memory cache MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adds three new NSS interface sbus methods to disable memory caches of users, groups and initgroups. It's enough to add this interface to the NSS responder because the NSS responder is the only writer to the memory cache. Reviewed-by: Pavel Březina --- src/responder/nss/nss_iface_generated.c | 39 +++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) (limited to 'src/responder/nss/nss_iface_generated.c') diff --git a/src/responder/nss/nss_iface_generated.c b/src/responder/nss/nss_iface_generated.c index 2d0031090..4c0708014 100644 --- a/src/responder/nss/nss_iface_generated.c +++ b/src/responder/nss/nss_iface_generated.c @@ -23,6 +23,24 @@ int iface_nss_memorycache_UpdateInitgroups_finish(struct sbus_request *req) DBUS_TYPE_INVALID); } +int iface_nss_memorycache_InvalidateAllUsers_finish(struct sbus_request *req) +{ + return sbus_request_return_and_finish(req, + DBUS_TYPE_INVALID); +} + +int iface_nss_memorycache_InvalidateAllGroups_finish(struct sbus_request *req) +{ + return sbus_request_return_and_finish(req, + DBUS_TYPE_INVALID); +} + +int iface_nss_memorycache_InvalidateAllInitgrRecords_finish(struct sbus_request *req) +{ + return sbus_request_return_and_finish(req, + DBUS_TYPE_INVALID); +} + /* methods for org.freedesktop.sssd.nss.MemoryCache */ const struct sbus_method_meta iface_nss_memorycache__methods[] = { { @@ -32,6 +50,27 @@ const struct sbus_method_meta iface_nss_memorycache__methods[] = { offsetof(struct iface_nss_memorycache, UpdateInitgroups), invoke_ssau_method, }, + { + "InvalidateAllUsers", /* name */ + NULL, /* no in_args */ + NULL, /* no out_args */ + offsetof(struct iface_nss_memorycache, InvalidateAllUsers), + NULL, /* no invoker */ + }, + { + "InvalidateAllGroups", /* name */ + NULL, /* no in_args */ + NULL, /* no out_args */ + offsetof(struct iface_nss_memorycache, InvalidateAllGroups), + NULL, /* no invoker */ + }, + { + "InvalidateAllInitgrRecords", /* name */ + NULL, /* no in_args */ + NULL, /* no out_args */ + offsetof(struct iface_nss_memorycache, InvalidateAllInitgrRecords), + NULL, /* no invoker */ + }, { NULL, } }; -- cgit