We are pushing some Chrome settings through Directory Services command line utility /usr/bin/dscl
/usr/bin/dscl /Local/Default -mcximport /Computers/local_computer chrome_settings.plist
/usr/bin/mcxrefresh -n root
These commands created com.google.Chrome.plist in /Library/Managed Preferences on previous macOS versions.
However on macOS 15.x Sequoia these commands intermittently fail to create the file in /Library/Managed Preferences though there is no error reported or any log entries that could indicate an error.
There could be other component on Sequoia that is preventing directory services tool to push the preferences but I am unable to locate it. It is not MDM because the machines are not enrolled (also have a setup where dscl and MDM both work).
This is happening on a clean macbook setup but I have never seen it happen on mac mini.
Anyone have an idea what could be interfering with directory services to complete its task of pushing managed settings? DDM?
Post
Replies
Boosts
Views
Activity
IN endpoint security events related to user login/logout activity (as well in lock/unlock and remote session attach/detach) there is a graphical session identifier which is a 32 bit integer
typedef struct {
es_string_token_t username;
** es_graphical_session_id_t graphical_session_id;**
} es_event_lw_session_login_t;
Documentation describes it as an opague number
@brief es_graphical_session_id_t is a session identifier identifying a on-console or off-console graphical session.
A graphical session exists and can potentially be attached to via Screen Sharing before a user is logged in.
EndpointSecurity clients should treat the graphical_session_id as an opaque identifier and not assign
special meaning to it beyond correlating events pertaining to the same graphical session. Not to be confused with the audit session ID.
*/
typedef uint32_t es_graphical_session_id_t;
Question: is there a way to get this graphical session identifier outside of endpoint security framework, for ex. from process id or audit token?
Is there an API for that?
I am developing a simple transparent proxy that does forward any flow to the destination on macOS.I set up configuration using NETransparentProxyManager and able to start AppProxy provider and get handleNewFlow: callback, howeverwhen I do NEAppProxyProvider createTCPConnectionToEndpoint: .... to the destination endpoint, the connection establishes but stays in the waiting state NWTCPConnectionStateWaiting and the console logs the policy deny message (see below).My app id has all entitlements and Content Filter network extension works just fine from within the same extension.-App Groups-Custom Network Protocol-Network Extensions-Personal VPN-System ExtensionApparently OS thinks that extension does not have Network Extension privilege PRIV_NET_PRIVILEGED_NECP_MATCH: why?What am I missing?Sandbox: com.xxxxxxxxxxxx(42182) System Policy: deny(1) system-privilege 10006Violation: System Policy: deny(1) system-privilege 10006Process: com.xxxxxxxxxxxx [42182]Path: /Library/SystemExtensions/99D00C16-EDD3-455F-B5E8-B71DDDA2BBB4/com.xxxxxxxxxxxx.CatalinaPlusTest.PacketTunnelPlus.systemextension/Contents/MacOS/com.xxxxxxxxxxxx.CatalinaPlusTest.PacketTunnelPlusLoad Address: 0x10f5a5000Identifier: com.xxxxxxxxxxxx.CatalinaPlusTest.PacketTunnelPlusVersion: 1 (1.0)Code Type: x86_64 (Native)Parent Process: launchd [1]Responsible: /Library/SystemExtensions/99D00C16-EDD3-455F-B5E8-B71DDDA2BBB4/com.xxxxxxxxxxxx.CatalinaPlusTest.PacketTunnelPlus.systemextension/Contents/MacOS/com.xxxxxxxxxxxx.CatalinaPlusTest.PacketTunnelPlusUser ID: 0Date/Time: 2020-03-24 15:39:32.600 PDTOS Version: Mac OS X 10.15.4 (19E264b)Report Version: 8MetaData: {"primary-filter-value":10006,"errno":1,"pid":42182,"signing-id":"com.xxxxx.CatalinaPlusTest.PacketTunnelPlus","platform-policy":true,"primary-filter":"privilege-id","team-id":"C489D5E8E8","process":"xxxxxx","platform-binary":false,"target":10006,"privilege-id":"PRIV_NET_PRIVILEGED_NECP_MATCH","action":"deny","hardware":"Mac","platform_binary":"no","profile-flags":0,"responsible-process-user-uuid":"FFFFEEEE-DDDD-CCCC-BBBB-AAAA00000000","responsible-process-path":"\/Library\/SystemExtensions\/99D00C16-EDD3-455F-B5E8-B71DDDA2BBB4\/com.xxxxxxxxxxxx.CatalinaPlusTest.PacketTunnelPlus.systemextension\/Contents\/MacOS\/com.xxxxxxxxxxxx.CatalinaPlusTest.PacketTunnelPlus","profile":"platform","flags":5,"apple-internal":false,"process-path":"\/Library\/SystemExtensions\/99D00C16-EDD3-455F-B5E8-B71DDDA2BBB4\/com.xxxxxxxxxxxx.CatalinaPlusTest.PacketTunnelPlus.systemextension\/Contents\/MacOS\/com.xxxxxxxxxxxx.CatalinaPlusTest.PacketTunnelPlus","build":"Mac OS X 10.15.4 (19E264b)","responsible-process-uid":0,"uid":0,"summary":"deny(1) system-privilege 10006","operation":"system-privilege"}Thread 0 (id: 4951912):0 libsystem_kernel.dylib 0x00007fff66fc44da __semwait_signal_nocancel + 101 libsystem_c.dylib 0x00007fff66ef7f38 sleep$NOCANCEL + 412 libdispatch.dylib 0x00007fff66e343da _dispatch_queue_cleanup2 + 1563 libsystem_pthread.dylib 0x00007fff67080054 _pthread_tsd_cleanup + 5514 libsystem_pthread.dylib 0x00007fff67082512 _pthread_exit + 705 libsystem_pthread.dylib 0x00007fff6707fe08 pthread_exit + 426 libdispatch.dylib 0x00007fff66e2ffce libdispatch_init + 07 com.xxxxxxxxxxxx.CatalinaPlusTest.PacketTunnelPlus 0x000000010f5a5f5e8 libdyld.dylib 0x00007fff66e7dcc9 start + 19 com.xxxxxxxxxxxx.CatalinaPlusTest.PacketTunnelPlus 0x0000000000000001Thread 1 (id: 4951932):0 libsystem_kernel.dylib 0x00007fff66fc04ce __workq_kernreturn + 101 libsystem_pthread.dylib 0x00007fff6707db77 start_wqthread + 15Thread 2 (id: 4951933):0 libsystem_kernel.dylib 0x00007fff66fc2072 necp_client_action + 101 libnetwork.dylib 0x00007fff657c7328 nw_path_create_evaluator_for_endpoint + 7602 Network 0x00007fff3385b2d3 -[NWPathEvaluator initWithEndpoint:parameters:] + 5313 Network 0x00007fff3385b0a4 __41+[NWPathEvaluator sharedDefaultEvaluator]_block_invoke + 364 libdispatch.dylib 0x00007fff66e24658 _dispatch_client_callout + 85 libdispatch.dylib 0x00007fff66e257de _dispatch_once_callout + 206 Network 0x00007fff3385b07e +[NWPathEvaluator sharedDefaultEvaluator] + 467 NetworkExtension 0x00007fff33b0fecd -[NEProvider initAllowUnentitled:] + 2488 NetworkExtension 0x00007fff339f0d92 -[NEExtensionProviderContext createWithCompletionHandler:] + 3989 Foundation 0x00007fff2f6514f3 __NSXPCCONNECTION_IS_CALLING_OUT_TO_EXPORTED_OBJECT_S1__ + 1010 Foundation 0x00007fff2f5db9be -[NSXPCConnection _decodeAndInvokeMessageWithEvent:flags:] + 236311 Foundation 0x00007fff2f592b29 message_handler + 21012 libxpc.dylib 0x00007fff670c22bc _xpc_connection_call_event_handler + 5613 libxpc.dylib 0x00007fff670c11cb _xpc_connection_mach_event + 93414 libdispatch.dylib 0x00007fff66e246f8 _dispatch_client_callout4 + 915 libdispatch.dylib 0x00007fff66e39bc9 _dispatch_mach_msg_invoke + 43516 libdispatch.dylib 0x00007fff66e29af6 _dispatch_lane_serial_drain + 26317 libdispatch.dylib 0x00007fff66e3a71c _dispatch_mach_invoke + 48118 libdispatch.dylib 0x00007fff66e29af6 _dispatch_lane_serial_drain + 26319 libdispatch.dylib 0x00007fff66e2a609 _dispatch_lane_invoke + 41420 libdispatch.dylib 0x00007fff66e33c09 _dispatch_workloop_worker_thread + 59621 libsystem_pthread.dylib 0x00007fff6707ea3d _pthread_wqthread + 29022 libsystem_pthread.dylib 0x00007fff6707db77 start_wqthread + 15Thread 3 (id: 4951934):0 libsystem_kernel.dylib 0x00007fff66fc4502 __sigsuspend_nocancel + 101 libdispatch.dylib 0x00007fff66e34476 _dispatch_sigsuspend + 0Binary Images: 0x10f5a5000 - 0x10f5a9ff3 com.xxxxxxxxxxxx.CatalinaPlusTest.PacketTunnelPlus (1.0 - 1) <67ce2dcd-47a0-31da-8312-71c9e4fe9e4c> /Library/SystemExtensions/99D00C16-EDD3-455F-B5E8-B71DDDA2BBB4/com.xxxxxxxxxxxx.CatalinaPlusTest.PacketTunnelPlus.systemextension/Contents/MacOS/com.xxxxxxxxxxxx.CatalinaPlusTest.PacketTunnelPlus 0x7fff2f571000 - 0x7fff2f936ff8 com.apple.Foundation (6.9 - 1675.129) <9a74fa97-7f7b-3929-b381-d9514b1e4754> /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation 0x7fff3385a000 - 0x7fff339b1ff3 com.apple.Network (1.0 - 1) <d1c8fdde-c822-3c40-bb26-18f24cfc8ae2> /System/Library/Frameworks/Network.framework/Versions/A/Network 0x7fff339b2000 - 0x7fff33c11ff7 com.apple.NetworkExtension (1.0 - 1) <cb7e4930-c6ec-3642-b4bf-2b9d54ba3a53> /System/Library/Frameworks/NetworkExtension.framework/Versions/A/NetworkExtension 0x7fff657a8000 - 0x7fff65c23ff5 libnetwork.dylib (1880.100.30) <9519b6f8-44e2-3f53-b995-1527c5333240> /usr/lib/libnetwork.dylib 0x7fff66e22000 - 0x7fff66e62ff0 libdispatch.dylib (1173.100.2) <eb592997-b11c-3ab3-85b1-f725f3d0b412> /usr/lib/system/libdispatch.dylib 0x7fff66e63000 - 0x7fff66e99fff libdyld.dylib (750.5) <d2a07ef5-a64b-3692-be13-89daa2ec5e80> /usr/lib/system/libdyld.dylib 0x7fff66ecd000 - 0x7fff66f54fff libsystem_c.dylib (1353.100.2) <4f5eed22-4d46-3f04-8c64-c492cdad70eb> /usr/lib/system/libsystem_c.dylib 0x7fff66fbe000 - 0x7fff66feaff7 libsystem_kernel.dylib (6153.101.6) <e76440e1-d1e8-3d9a-8b47-d01f554ff1c4> /usr/lib/system/libsystem_kernel.dylib 0x7fff6707c000 - 0x7fff67086fff libsystem_pthread.dylib (416.100.3) <a8514582-e000-3854-911a-0a73d2c79600> /usr/lib/system/libsystem_pthread.dylib 0x7fff670b5000 - 0x7fff670eaffe libxpc.dylib (1738.100.39) <32b0e31e-9da3-328b-a962-bc9591b93537> /usr/lib/system/libxpc.dylib
I have a .dylib that is creating an endpoint security client using esnewclient() and subscribes to few events.
I linked my console app with that .dylib and given com.apple.developer.endpoint-security.client.
The console app loads fine with SIP disabled and esnewclient() is created and works successfully.
I have another console app that is an executable created with pyinstaller (compiled python code).
If I try to load/link the endpoint security client .dylib into that python-compiled app, it is killed by the system with "Invalid signature" in the crash log. I verified endpoint-security, app, group etc entitlements and they are correctly set. But the app can not launch.
I wonder if there are special requirements that python executable can not satisfy to be entitled as endpoint-security.client?
Where this message comes from?"Weather information provided by The Weather Channel, LLC."In Notification Center's Today if Weather or Stock widget is added, the line crediting providers appearing below all the widgets.Is there API or other way to implement similar feature for the 3rd party widgets?