|
2005 | 2005 |
|
2006 | 2006 | (allow syscall-unix (syscall-unix-common))
|
2007 | 2007 |
|
| 2008 | +#if ENABLE(LOCKDOWN_MODE_TELEMETRY) |
2008 | 2009 | (with-filter (require-entitlement "com.apple.security.cs.allow-jit")
|
2009 | 2010 | (allow syscall-unix (syscall-unix-blocked-in-lockdown-mode))
|
2010 |
| - |
2011 | 2011 | (when (equal? (param "CPU") "arm64")
|
2012 | 2012 | (allow syscall-unix (syscall-unix-apple-silicon)))
|
2013 |
| - |
2014 | 2013 | (allow syscall-unix (syscalls-rarely-used)))
|
| 2014 | +#else |
| 2015 | +(allow syscall-unix (syscall-unix-blocked-in-lockdown-mode)) |
| 2016 | +(when (equal? (param "CPU") "arm64") |
| 2017 | + (allow syscall-unix (syscall-unix-apple-silicon))) |
| 2018 | +(allow syscall-unix (syscalls-rarely-used)) |
| 2019 | +#endif |
2015 | 2020 |
|
2016 | 2021 | (when (defined? 'SYS_objc_bp_assist_cfg_np)
|
2017 | 2022 | (allow syscall-unix (syscall-number SYS_objc_bp_assist_cfg_np)))
|
|
2026 | 2031 | (allow syscall-unix (syscall-number SYS_quotactl)))
|
2027 | 2032 | #endif
|
2028 | 2033 |
|
| 2034 | +#if ENABLE(LOCKDOWN_MODE_TELEMETRY) |
2029 | 2035 | (with-filter (require-not (require-entitlement "com.apple.security.cs.allow-jit"))
|
2030 | 2036 | (allow syscall-unix (with report) (with telemetry) (syscall-unix-blocked-in-lockdown-mode))
|
2031 | 2037 | (allow syscall-unix (with report) (with telemetry) (syscalls-rarely-used))
|
2032 | 2038 | (when (equal? (param "CPU") "arm64")
|
2033 | 2039 | (allow syscall-unix (with report) (with telemetry) (syscall-unix-apple-silicon))))
|
| 2040 | +#endif |
2034 | 2041 |
|
2035 | 2042 | #if HAVE(ADDITIONAL_APPLE_CAMERA_SERVICE)
|
2036 | 2043 | (if (equal? (param "CPU") "arm64")
|
|
2149 | 2156 | (allow mach-kernel-endpoint
|
2150 | 2157 | (apply-message-filter
|
2151 | 2158 | (deny mach-message-send)
|
2152 |
| - (allow mach-message-send (kernel-mig-routines-common)) |
| 2159 | +#if ENABLE(LOCKDOWN_MODE_TELEMETRY) |
2153 | 2160 | (with-filter (require-entitlement "com.apple.security.cs.allow-jit")
|
2154 | 2161 | (allow mach-message-send (kernel-mig-routines-blocked-in-lockdown-mode)))
|
2155 | 2162 | (with-filter (require-not (require-entitlement "com.apple.security.cs.allow-jit"))
|
2156 |
| - (allow mach-message-send (with report) (with telemetry) (kernel-mig-routines-blocked-in-lockdown-mode)))))) |
| 2163 | + (allow mach-message-send (with report) (with telemetry) (kernel-mig-routines-blocked-in-lockdown-mode))) |
| 2164 | +#else |
| 2165 | + (allow mach-message-send (kernel-mig-routines-blocked-in-lockdown-mode)) |
| 2166 | +#endif |
| 2167 | + (allow mach-message-send (kernel-mig-routines-common))))) |
2157 | 2168 |
|
2158 | 2169 | (define (syscall-mach-common) (machtrap-number
|
2159 | 2170 | MSC__kernelrpc_mach_port_allocate_trap
|
|
2202 | 2213 | (when (and (equal? (param "ENABLE_SANDBOX_MESSAGE_FILTER") "YES") (defined? 'syscall-mach))
|
2203 | 2214 | (deny syscall-mach)
|
2204 | 2215 | (allow syscall-mach (syscall-mach-common))
|
| 2216 | +#if ENABLE(LOCKDOWN_MODE_TELEMETRY) |
2205 | 2217 | (with-filter (require-entitlement "com.apple.security.cs.allow-jit")
|
2206 | 2218 | (allow syscall-mach (syscall-mach-blocked-in-lockdown-mode)))
|
2207 | 2219 | (with-filter (require-not (require-entitlement "com.apple.security.cs.allow-jit"))
|
2208 | 2220 | (allow syscall-mach (with report) (with telemetry) (syscall-mach-blocked-in-lockdown-mode)))
|
2209 |
| - |
| 2221 | +#else |
| 2222 | + (allow syscall-mach (syscall-mach-blocked-in-lockdown-mode)) |
| 2223 | +#endif |
2210 | 2224 | (when (defined? 'MSC_mach_msg2_trap)
|
2211 | 2225 | (allow syscall-mach (machtrap-number MSC_mach_msg2_trap))))
|
2212 | 2226 | #endif // HAVE(SANDBOX_MESSAGE_FILTERING)
|
|
0 commit comments