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
ce04d2a6
Commit
ce04d2a6
authored
11 years ago
by
Cristian Toader
Browse files
Options
Downloads
Patches
Plain Diff
replaced boolean char with int
parent
8e2b9d28
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/common/sandbox.c
+6
-6
6 additions, 6 deletions
src/common/sandbox.c
src/common/sandbox.h
+5
-5
5 additions, 5 deletions
src/common/sandbox.h
with
11 additions
and
11 deletions
src/common/sandbox.c
+
6
−
6
View file @
ce04d2a6
...
...
@@ -712,7 +712,7 @@ prot_strdup(char* str)
#ifdef __NR_stat64
int
sandbox_cfg_allow_stat64_filename
(
sandbox_cfg_t
**
cfg
,
char
*
file
,
char
fr
)
sandbox_cfg_allow_stat64_filename
(
sandbox_cfg_t
**
cfg
,
char
*
file
,
int
fr
)
{
sandbox_cfg_t
*
elem
=
NULL
;
...
...
@@ -740,7 +740,7 @@ sandbox_cfg_allow_stat64_filename_array(sandbox_cfg_t **cfg, int num, ...)
for
(
i
=
0
;
i
<
num
;
i
++
)
{
char
*
fn
=
va_arg
(
ap
,
char
*
);
char
fr
=
(
char
)
va_arg
(
ap
,
int
);
int
fr
=
va_arg
(
ap
,
int
);
rc
=
sandbox_cfg_allow_stat64_filename
(
cfg
,
fn
,
fr
);
if
(
rc
)
{
...
...
@@ -756,7 +756,7 @@ sandbox_cfg_allow_stat64_filename_array(sandbox_cfg_t **cfg, int num, ...)
#endif
int
sandbox_cfg_allow_open_filename
(
sandbox_cfg_t
**
cfg
,
char
*
file
,
char
fr
)
sandbox_cfg_allow_open_filename
(
sandbox_cfg_t
**
cfg
,
char
*
file
,
int
fr
)
{
sandbox_cfg_t
*
elem
=
NULL
;
...
...
@@ -784,7 +784,7 @@ sandbox_cfg_allow_open_filename_array(sandbox_cfg_t **cfg, int num, ...)
for
(
i
=
0
;
i
<
num
;
i
++
)
{
char
*
fn
=
va_arg
(
ap
,
char
*
);
char
fr
=
(
char
)
va_arg
(
ap
,
int
);
int
fr
=
va_arg
(
ap
,
int
);
rc
=
sandbox_cfg_allow_open_filename
(
cfg
,
fn
,
fr
);
if
(
rc
)
{
...
...
@@ -799,7 +799,7 @@ sandbox_cfg_allow_open_filename_array(sandbox_cfg_t **cfg, int num, ...)
}
int
sandbox_cfg_allow_openat_filename
(
sandbox_cfg_t
**
cfg
,
char
*
file
,
char
fr
)
sandbox_cfg_allow_openat_filename
(
sandbox_cfg_t
**
cfg
,
char
*
file
,
int
fr
)
{
sandbox_cfg_t
*
elem
=
NULL
;
...
...
@@ -827,7 +827,7 @@ sandbox_cfg_allow_openat_filename_array(sandbox_cfg_t **cfg, int num, ...)
for
(
i
=
0
;
i
<
num
;
i
++
)
{
char
*
fn
=
va_arg
(
ap
,
char
*
);
char
fr
=
(
char
)
va_arg
(
ap
,
int
);
int
fr
=
va_arg
(
ap
,
int
);
rc
=
sandbox_cfg_allow_openat_filename
(
cfg
,
fn
,
fr
);
if
(
rc
)
{
...
...
This diff is collapsed.
Click to expand it.
src/common/sandbox.h
+
5
−
5
View file @
ce04d2a6
...
...
@@ -50,12 +50,12 @@ struct pfd_elem {
int
syscall
;
/** parameter index. */
char
pindex
;
int
pindex
;
/** parameter value. */
intptr_t
param
;
/** parameter flag (0 = not protected, 1 = protected). */
char
prot
;
int
prot
;
struct
pfd_elem
*
next
;
};
...
...
@@ -114,7 +114,7 @@ sandbox_cfg_t * sandbox_cfg_new(void);
* need to be free-ed.
*/
int
sandbox_cfg_allow_open_filename
(
sandbox_cfg_t
**
cfg
,
char
*
file
,
char
fr
);
int
fr
);
/** Function used to add a series of open allowed filenames to a supplied
* configuration.
...
...
@@ -134,7 +134,7 @@ int sandbox_cfg_allow_open_filename_array(sandbox_cfg_t **cfg, int num, ...);
* need to be free-ed.
*/
int
sandbox_cfg_allow_openat_filename
(
sandbox_cfg_t
**
cfg
,
char
*
file
,
char
fr
);
int
fr
);
/** Function used to add a series of openat allowed filenames to a supplied
* configuration.
...
...
@@ -173,7 +173,7 @@ int sandbox_cfg_allow_execve_array(sandbox_cfg_t **cfg, int num, ...);
* need to be free-ed.
*/
int
sandbox_cfg_allow_stat64_filename
(
sandbox_cfg_t
**
cfg
,
char
*
file
,
char
fr
);
int
fr
);
/** Function used to add a series of stat64 allowed filenames 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