Skip to content

Commit 1970c94

Browse files
authored
suid chrome sandbox (keybase#18894)
1 parent 32fc9b7 commit 1970c94

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

‎packaging/linux/build_binaries.sh‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ build_one_architecture() {
134134
yarn run package -- --platform linux --arch "$electron_arch" --appVersion "$version"
135135
rsync -a "desktop/release/linux-${electron_arch}/Keybase-linux-${electron_arch}/" \
136136
"$layout_dir/opt/keybase"
137+
chmod 4755 "$layout_dir/opt/keybase/chrome-sandbox"
137138
)
138139

139140
# Copy in the icon images.

‎packaging/linux/deb/package_binaries.sh‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ build_one_architecture() {
5454

5555
# Copy the entire filesystem layout, binaries and all, into the debian build
5656
# folder. TODO: Something less wasteful of disk space?
57-
cp -r "$build_root"/binaries/"$debian_arch"/* "$dest/build"
57+
# Preserve permissions of the chrome-sandbox setuid
58+
cp -rp "$build_root"/binaries/"$debian_arch"/* "$dest/build"
5859

5960
# Copy changelog directly in, since this is a binary package.
6061
doc_dir="$dest/build/usr/share/doc/keybase"

0 commit comments

Comments
 (0)