github.com/keybase/client/go@v0.0.0-20241007131713-f10651d043c8/kbfs/dokan/winacl/dummy.go (about) 1 // Copyright 2016 Keybase Inc. All rights reserved. 2 // Use of this source code is governed by a BSD 3 // license that can be found in the LICENSE file. 4 5 //go:build !windows 6 // +build !windows 7 8 package winacl 9 10 import ( 11 "errors" 12 ) 13 14 // SID is defined as syscall.SID on Windows. 15 type SID syscallSID 16 17 type syscallSID struct{} 18 19 var errNotWin = errors.New("winacl does not work outside Windows") 20 21 func currentProcessUserSid() (*SID, error) { return nil, errNotWin } 22 func currentProcessPrimaryGroupSid() (*SID, error) { return nil, errNotWin }