projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ecb0406
)
analyze: badness if neither of RootImage and RootDirectory exists
author
Topi Miettinen
<toiwoton@gmail.com>
Wed, 18 Dec 2019 18:25:03 +0000
(20:25 +0200)
committer
Topi Miettinen
<toiwoton@gmail.com>
Wed, 18 Dec 2019 18:38:04 +0000
(20:38 +0200)
Instead of requiring both RootImage and RootDirectory directives, give badness
points if neither is present. Fixes conversion in
d737b451f
.
src/analyze/analyze-security.c
patch
|
blob
|
history
diff --git
a/src/analyze/analyze-security.c
b/src/analyze/analyze-security.c
index 79b099a4093a3a141e7c2a55c84f2f5bb464d901..20c140139006fe04e8b37abeca890f8f5ac7c392 100644
(file)
--- a/
src/analyze/analyze-security.c
+++ b/
src/analyze/analyze-security.c
@@
-306,7
+306,7
@@
static int assess_root_directory(
assert(ret_description);
*ret_badness =
- empty_or_root(info->root_directory)
||
+ empty_or_root(info->root_directory)
&&
empty_or_root(info->root_image);
*ret_description = NULL;