Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
sepolicy
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CodeLinaro
public-release-test
platform
system
sepolicy
Commits
ae23a1f3
Commit
ae23a1f3
authored
13 years ago
by
William Roberts
Browse files
Options
Downloads
Patches
Plain Diff
Corrected gramatical issues
Change-Id: I62ce62475f4a17d278243cc96db773872b2dc89c
parent
a8613180
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
check_seapp/check_seapp.c
+6
-8
6 additions, 8 deletions
check_seapp/check_seapp.c
with
6 additions
and
8 deletions
check_seapp/check_seapp.c
+
6
−
8
View file @
ae23a1f3
...
@@ -248,8 +248,8 @@ static int key_map_validate(key_map *m, int lineno) {
...
@@ -248,8 +248,8 @@ static int key_map_validate(key_map *m, int lineno) {
goto
out
;
goto
out
;
}
}
else
if
(
type
==
dt_bool
)
{
else
if
(
type
==
dt_bool
)
{
log_error
(
"
Line number: %d,
Expected boolean value got: %s=%s
\n
"
,
log_error
(
"Expected boolean value got: %s=%s
on line: %d in file: %s
\n
"
,
lineno
,
key
,
value
);
key
,
valu
e
,
lineno
,
out_file_nam
e
);
rc
=
0
;
rc
=
0
;
goto
out
;
goto
out
;
}
}
...
@@ -301,8 +301,8 @@ static int key_map_validate(key_map *m, int lineno) {
...
@@ -301,8 +301,8 @@ static int key_map_validate(key_map *m, int lineno) {
ret
=
sepol_mls_check
(
pol
.
handle
,
pol
.
db
,
value
);
ret
=
sepol_mls_check
(
pol
.
handle
,
pol
.
db
,
value
);
if
(
ret
<
0
)
{
if
(
ret
<
0
)
{
log_error
(
"Could not
check
selinux
mls
\"
%s
\"
,
error
: %s
\n
"
,
log_error
(
"Could not
find
selinux
level
\"
%s
\"
,
on line: %d in file
: %s
\n
"
,
value
,
value
,
strerror
(
errno
)
);
lineno
,
out_file_name
);
rc
=
0
;
rc
=
0
;
goto
out
;
goto
out
;
}
}
...
@@ -344,9 +344,7 @@ static void rule_map_print(FILE *fp, rule_map *r) {
...
@@ -344,9 +344,7 @@ static void rule_map_print(FILE *fp, rule_map *r) {
* @param rmB
* @param rmB
* a rule map to check
* a rule map to check
* @return
* @return
* 0 - If the rules input selectors are different, ie not a match
* a map_match enum indicating the result
* 1 - If the input selectors match, ie needs an override
* -1 - If the input and output selectors match, ie duplicate line
*/
*/
static
map_match
rule_map_cmp
(
rule_map
*
rmA
,
rule_map
*
rmB
)
{
static
map_match
rule_map_cmp
(
rule_map
*
rmA
,
rule_map
*
rmB
)
{
...
@@ -548,7 +546,7 @@ static void usage() {
...
@@ -548,7 +546,7 @@ static void usage() {
printf
(
printf
(
"checkseapp [options] <input file>
\n
"
"checkseapp [options] <input file>
\n
"
"Processes an seapp_contexts file specified by argument <input file> (default stdin) "
"Processes an seapp_contexts file specified by argument <input file> (default stdin) "
"and allows later dec
ele
rations to override previous ones on a match.
\n
"
"and allows later dec
la
rations to override previous ones on a match.
\n
"
"Options:
\n
"
"Options:
\n
"
"-h - print this help message
\n
"
"-h - print this help message
\n
"
"-v - enable verbose debugging informations
\n
"
"-v - enable verbose debugging informations
\n
"
...
...
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