Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Ansible FreeIPA
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirror
Ansible FreeIPA
Commits
72453399
Unverified
Commit
72453399
authored
1 month ago
by
Rafael Guterres Jeffman
Committed by
GitHub
1 month ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #1351 from t-woerner/infra_image_start_debug
infra/image/shdefaults: Add SYS_PTRACE to CAP_DEFAULTS
parents
86701caf
638422e1
Branches
master
Tags
v1.14.6
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
infra/image/shcontainer
+3
-1
3 additions, 1 deletion
infra/image/shcontainer
infra/image/shdefaults
+1
-0
1 addition, 0 deletions
infra/image/shdefaults
with
4 additions
and
1 deletion
infra/image/shcontainer
+
3
−
1
View file @
72453399
...
@@ -4,6 +4,7 @@
...
@@ -4,6 +4,7 @@
SCRIPTDIR
=
"
$(
dirname
--
"
$(
readlink
-f
"
${
BASH_SOURCE
[0]
}
"
)
"
)
"
SCRIPTDIR
=
"
$(
dirname
--
"
$(
readlink
-f
"
${
BASH_SOURCE
[0]
}
"
)
"
)
"
TOPDIR
=
"
$(
readlink
-f
"
${
SCRIPTDIR
}
/../.."
)
"
TOPDIR
=
"
$(
readlink
-f
"
${
SCRIPTDIR
}
/../.."
)
"
# shellcheck disable=SC1091
.
"
${
SCRIPTDIR
}
/shdefaults"
.
"
${
SCRIPTDIR
}
/shdefaults"
# shellcheck disable=SC1091
# shellcheck disable=SC1091
...
@@ -15,7 +16,8 @@ container_create() {
...
@@ -15,7 +16,8 @@ container_create() {
shift
2
shift
2
declare
-a
extra_opts
declare
-a
extra_opts
readarray
-t
extra_opts <
\
readarray
-t
extra_opts <
\
<
(
sed
-e
"s/-/--cap-drop=/g"
-e
"s/+/--cap-add=/g"
<<<
"
${
CAP_DEFAULTS
[@]
}
"
)
<
(
sed
-e
"s/-/--cap-drop=/g"
-e
"s/+/--cap-add=/g"
\
<<<
"
$(
printf
'%s\n'
"
${
CAP_DEFAULTS
[@]
}
"
)
"
)
for
opt
in
"
$@
"
for
opt
in
"
$@
"
do
do
[
-z
"
${
opt
}
"
]
&&
continue
[
-z
"
${
opt
}
"
]
&&
continue
...
...
This diff is collapsed.
Click to expand it.
infra/image/shdefaults
+
1
−
0
View file @
72453399
...
@@ -5,4 +5,5 @@
...
@@ -5,4 +5,5 @@
# Use +CAP to add the capability and -CAP to drop the capability.
# Use +CAP to add the capability and -CAP to drop the capability.
CAP_DEFAULTS
=(
CAP_DEFAULTS
=(
"+DAC_READ_SEARCH"
# Required for SSSD
"+DAC_READ_SEARCH"
# Required for SSSD
"+SYS_PTRACE"
# Required for debugging
)
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment