#include "sandbox/linux/syscall_broker/broker_permission_list.h"
#include <fcntl.h>
#include <stddef.h>
#include <stdint.h>
#include <string.h>
#include <string>
#include <vector>
namespace sandbox {
namespace syscall_broker {
BrokerPermissionList::BrokerPermissionList(
int denied_errno,
std::vector<BrokerFilePermission> permissions)
: … { … }
BrokerPermissionList::~BrokerPermissionList() = default;
const char* BrokerPermissionList::GetFileNameIfAllowedToAccess(
const char* requested_filename,
int requested_mode) const { … }
std::pair<const char*, bool> BrokerPermissionList::GetFileNameIfAllowedToOpen(
const char* requested_filename,
int requested_flags) const { … }
const char* BrokerPermissionList::GetFileNameIfAllowedToStat(
const char* requested_filename) const { … }
const char* BrokerPermissionList::GetFileNameIfAllowedToInotifyAddWatch(
const char* requested_filename,
uint32_t mask) const { … }
}
}