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

Issue 312003: Allow chrome_sandbox to act as a helper program and find the socket with a gi... (Closed)

Created:
11 years, 2 months ago by Lei Zhang
Modified:
9 years, 7 months ago
Reviewers:
agl
CC:
chromium-reviews_googlegroups.com, brettw+cc_chromium.org
Visibility:
Public.

Description

Allow chrome_sandbox to act as a helper program and find the socket with a given inode number. BUG=none TEST=none

Patch Set 1 #

Total comments: 1

Patch Set 2 : '' #

Total comments: 12

Patch Set 3 : fix sandbox typos #

Patch Set 4 : add extra security check #

Total comments: 1

Patch Set 5 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+168 lines, -4 lines) Patch
A sandbox/linux/suid/linux_util.h View 1 chunk +20 lines, -0 lines 0 comments Download
A sandbox/linux/suid/linux_util.c View 2 3 4 1 chunk +111 lines, -0 lines 0 comments Download
D sandbox/linux/suid/sandbox.c View 1 2 3 4 6 chunks +31 lines, -4 lines 0 comments Download
M sandbox/sandbox.gyp View 1 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
agl
NACK. The sandbox cannot be C++. Nor can it link against base. http://codereview.chromium.org/312003/diff/1/4 File sandbox/linux/suid/sandbox.cc ...
11 years, 2 months ago (2009-10-23 17:51:08 UTC) #1
Lei Zhang
Ok, added a block of comments and copied the relevant code out of base/linux_utils.cc.
11 years, 1 month ago (2009-10-29 21:02:35 UTC) #2
agl
http://codereview.chromium.org/312003/diff/8001/9003 File sandbox/linux/suid/linux_util.c (right): http://codereview.chromium.org/312003/diff/8001/9003#newcode63 Line 63: snprintf(buf, sizeof(buf), "/proc/%ld/fd", pid_ul); paranoia: open the directory ...
11 years, 1 month ago (2009-10-30 00:18:26 UTC) #3
Lei Zhang
http://codereview.chromium.org/312003/diff/8001/9003 File sandbox/linux/suid/linux_util.c (right): http://codereview.chromium.org/312003/diff/8001/9003#newcode63 Line 63: snprintf(buf, sizeof(buf), "/proc/%ld/fd", pid_ul); On 2009/10/30 00:18:26, agl ...
11 years, 1 month ago (2009-10-30 01:41:40 UTC) #4
agl
http://codereview.chromium.org/312003/diff/8001/9003 File sandbox/linux/suid/linux_util.c (right): http://codereview.chromium.org/312003/diff/8001/9003#newcode63 Line 63: snprintf(buf, sizeof(buf), "/proc/%ld/fd", pid_ul); On 2009/10/30 01:41:40, Lei ...
11 years, 1 month ago (2009-10-30 01:49:39 UTC) #5
Lei Zhang
http://codereview.chromium.org/312003/diff/8001/9003 File sandbox/linux/suid/linux_util.c (right): http://codereview.chromium.org/312003/diff/8001/9003#newcode63 Line 63: snprintf(buf, sizeof(buf), "/proc/%ld/fd", pid_ul); On 2009/10/30 01:49:39, agl ...
11 years, 1 month ago (2009-10-31 07:40:19 UTC) #6
agl
LGTM http://codereview.chromium.org/312003/diff/7005/11003 File sandbox/linux/suid/linux_util.c (right): http://codereview.chromium.org/312003/diff/7005/11003#newcode72 Line 72: snprintf(buf, sizeof(buf), "/proc/%ld", pid_ul); %lu, no?
11 years, 1 month ago (2009-11-03 18:47:53 UTC) #7
Lei Zhang
11 years, 1 month ago (2009-11-03 19:56:09 UTC) #8
On 2009/11/03 18:47:53, agl wrote:
> LGTM
> 
> http://codereview.chromium.org/312003/diff/7005/11003
> File sandbox/linux/suid/linux_util.c (right):
> 
> http://codereview.chromium.org/312003/diff/7005/11003#newcode72
> Line 72: snprintf(buf, sizeof(buf), "/proc/%ld", pid_ul);
> %lu, no?

yes, done.

Powered by Google App Engine
This is Rietveld 408576698