A brief file description. More...
#include "ink_config.h"
#include "Diags.h"
#include "ink_cap.h"
#include "ink_thread.h"
Go to the source code of this file.
Functions | |
void | DebugCapabilities (char const *tag) |
Generate a debug message with the current capabilities for the process. | |
int | PreserveCapabilities () |
Set capabilities to persist across change of user id. | |
int | RestrictCapabilities () |
Initialize and restrict the capabilities of a thread. | |
int | EnableCoreFile (bool flag) |
Control generate of core file on crash. | |
bool | removeRootPriv (uid_t euid) |
bool | restoreRootPriv (uid_t *old_euid) |
A brief file description.
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Definition in file ink_cap.cc.
void DebugCapabilities | ( | char const * | tag | ) |
Generate a debug message with the current capabilities for the process.
tag | Debug message tag. |
Definition at line 39 of file ink_cap.cc.
References Debug, and is_debug_tag_set.
Referenced by main().
int EnableCoreFile | ( | bool | flag | ) |
Control generate of core file on crash.
flag sets whether core files are enabled on crash.
errno
on failre. flag | New enable state. |
Definition at line 99 of file ink_cap.cc.
References Debug, and Warning.
Referenced by change_uid_gid(), and set_core_size().
int PreserveCapabilities | ( | ) |
Set capabilities to persist across change of user id.
Definition at line 68 of file ink_cap.cc.
References Debug.
Referenced by main().
bool removeRootPriv | ( | uid_t | euid | ) |
bool restoreRootPriv | ( | uid_t * | old_euid | ) |
Definition at line 167 of file ink_cap.cc.
References Debug.
Referenced by ElevateAccess::elevate().
int RestrictCapabilities | ( | ) |
Initialize and restrict the capabilities of a thread.
Definition at line 79 of file ink_cap.cc.
References Debug.
Referenced by main().