Commit Graph
246 Commits
Author SHA1 Message Date
Paul "TBBle" Hampson cb5cf8987b Replace archive/tar fork with use of archive/tar
Since Go 1.6, archive/tar has gained public support for custom PAX
Records, so there's no need to maintain a fork of this library anymore.

We do end up with a fork of the PAX timestamp parsing/formatting
functions, but they are much less likely to change.

Signed-off-by: Paul "TBBle" Hampson <Paul.Hampson@Pobox.com>
2020-07-17 00:45:58 +10:00
Justin 3fe6c52628 Merge pull request #168 from maxifom/duration_inconsistency
Duration order consistency when multiplying number by time unit
2020-01-13 09:10:25 -08:00
Maxim Fominykh 06bcafdc24 Duration order consistency when multiplying number by time unit 2020-01-11 05:26:35 +05:00
Justin 1f03480c53 Merge pull request #166 from paruizfi/master
Expose pipe  access level to caller
2019-12-19 07:30:15 -08:00
Pablo Ruiz Fischer Bennetts 3886dbb163 Expanded dial to allow to provide access level
Enable anonymous access

Remove non-context overload

Remove error being rethrown
2019-12-04 10:15:56 -08:00
Kevin Parsons fc70bd9a86 Merge pull request #160 from kevpar/pkg-process
Add new process package
2019-09-18 19:51:22 -07:00
Kevin Parsons f272bf30b3 Add new process package
Signed-off-by: Kevin Parsons <kevpar@microsoft.com>
2019-09-18 18:03:14 -07:00
Justin 6c72808b55 Merge pull request #157 from jterry75/fix_detachvhd
Fix regression in DetachVhd
2019-08-06 12:59:04 -07:00
Justin Terry (VM) 5adf6781fa Fix regression in DetachVhd
When opening a disk it for deatch using 'Version == 2' parameters it is
required that the'accessMask == VirtualDiskAccessNone'. Also updates the
virtual disk 'flag' parameter to match the set specified by the product when
activating the layer.

Signed-off-by: Justin Terry (VM) <juterry@microsoft.com>
2019-08-06 11:28:36 -07:00
Justin a969fb018b Merge pull request #153 from microsoft/guid
guid package improvements
2019-07-19 05:48:51 -07:00
Kevin Parsons c20fb68775 etw: Add test for provider name to GUID conversion
Also simplified the name to GUID conversion code, and improved the
comments.

Signed-off-by: Kevin Parsons <kevpar@microsoft.com>
2019-07-10 15:12:20 -07:00
Kevin Parsons 177d2ec7ea guid: Add V5 GUID support
Signed-off-by: Kevin Parsons <kevpar@microsoft.com>
2019-07-10 15:08:22 -07:00
Kevin Parsons c5294c98c0 guid: Improve version and variant handling
Signed-off-by: Kevin Parsons <kevpar@microsoft.com>
2019-07-10 15:03:44 -07:00
Justin 881e3d4642 Merge pull request #152 from ehotinger/ehotinger/fs
Updates the error message in GetFileSystemType
2019-07-02 11:31:43 -07:00
Eric Hotinger 28396ed851 Updates the error message in GetFileSystemType to match the function's
casing and exports the error.

