Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
Tor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
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
Benjamin J. Thompson
Tor
Commits
6cae5d70
Commit
6cae5d70
authored
11 years ago
by
Cristian Toader
Browse files
Options
Downloads
Patches
Plain Diff
Added doxygen struct doc and replaced func() with funct(void)
parent
8b8f87a0
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
src/common/sandbox.c
+1
-1
1 addition, 1 deletion
src/common/sandbox.c
src/common/sandbox.h
+9
-5
9 additions, 5 deletions
src/common/sandbox.h
with
10 additions
and
6 deletions
src/common/sandbox.c
+
1
−
1
View file @
6cae5d70
...
...
@@ -1138,7 +1138,7 @@ initialise_libseccomp_sandbox(sandbox_cfg_t* cfg)
#endif // USE_LIBSECCOMP
sandbox_cfg_t
*
sandbox_cfg_new
()
sandbox_cfg_new
(
void
)
{
return
NULL
;
}
...
...
This diff is collapsed.
Click to expand it.
src/common/sandbox.h
+
9
−
5
View file @
6cae5d70
...
...
@@ -46,12 +46,16 @@
* parameters for open, openat, execve, stat64.
*/
struct
pfd_elem
{
int
syscall
;
// syscall associated with parameter
/** syscall associated with parameter. */
int
syscall
;
char
pindex
;
// parameter index
intptr_t
param
;
// parameter value
/** parameter index. */
char
pindex
;
/** parameter value. */
intptr_t
param
;
char
prot
;
// parameter flag (0 = not protected, 1 = protected)
/** parameter flag (0 = not protected, 1 = protected). */
char
prot
;
struct
pfd_elem
*
next
;
};
...
...
@@ -101,7 +105,7 @@ void sandbox_set_debugging_fd(int fd);
const
char
*
sandbox_intern_string
(
const
char
*
param
);
/** Creates an empty sandbox configuration file.*/
sandbox_cfg_t
*
sandbox_cfg_new
();
sandbox_cfg_t
*
sandbox_cfg_new
(
void
);
/**
* Function used to add a open allowed filename to a supplied configuration.
...
...
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