blob: 3e4d41b5b84cfc2b2f00107bbcffba429cea3023 [file] [log] [blame]
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef SANDBOX_LINUX_SECCOMP_BPF_UTIL_H__
#define SANDBOX_LINUX_SECCOMP_BPF_UTIL_H__
namespace playground2 {
class Util {
public:
static bool sendFds(int transport, const void *buf, size_t len, ...);
static bool getFds(int transport, void *buf, size_t *len, ...);
static void closeAllBut(int fd, ...);
};
} // namespace
#endif // SANDBOX_LINUX_SECCOMP_BPF_UTIL_H__