Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eepm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
eepm
Commits
c848bf28
Commit
c848bf28
authored
Apr 17, 2022
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm repack: move fix_chrome_sandbox to common.sh
parent
014fadc4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
11 deletions
+13
-11
common-chromium-browser.sh
repack.d/common-chromium-browser.sh
+0
-11
common.sh
repack.d/common.sh
+13
-0
No files found.
repack.d/common-chromium-browser.sh
View file @
c848bf28
...
@@ -105,14 +105,3 @@ add_bin_commands()
...
@@ -105,14 +105,3 @@ add_bin_commands()
add_bin_link_command
$PRODUCT
$PRODUCTCUR
add_bin_link_command
$PRODUCT
$PRODUCTCUR
}
}
fix_chrome_sandbox
()
{
local
sandbox
=
"
$1
"
# Set SUID for chrome-sandbox if userns_clone is not supported
userns_path
=
'/proc/sys/kernel/unprivileged_userns_clone'
userns_val
=
"
$(
cat
$userns_path
2>/dev/null
)
"
[
"
$userns_val
"
=
'1'
]
&&
return
[
-n
"
$sandbox
"
]
||
sandbox
=
$PRODUCTDIR
/chrome-sandbox
chmod
4755
$BUILDROOT
/
$sandbox
}
repack.d/common.sh
View file @
c848bf28
...
@@ -58,3 +58,16 @@ move_to_opt()
...
@@ -58,3 +58,16 @@ move_to_opt()
subst
"s|
$from
|
$PRODUCTDIR
|g"
$SPEC
subst
"s|
$from
|
$PRODUCTDIR
|g"
$SPEC
}
}
fix_chrome_sandbox
()
{
local
sandbox
=
"
$1
"
# Set SUID for chrome-sandbox if userns_clone is not supported
# CHECKME: Also userns can be enabled via sysctl-conf-userns package install
userns_path
=
'/proc/sys/kernel/unprivileged_userns_clone'
userns_val
=
"
$(
cat
$userns_path
2>/dev/null
)
"
[
"
$userns_val
"
=
'1'
]
&&
return
[
-n
"
$sandbox
"
]
||
sandbox
=
$PRODUCTDIR
/chrome-sandbox
[
-e
"
$BUILDROOT$sandbox
"
]
||
return
chmod
4755
$BUILDROOT$sandbox
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment