Skip to main content
  • Book
  • © 2021

Interprocess Communication with macOS

Apple IPC Methods

Apress

Authors:

  • Implement theoretical concepts of IPC to solve real world problems in macOS applications
  • Handle complex privilege elevation problems in secure ways
  • Interact with Agents and Daemons on macOS
  • 5135 Accesses

Buy it now

Buying options

eBook USD 49.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book USD 64.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Other ways to access

This is a preview of subscription content, log in via an institution to check for access.

Table of contents (10 chapters)

  1. Front Matter

    Pages i-xvii
  2. Introduction to IPC on macOS

    • Hem Dutt
    Pages 1-9
  3. IPC Through Shared Memory

    • Hem Dutt
    Pages 11-35
  4. IPC Through Mach Ports

    • Hem Dutt
    Pages 37-66
  5. IPC Through Sockets

    • Hem Dutt
    Pages 67-107
  6. IPC Through Apple Events

    • Hem Dutt
    Pages 109-152
  7. IPC Through Distributed Notifications

    • Hem Dutt
    Pages 153-170
  8. IPC Through Pasteboards

    • Hem Dutt
    Pages 171-182
  9. IPC Through XPC

    • Hem Dutt
    Pages 183-218
  10. IPC Between Native and Web Apps

    • Hem Dutt
    Pages 219-242
  11. Privilege Elevation

    • Hem Dutt
    Pages 243-274
  12. Back Matter

    Pages 275-284

About this book

Build highly modular software in macOS that interacts deeply and intuitively with other programs. This book explores all techniques available for Inter-process communications (IPC) from high level macOS layers to deep kernel options while applying theoretical concepts into practical implementations on real world scenarios.

You'll see how IPC techniques are used for exchanging data and messages among multiple threads in one or more processes, which may be running on one or more computers connected by a network or running locally. IPC methods can be divided into methods for message passing, synchronization, shared memory, and remote procedure calls (RPC). A poorly conceived IPC can even expose an entire network to over-the-network attacks. Despite the risks, processes and applications absolutely need to communicate with each other across your system and the network. You'll see how these communications facilitate information sharing, computational speedup, modularity, convenience, and privilege separation. 


In macOS, a program has a number of ways to communicate with other programs. These mechanisms for IPC often exist in different layers of the system. You'll examine how each has its own specific purposes, limitations, and intended scenarios. Some are more suitable than others for code written at a certain level of the system. For example, a kernel extension would not make use of Apple events. 


Additionally, the book reveals that different users have different rights when it comes to accessing files, changing system wide settings, and so on, depending on whether they are admin users or ordinary users. Running code with root or administrative privileges can intensify the dangers posed by security vulnerabilities. You'll learn that to elevate privileges safely, it is mandatory for the application to perform the task through a secure Helper process.


What You'll Learn

  • Expand the capabilities of your programs by sharing data within multiple applications
  • Understand and dig deep into the world of Helper tools to create apps that need user privilege elevation
  • Enhance the modularity of a system by allowing your applications to interact and share data with a website




Who This Book Is For


Software engineers and architects designing and developing secure applications for macOS and iOS who have hands-on knowledge of Swift with XCode. 




Authors and Affiliations

  • North Delhi, India

    Hem Dutt

About the author

Hem Dutt started his software engineering career in 2010 as a macOS (OS X) application developer and thereafter designed and developed numerous native macOS and iOS applications for various clients across the globe while working in multiple MNCs. With more than a continuous decade of experience working in macOS, Hem Dutt has developed applications in multiple domains; including healthcare, insurance, VPN clients, publishing, and IOT. His passion for designing and developing secure, reliable, and modular software is evident from his blogs, client awards/recommendations, and open source projects.

Bibliographic Information

  • Book Title: Interprocess Communication with macOS

  • Book Subtitle: Apple IPC Methods

  • Authors: Hem Dutt

  • DOI: https://doi.org/10.1007/978-1-4842-7045-5

  • Publisher: Apress Berkeley, CA

  • eBook Packages: Professional and Applied Computing, Apress Access Books, Professional and Applied Computing (R0)

  • Copyright Information: Hem Dutt 2021

  • Softcover ISBN: 978-1-4842-7044-8Published: 29 May 2021

  • eBook ISBN: 978-1-4842-7045-5Published: 28 May 2021

  • Edition Number: 1

  • Number of Pages: XVII, 284

  • Number of Illustrations: 73 b/w illustrations

  • Topics: Apple and iOS

Buy it now

Buying options

eBook USD 49.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book USD 64.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Other ways to access