Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Tor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sergi
Tor
Commits
24ddf586
Commit
24ddf586
authored
7 years ago
by
Nick Mathewson
Browse files
Options
Downloads
Plain Diff
Merge remote-tracking branch 'public/bug20247_029' into maint-0.2.9
parents
f17f7a4f
16d2bce8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
changes/bug20247
+4
-0
4 additions, 0 deletions
changes/bug20247
src/common/sandbox.c
+8
-0
8 additions, 0 deletions
src/common/sandbox.c
with
12 additions
and
0 deletions
changes/bug20247
0 → 100644
+
4
−
0
View file @
24ddf586
o Minor bugfixes (linux seccomp2 sandbox):
- Avoid a sandbox failure when trying to re-bind to a socket and mark
it as IPv6-only. Fixes bug 20247; bugfix on 0.2.5.1-alpha.
This diff is collapsed.
Click to expand it.
src/common/sandbox.c
+
8
−
0
View file @
24ddf586
...
...
@@ -728,6 +728,14 @@ sb_setsockopt(scmp_filter_ctx ctx, sandbox_cfg_t *filter)
return
rc
;
#endif
#ifdef IPV6_V6ONLY
rc
=
seccomp_rule_add_2
(
ctx
,
SCMP_ACT_ALLOW
,
SCMP_SYS
(
setsockopt
),
SCMP_CMP
(
1
,
SCMP_CMP_EQ
,
IPPROTO_IPV6
),
SCMP_CMP
(
2
,
SCMP_CMP_EQ
,
IPV6_V6ONLY
));
if
(
rc
)
return
rc
;
#endif
return
0
;
}
...
...
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