[PATCH 4 of 5] Log access to windows stores
Wald Commits
scm-commit at wald.intevation.org
Fri Jun 20 12:53:24 CEST 2014
# HG changeset patch
# User Andre Heinecke <andre.heinecke at intevation.de>
# Date 1403259467 -7200
# Node ID 736e95c63b861acbf2c9f0efa8a656a71dcc0679
# Parent 5042ace08cbabba747fc6c35fcb3c8891ac8fdb7
Log access to windows stores
diff -r 5042ace08cba -r 736e95c63b86 cinst/windowsstore.c
--- a/cinst/windowsstore.c Fri Jun 20 12:17:32 2014 +0200
+++ b/cinst/windowsstore.c Fri Jun 20 12:17:47 2014 +0200
@@ -58,6 +58,7 @@
{
PCCERT_CONTEXT pCert = NULL;
unsigned int i = 0;
+ bool elevated = is_elevated();
if (!to_remove)
{
@@ -108,6 +109,8 @@
free (error);
continue;
}
+ log_certificate (elevated ? "Local Machine" : "Current User",
+ to_remove[i], false);
}
return;
}
@@ -117,6 +120,7 @@
{
int i = 0,
ret = -1;
+ bool elevated = is_elevated();
if (!to_install)
{
@@ -164,6 +168,8 @@
free (error);
}
}
+ log_certificate (elevated ? "Local Machine" : "Current User",
+ to_install[i], true);
}
return;
}
More information about the Trustbridge-commits
mailing list