31 lines
679 B
C
31 lines
679 B
C
//
|
|
// Utilities.h
|
|
// Lockdown
|
|
//
|
|
// Created by Patrick Wardle on 2/14/16 and is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.
|
|
//
|
|
|
|
#ifndef Utilities_h
|
|
#define Utilities_h
|
|
|
|
/* FUNCTIONS */
|
|
|
|
//check if app is pristine
|
|
// ->that is to say, nobody modified on-disk image/resources
|
|
OSStatus verifySelf();
|
|
|
|
//display alert about app being unverifable
|
|
void showUnverifiedAlert(OSStatus signingError);
|
|
|
|
//spawn self as root
|
|
BOOL spawnAsRoot(char* path, char** argv);
|
|
|
|
//get OS version
|
|
NSDictionary* getOSVersion();
|
|
|
|
//is current OS version supported?
|
|
// ->for now, just OS X 10.11.* (El Capitan)
|
|
BOOL isSupportedOS();
|
|
|
|
#endif /* Utilities_h */
|