Signed-off-by: Eric Hotinger <ehotinger@gmail.com>
2019-07-01 14:25:30 -07:00
Justin 7cdfd71a95 Merge pull request #146 from microsoft/fix-makeopenfile
Fix interface-wrapped nil returned by MakeOpenFile
2019-06-28 11:17:19 -07:00
Justin 69f028c26d Merge pull request #150 from ehotinger/ehotinger/fs
Adds a file system helper file for determining the file system type.
2019-06-25 13:50:08 -07:00
Eric Hotinger 9fe4f5c769 Adds a file system helper file for determining the file system type.
Signed-off-by: Eric Hotinger <ehotinger@gmail.com>
2019-06-25 13:42:09 -07:00
Justin d2ef9cfdac Merge pull request #149 from microsoft/etw-logrus-time
etwlogrus: Pass through entry time as ETW field
2019-06-25 10:40:15 -07:00
Kevin Parsons 09baa54393 etwlogrus: Pass through entry time as ETW field
Signed-off-by: Kevin Parsons <kevpar@microsoft.com>
2019-06-25 10:36:45 -07:00
Justin c2fe1c3f36 Merge pull request #148 from microsoft/etw-logrus-levels
Replace ETW Logrus hook levels with AllLevels
2019-06-25 10:35:04 -07:00
Kevin Parsons 2ae559ad19 Replace ETW Logrus hook levels with AllLevels
Signed-off-by: Kevin Parsons <kevpar@microsoft.com>
2019-06-25 10:32:12 -07:00
Kevin Parsons f208b3299c Fix interface-wrapped nil returned by MakeOpenFile
Signed-off-by: Kevin Parsons <kevpar@microsoft.com>
2019-05-31 17:09:52 -07:00
John Starks 12afdbf8b8 Merge pull request #86 from azdagron/file-handle-access
provide access to underlying file handle
2019-05-16 09:56:58 -07:00
Kevin Parsons 72445fa384 Merge pull request #145 from microsoft/guid
pkg/guid: Various improvements
2019-05-14 11:46:02 -07:00
Kevin Parsons 3dac69f6ea pkg/guid: Switch from json.Marshaler to encoding.TextMarshaler
Signed-off-by: Kevin Parsons <kevpar@microsoft.com>
2019-05-13 14:31:21 -07:00
Kevin Parsons b940a6f7ae pkg/guid: Improve error messages
Signed-off-by: Kevin Parsons <kevpar@microsoft.com>
2019-05-13 14:30:09 -07:00
Kevin Parsons 2dc6637e2c pkg/guid: Support big-endian and Windows encodings
Signed-off-by: Kevin Parsons <kevpar@microsoft.com>
2019-05-13 14:28:49 -07:00
Kevin Parsons 6dd84a2574 pkg/guid: Add helper functions to tests
Signed-off-by: Kevin Parsons <kevpar@microsoft.com>
2019-05-13 14:25:53 -07:00
Kevin Parsons 1197d54849 pkg/guid: Add variant and version support
Signed-off-by: Kevin Parsons <kevpar@microsoft.com>
2019-05-13 14:22:42 -07:00
Kevin Parsons 01fe22a8b8 Merge pull request #142 from microsoft/fix-guid
Fix errors introduced with guid-by-value change
2019-05-09 11:20:14 -07:00
Kevin Parsons a2a7cd6b7d Fix errors introduced with guid-by-value change
Signed-off-by: Kevin Parsons <kevpar@microsoft.com>
2019-05-08 16:43:22 -07:00
Kevin Parsons d918a0ad4e Merge pull request #141 from microsoft/guid-by-value
pkg/guid: Prefer passing GUID by value
2019-05-08 16:11:02 -07:00
Kevin Parsons 7185c03f75 pkg/guid: Prefer passing GUID by value
Signed-off-by: Kevin Parsons <kevpar@microsoft.com>
2019-05-08 15:52:52 -07:00
John Starks 2be8053e58 Merge pull request #138 from microsoft/etw-write-error
etwlogrus: Ignore error from ETW WriteEvent
2019-05-08 08:21:23 -07:00
John Starks 1bcf844dd4 Merge pull request #140 from microsoft/etwlogrus-tests
etwlogrus: Improve tests to actually go through logrus hook
2019-05-08 08:20:37 -07:00
John Starks b092048eb0 Merge pull request #139 from microsoft/fix-etw-logrus
etwlogrus: Fix event logging not including fields
2019-05-08 08:19:54 -07:00
Kevin Parsons afa8dc2e8d etwlogrus: Improve tests to actually go through logrus hook
Signed-off-by: Kevin Parsons <kevpar@microsoft.com>
2019-05-08 00:01:40 -07:00
Kevin Parsons ed00d9afc1 etwlogrus: Fix event logging not including fields
Signed-off-by: Kevin Parsons <kevpar@microsoft.com>
2019-05-07 23:51:39 -07:00
Kevin Parsons 2093f10e12 etwlogrus: Ignore error from ETW WriteEvent
Signed-off-by: Kevin Parsons <kevpar@microsoft.com>
2019-05-07 23:41:01 -07:00
Kevin Parsons fa965998be Merge pull request #136 from microsoft/modules
Transition to Go modules
2019-05-07 23:25:44 -07:00
Kevin Parsons f9e746f4e5 Transition to Go modules
Signed-off-by: Kevin Parsons <kevpar@microsoft.com>
2019-05-07 19:33:56 -07:00
John Starks e90d8317de Merge pull request #133 from jstarks/sort_keys
pkg/etwlogrus: Ensure stable event field order
2019-05-07 13:40:08 -07:00
John Starks 664840fcdb pkg/etwlogrus: Ensure stable event field order
This change updates the logrus hook to sort the incoming logrus data
before passing it to the tracelogging code. This is useful because it
ensures that two instances of the same event have the fields in the same
order, which is necessary to get WPA to line the fields up.
2019-05-07 19:27:13 +00:00
Justin f4260581c2 Merge pull request #132 from jstarks/etwtime
pkg/etw: Add support for time.Time
2019-05-07 10:25:08 -07:00
John Starks 89c1d0e19d pkg/etw: Add support for time.Time
This change adds support for encoding time.Time values as FILETIME
values in tracelogging events. FILETIME has slightly less precision than
time.Time (100ns vs 1ns), but it is the closest availble match.
2019-05-05 00:02:18 +00:00
Kevin Parsons 3fe4fa3166 Merge pull request #130 from kevpar/etw-386
Fix ETW package to work on 386
2019-04-22 14:05:07 -07:00
Kevin Parsons 0112307ab4 Fix ETW package to work on 386
The ETW registration handle is defined to be 64-bits on all platforms. The Go
type previously used a uintptr which created problems on 32-bit systems. This
change adds a new wrapper file which receives a 64-bit handle for the functions
defined in it, and correctly passes it to the native ETW functions either as-is
(on 64-bit) or as two 32-bit values (on 32-bit).

This required a minor change in mksyscall_windows.go, to allow multiple syscalls
that map to the same underlying function without causing a duplicate definition
error in the generated file.
2019-04-22 10:28:49 -07:00
Kevin Parsons 1af701744e Add stock mksyscall_windows.go to ETW package
This is just so we can see the alterations we make to this file as a diff in
the next commit.
2019-04-22 10:24:50 -07:00
John Starks d132a827c0 Merge pull request #128 from jstarks/hvsock
winio: Add AF_HYPERV listener
2019-04-22 09:32:45 -07:00