blob: 63ad470ed8b1ac0b68d295b8381afc72c13230b8 [file] [log] [blame]
Tom Cherryc3692b32017-08-10 12:22:44 -07001/*
2 * Copyright (C) 2017 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
Vic Yang92c236e2019-05-28 15:58:35 -070017#pragma once
Tom Cherryc3692b32017-08-10 12:22:44 -070018
19namespace android {
20namespace init {
21
Tom Cherry7bfea3d2018-11-06 14:12:05 -080022int SetupSelinux(char** argv);
Tom Cherryc3692b32017-08-10 12:22:44 -070023void SelinuxRestoreContext();
24
25void SelinuxSetupKernelLogging();
Tom Cherry40acb372018-08-01 13:41:12 -070026int SelinuxGetVendorAndroidVersion();
Tom Cherryc3692b32017-08-10 12:22:44 -070027
Mark Salyzyn44505ec2019-05-08 12:44:50 -070028static constexpr char kEnvSelinuxStartedAt[] = "SELINUX_STARTED_AT";
29
Tom Cherryc3692b32017-08-10 12:22:44 -070030} // namespace init
31} // namespace android