1*ec779b8eSAndroid Build Coastguard Worker // Copyright 2015, The Android Open Source Project 2*ec779b8eSAndroid Build Coastguard Worker // 3*ec779b8eSAndroid Build Coastguard Worker // Licensed under the Apache License, Version 2.0 (the "License"); 4*ec779b8eSAndroid Build Coastguard Worker // you may not use this file except in compliance with the License. 5*ec779b8eSAndroid Build Coastguard Worker // You may obtain a copy of the License at 6*ec779b8eSAndroid Build Coastguard Worker // 7*ec779b8eSAndroid Build Coastguard Worker // http://www.apache.org/licenses/LICENSE-2.0 8*ec779b8eSAndroid Build Coastguard Worker // 9*ec779b8eSAndroid Build Coastguard Worker // Unless required by applicable law or agreed to in writing, software 10*ec779b8eSAndroid Build Coastguard Worker // distributed under the License is distributed on an "AS IS" BASIS, 11*ec779b8eSAndroid Build Coastguard Worker // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12*ec779b8eSAndroid Build Coastguard Worker // See the License for the specific language governing permissions and 13*ec779b8eSAndroid Build Coastguard Worker // limitations under the License. 14*ec779b8eSAndroid Build Coastguard Worker 15*ec779b8eSAndroid Build Coastguard Worker #ifndef AV_SERVICES_MINIJAIL_MINIJAIL 16*ec779b8eSAndroid Build Coastguard Worker #define AV_SERVICES_MINIJAIL_MINIJAIL 17*ec779b8eSAndroid Build Coastguard Worker 18*ec779b8eSAndroid Build Coastguard Worker #include <string> 19*ec779b8eSAndroid Build Coastguard Worker #include <vector> 20*ec779b8eSAndroid Build Coastguard Worker 21*ec779b8eSAndroid Build Coastguard Worker namespace android { 22*ec779b8eSAndroid Build Coastguard Worker int WritePolicyToPipe(const std::string& base_policy_content, 23*ec779b8eSAndroid Build Coastguard Worker const std::vector<std::string>& additional_policy_contents); 24*ec779b8eSAndroid Build Coastguard Worker void SetUpMinijail(const std::string& base_policy_path, 25*ec779b8eSAndroid Build Coastguard Worker const std::string& additional_policy_path); 26*ec779b8eSAndroid Build Coastguard Worker void SetUpMinijailList(const std::string& base_policy_path, 27*ec779b8eSAndroid Build Coastguard Worker const std::vector<std::string>& additional_policy_paths); 28*ec779b8eSAndroid Build Coastguard Worker } 29*ec779b8eSAndroid Build Coastguard Worker 30*ec779b8eSAndroid Build Coastguard Worker #endif // AV_SERVICES_MINIJAIL_MINIJAIL 31