Questions tagged [smjobbless]

SMJobBless demonstrates how to securely install a helper tool that performs a privileged operation and how to associate the tool with an application that invokes it.

SMJobBless demonstrates how to securely install a helper tool that performs a privileged operation and how to associate the tool with an application that invokes it.

SMJobBless uses ServiceManagement.framework that was introduced in Mac OS X v10.6 Snow Leopard.

As of Snow Leopard, this is the preferred method of managing privilege escalation on Mac OS X and should be used instead of earlier approaches such as BetterAuthorizationSample or directly calling AuthorizationExecuteWithPrivileges.

21 questions
1
vote
2 answers

Lazarus Pascal: Writing a privileged helper tool with SMJobBless()

I've created an application in the past, in Lazarus Pascal, which execute "dd" to write an image to a drive. For this, obviously, elevated rights are needed. In the initial version I have used AuthorizationExecuteWithPrivileges() (link), even though…
Hanzaplastique
  • 564
  • 8
  • 13
1
vote
1 answer

How to access a packaged CLI tool using Swift on OSX

I need to accomplish following three things. I am not sure how to go about it using Swift and Xcode Package an existing CLI tool with the APP. Use swift to issue commands to this CLI app and let it do its thing. Read the output stream coming from…
0
votes
2 answers

Deleting files using Swift that require admin privileges

I am currently working on a Mac Application where I need to delete files(potentially malicious) from /Library/LaunchDaemons directory and other similar directories where I would need administrator privileges. Using the FileManager.default.removeItem…
SaudiSheep
  • 35
  • 6
0
votes
0 answers

Cannot invalidate launchd kextcache from helper executable

I've built an uninstaller that call helper executable with elevated permissions to remove my driver's launchd-plist, so that it won't come up again on the next boot cycle. In order reflect the new stage of /Library/LaunchDaemons, I invalidate the…
Zohar81
  • 4,554
  • 5
  • 29
  • 82
0
votes
2 answers

SMJobBless Apple sample code keep asking password

I have downloaded the Apple's SMJobBless to execute privileged operation. It is working correctly. The only issue i'm facing is, every time on launch it asks for password. Is there a way to avoid this thing? Thanks
Dawood Mujib
  • 337
  • 4
  • 14
0
votes
0 answers

how to use privileged helper tool(installed using SMJobless) to launch other application in root privileges on osx

I have a application inside which i have kept other applications.I want to launch other application in root privilege through main application.As we know AuthorizationExecuteWithPrivileges() has been deprecated, so that i have created a privileged…
Faisal Ikwal
  • 703
  • 3
  • 8
  • 25
1
2