summaryrefslogtreecommitdiffstats
path: root/sandbox/linux/seccomp-bpf/util.h
blob: 3e4d41b5b84cfc2b2f00107bbcffba429cea3023 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// 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__