summaryrefslogtreecommitdiff
path: root/src/nm-audit-manager.h
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2016-01-07 11:55:44 +0100
committerLubomir Rintel <lkundrak@v3.sk>2016-01-10 23:14:29 +0100
commit7db95727d5936a0cfa347c6ea0937eee4ff87198 (patch)
treef3a696da9746409072d5c11ed9401a35edae2d43 /src/nm-audit-manager.h
parent06dfaeec0967ed9065ff04391658ed6f18f6e621 (diff)
downloadNetworkManager-7db95727d5936a0cfa347c6ea0937eee4ff87198.tar.gz
device: refactor reapply_connection()lr/reapply
Reapplying a connection should not be done by iterating over and (unsorted) @diffs array. Instead the order matters! E.g. first layer 2 before IP settings. Thus extracting those individual updates on a per-setting base to different reapply_*() functions is more complicated, albeit incorrect in complex cases. We need full control over how to reapply changes, one after the other. Also, once we start applying changes, we cannot really abort on error. We can only continue best-effort and hope for the best. Also, always reapply certain settings, even if the configuration doesn't change. That means, if the user externally deletes a static IP address, he can call reapply() to restore it. Even though he doesn't provide a different setting to apply. Also revert the changes to nm_device_reapply_settings_immediately(). Effectively there is little code that can be reused. Add audit logging.
Diffstat (limited to 'src/nm-audit-manager.h')
-rw-r--r--src/nm-audit-manager.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nm-audit-manager.h b/src/nm-audit-manager.h
index a3f7bc72f9..ed53be6921 100644
--- a/src/nm-audit-manager.h
+++ b/src/nm-audit-manager.h
@@ -61,6 +61,7 @@ typedef struct {
#define NM_AUDIT_OP_DEVICE_DISCONNECT "device-disconnect"
#define NM_AUDIT_OP_DEVICE_DELETE "device-delete"
#define NM_AUDIT_OP_DEVICE_MANAGED "device-managed"
+#define NM_AUDIT_OP_DEVICE_REAPPLY "device-reapply"
GType nm_audit_manager_get_type (void);
NMAuditManager *nm_audit_manager_get (void);