analyze: tweak wording of description for ProtectSystem= (#11035)
This commit is contained in:
parent
a365325e04
commit
1e8817b327
|
@ -254,13 +254,13 @@ static int assess_protect_system(
|
||||||
assert(ret_description);
|
assert(ret_description);
|
||||||
|
|
||||||
badness = 10;
|
badness = 10;
|
||||||
description = "Service has full access the OS file hierarchy";
|
description = "Service has full access to the OS file hierarchy";
|
||||||
|
|
||||||
r = parse_boolean(info->protect_system);
|
r = parse_boolean(info->protect_system);
|
||||||
if (r < 0) {
|
if (r < 0) {
|
||||||
if (streq_ptr(info->protect_system, "full")) {
|
if (streq_ptr(info->protect_system, "full")) {
|
||||||
badness = 3;
|
badness = 3;
|
||||||
description = "Service has very limited write access to OS file hierarchy";
|
description = "Service has very limited write access to the OS file hierarchy";
|
||||||
} else if (streq_ptr(info->protect_system, "strict")) {
|
} else if (streq_ptr(info->protect_system, "strict")) {
|
||||||
badness = 0;
|
badness = 0;
|
||||||
description = "Service has strict read-only access to the OS file hierarchy";
|
description = "Service has strict read-only access to the OS file hierarchy";
|
||||||
|
|
Loading…
Reference in a new issue