Skip to content

Commit e36c08b

Browse files
authored
Create secure-input.md
1 parent 215d13a commit e36c08b

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

src/macOS/secure-input.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Check who holds SecureInput lock
2+
3+
Individual applications on macOS can request `SecureInput` mode, which disables some functionality that would otherwise allow to capture input.
4+
One can check if `SecureInput` is active and which process holds the lock:
5+
6+
```
7+
$ ioreg -l -w 0 | grep SecureInput
8+
| "IOConsoleUsers" = ({"kCGSSessionOnConsoleKey"=Yes,"kSCSecuritySessionID"=100024,"kCGSSessionSecureInputPID"=123,"kCGSSessionGroupIDKey"=20,
9+
"kCGSSessionIDKey"=257,"kCGSessionLoginDoneKey"=Yes,"kCGSSessionSystemSafeBoot"=No,"kCGSSessionUserNameKey"="user",
10+
"kCGSessionLongUserNameKey"="username","kCGSSessionAuditIDKey"=100001,"kCGSSessionLoginwindowSafeLogin"=No,"kCGSSessionUserIDKey"=101})
11+
```
12+
13+
The `kCGSSessionSecureInputPID` holds the PID of the process that holds the `SecureInput` lock.
14+
Find that process with `ps`:
15+
16+
```
17+
ps aux | grep $pid
18+
```

0 commit comments

Comments
 (0)