Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(128)

Side by Side Diff: sandbox/linux/suid/linux_util.h

Issue 569533002: Remove --find-inode-switch hack from chrome-sandbox (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // The following is duplicated from base/linux_utils.h. 5 // The following is duplicated from base/linux_utils.h.
6 // We shouldn't link against C++ code in a setuid binary. 6 // We shouldn't link against C++ code in a setuid binary.
7 7
8 #ifndef SANDBOX_LINUX_SUID_LINUX_UTIL_H_ 8 #ifndef SANDBOX_LINUX_SUID_LINUX_UTIL_H_
9 #define SANDBOX_LINUX_SUID_LINUX_UTIL_H_ 9 #define SANDBOX_LINUX_SUID_LINUX_UTIL_H_
10 10
11 #include <stdbool.h>
12 #include <sys/types.h>
13
14 static const char kFindInodeSwitch[] = "--find-inode";
15 static const char kSuidSandboxGetApiSwitch[] = "--get-api"; 11 static const char kSuidSandboxGetApiSwitch[] = "--get-api";
16 12
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);
20
21 #endif // SANDBOX_LINUX_SUID_LINUX_UTIL_H_ 13 #endif // SANDBOX_LINUX_SUID_LINUX_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698