Skip to content

Commit

Permalink
Version 3.7.3
Browse files Browse the repository at this point in the history
- Improved SIP Enabled status detection, now it doesn't no longer take in consideration the CSR_ALLOW_APPLE_INTERNAL flag.
  • Loading branch information
ITzTravelInTime committed Jul 19, 2021
1 parent 54d9b42 commit 91f7cd0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Sources/TINURecovery/SIP.swift
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,9 @@ public extension SIP.SIPStatus{

///Indicates if SIP is fully enabled, fully disabled or uses an undeterminated configuration
var resultsEnabled: Bool!{
switch (self & SIP.SIPBits.CSR_DISABLE_FLAGS) {
case SIP.SIPBits.CSR_DISABLE_FLAGS:
let ref = (SIP.SIPBits.CSR_DISABLE_FLAGS & (~SIP.SIPBits.CSR_ALLOW_APPLE_INTERNAL.rawValue) )
switch (self & ref) {
case ref:
return false
case 0:
return true
Expand Down

0 comments on commit 91f7cd0

Please sign in to comment.