Added GetState, GetManagedProperties, CreateNetwork methods to WiFiService.
[chromium-blink-merge.git] / sandbox / linux / suid / linux_util.h
blobd06425227a96312383e80543ac342e26251d14ef
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 // The following is duplicated from base/linux_utils.h.
6 // We shouldn't link against C++ code in a setuid binary.
8 #ifndef SANDBOX_LINUX_SUID_LINUX_UTIL_H_
9 #define SANDBOX_LINUX_SUID_LINUX_UTIL_H_
11 #include <stdbool.h>
12 #include <sys/types.h>
14 static const char kFindInodeSwitch[] = "--find-inode";
15 static const char kSuidSandboxGetApiSwitch[] = "--get-api";
17 // Find the process which holds the given socket, named by inode number. If
18 // multiple processes hold the socket, this function returns false.
19 bool FindProcessHoldingSocket(pid_t* pid_out, ino_t socket_inode);
21 #endif // SANDBOX_LINUX_SUID_LINUX_UTIL_H_