AuthorizationTrampolinePriv.h
1 /* 2 * Copyright (c) 2018 Apple Inc. All Rights Reserved. 3 * 4 * @APPLE_LICENSE_HEADER_START@ 5 * 6 * This file contains Original Code and/or Modifications of Original Code 7 * as defined in and that are subject to the Apple Public Source License 8 * Version 2.0 (the 'License'). You may not use this file except in 9 * compliance with the License. Please obtain a copy of the License at 10 * http://www.opensource.apple.com/apsl/ and read it before using this 11 * file. 12 * 13 * The Original Code and all software distributed under the License are 14 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 15 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 16 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 17 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 18 * Please see the License for the specific language governing rights and 19 * limitations under the License. 20 * 21 * @APPLE_LICENSE_HEADER_END@ 22 */ 23 24 25 /* 26 * AuthorizationTrampolinePriv.h -- Authorization defines for communication with 27 * authtrampoline. 28 * 29 */ 30 31 #ifndef _SECURITY_AUTHORIZATIONTRAMPOLINEPRIV_H_ 32 #define _SECURITY_AUTHORIZATIONTRAMPOLINEPRIV_H_ 33 34 #define XPC_REQUEST_CREATE_PROCESS "createp" 35 #define XPC_REPLY_MSG "rpl" 36 #define XPC_EVENT_MSG "evt" 37 #define XPC_REQUEST_ID "req" 38 39 #define XPC_EVENT_TYPE "evtt" 40 #define XPC_EVENT_TYPE_CHILDEND "ce" 41 42 #define PARAM_TOOL_PATH "tool" // path to the executable 43 #define PARAM_TOOL_PARAMS "params" // parameters passed to the executable 44 #define PARAM_ENV "env" // environment 45 #define PARAM_CWD "cwd" // current working directory 46 #define PARAM_EUID "requid" // uid under which executable should be running 47 #define PARAM_AUTHREF "auth" // authorization 48 #define PARAM_EXITCODE "ec" // exit code of that tool 49 #define PARAM_STDIN "in" // stdin FD 50 #define PARAM_STDOUT "out" // stdout FD 51 #define PARAM_STDERR "err" // stderr FD 52 #define PARAM_DATA "data" // data to be written to the executable's stdin 53 #define PARAM_CHILDEND_NEEDED "cen" // indicates client needs to be notified when executable finishes 54 55 #define RETVAL_STATUS "status" 56 #define RETVAL_CHILD_PID "cpid" 57 58 59 #endif /* !_SECURITY_AUTHORIZATIONTRAMPOLINEPRIV_H_ */