mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-06-05 12:58:49 -04:00
fix permission-hardener config parsing issue
This commit is contained in:
parent
e72f79236b
commit
4219347f0a
1 changed files with 2 additions and 2 deletions
|
@ -325,12 +325,12 @@ set_file_perms() {
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! echo "${passwd_file_contents}" | grep --quiet --fixed-strings "${owner_from_config}:" ; then
|
if ! grep --quiet --fixed-strings "${owner_from_config}:" /var/lib/permission-hardening/private/passwd ; then
|
||||||
echo "ERROR: owner_from_config '$owner_from_config' does not exist!" >&2
|
echo "ERROR: owner_from_config '$owner_from_config' does not exist!" >&2
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! echo "${group_file_contents}" | grep --quiet --fixed-strings "${group_from_config}:" ; then
|
if ! grep --quiet --fixed-strings "${group_from_config}:" /var/lib/permission-hardening/private/group ; then
|
||||||
echo "ERROR: group_from_config '$group_from_config' does not exist!" >&2
|
echo "ERROR: group_from_config '$group_from_config' does not exist!" >&2
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue